Package com.amazonaws.services.ec2.model
Class IamInstanceProfile
- java.lang.Object
-
- com.amazonaws.services.ec2.model.IamInstanceProfile
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class IamInstanceProfile extends Object implements Serializable, Cloneable
Describes an IAM instance profile.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IamInstanceProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IamInstanceProfile
clone()
boolean
equals(Object obj)
String
getArn()
The Amazon Resource Name (ARN) of the instance profile.String
getId()
The ID of the instance profile.int
hashCode()
void
setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.void
setId(String id)
The ID of the instance profile.String
toString()
Returns a string representation of this object; useful for testing and debugging.IamInstanceProfile
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.IamInstanceProfile
withId(String id)
The ID of the instance profile.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the instance profile.
-
getArn
public String getArn()
The Amazon Resource Name (ARN) of the instance profile.
- Returns:
- The Amazon Resource Name (ARN) of the instance profile.
-
withArn
public IamInstanceProfile withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setId
public void setId(String id)
The ID of the instance profile.
- Parameters:
id
- The ID of the instance profile.
-
getId
public String getId()
The ID of the instance profile.
- Returns:
- The ID of the instance profile.
-
withId
public IamInstanceProfile withId(String id)
The ID of the instance profile.
- Parameters:
id
- The ID of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IamInstanceProfile clone()
-
-