@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IamInstanceProfileAssociation extends Object implements Serializable, Cloneable
Describes an association between an IAM instance profile and an instance.
Constructor and Description |
---|
IamInstanceProfileAssociation() |
Modifier and Type | Method and Description |
---|---|
IamInstanceProfileAssociation |
clone() |
boolean |
equals(Object obj) |
String |
getAssociationId()
The ID of the association.
|
IamInstanceProfile |
getIamInstanceProfile()
The IAM instance profile.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getState()
The state of the association.
|
Date |
getTimestamp()
The time the IAM instance profile was associated with the instance.
|
int |
hashCode() |
void |
setAssociationId(String associationId)
The ID of the association.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setState(IamInstanceProfileAssociationState state)
The state of the association.
|
void |
setState(String state)
The state of the association.
|
void |
setTimestamp(Date timestamp)
The time the IAM instance profile was associated with the instance.
|
String |
toString()
Returns a string representation of this object.
|
IamInstanceProfileAssociation |
withAssociationId(String associationId)
The ID of the association.
|
IamInstanceProfileAssociation |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile.
|
IamInstanceProfileAssociation |
withInstanceId(String instanceId)
The ID of the instance.
|
IamInstanceProfileAssociation |
withState(IamInstanceProfileAssociationState state)
The state of the association.
|
IamInstanceProfileAssociation |
withState(String state)
The state of the association.
|
IamInstanceProfileAssociation |
withTimestamp(Date timestamp)
The time the IAM instance profile was associated with the instance.
|
public void setAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.public String getAssociationId()
The ID of the association.
public IamInstanceProfileAssociation withAssociationId(String associationId)
The ID of the association.
associationId
- The ID of the association.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public IamInstanceProfileAssociation withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public IamInstanceProfile getIamInstanceProfile()
The IAM instance profile.
public IamInstanceProfileAssociation withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.public void setState(String state)
The state of the association.
state
- The state of the association.IamInstanceProfileAssociationState
public String getState()
The state of the association.
IamInstanceProfileAssociationState
public IamInstanceProfileAssociation withState(String state)
The state of the association.
state
- The state of the association.IamInstanceProfileAssociationState
public void setState(IamInstanceProfileAssociationState state)
The state of the association.
state
- The state of the association.IamInstanceProfileAssociationState
public IamInstanceProfileAssociation withState(IamInstanceProfileAssociationState state)
The state of the association.
state
- The state of the association.IamInstanceProfileAssociationState
public void setTimestamp(Date timestamp)
The time the IAM instance profile was associated with the instance.
timestamp
- The time the IAM instance profile was associated with the instance.public Date getTimestamp()
The time the IAM instance profile was associated with the instance.
public IamInstanceProfileAssociation withTimestamp(Date timestamp)
The time the IAM instance profile was associated with the instance.
timestamp
- The time the IAM instance profile was associated with the instance.public String toString()
toString
in class Object
Object.toString()
public IamInstanceProfileAssociation clone()