@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IamInstanceProfile extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the EC2 instance profile.
Constructor and Description |
---|
IamInstanceProfile() |
Modifier and Type | Method and Description |
---|---|
IamInstanceProfile |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The profile ARN of the EC2 instance.
|
String |
getId()
The profile ID of the EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The profile ARN of the EC2 instance.
|
void |
setId(String id)
The profile ID of the EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
IamInstanceProfile |
withArn(String arn)
The profile ARN of the EC2 instance.
|
IamInstanceProfile |
withId(String id)
The profile ID of the EC2 instance.
|
public void setArn(String arn)
The profile ARN of the EC2 instance.
arn
- The profile ARN of the EC2 instance.public String getArn()
The profile ARN of the EC2 instance.
public IamInstanceProfile withArn(String arn)
The profile ARN of the EC2 instance.
arn
- The profile ARN of the EC2 instance.public void setId(String id)
The profile ID of the EC2 instance.
id
- The profile ID of the EC2 instance.public String getId()
The profile ID of the EC2 instance.
public IamInstanceProfile withId(String id)
The profile ID of the EC2 instance.
id
- The profile ID of the EC2 instance.public String toString()
toString
in class Object
Object.toString()
public IamInstanceProfile clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.