@Generated(value="software.amazon.awssdk:codegen") public final class IamInstanceProfileAssociation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
Describes an association between an IAM instance profile and an instance.
Modifier and Type | Class and Description |
---|---|
static interface |
IamInstanceProfileAssociation.Builder |
Modifier and Type | Method and Description |
---|---|
String |
associationId()
The ID of the association.
|
static IamInstanceProfileAssociation.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IamInstanceProfile |
iamInstanceProfile()
The IAM instance profile.
|
String |
instanceId()
The ID of the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends IamInstanceProfileAssociation.Builder> |
serializableBuilderClass() |
IamInstanceProfileAssociationState |
state()
The state of the association.
|
String |
stateAsString()
The state of the association.
|
Instant |
timestamp()
The time the IAM instance profile was associated with the instance.
|
IamInstanceProfileAssociation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String associationId()
The ID of the association.
public String instanceId()
The ID of the instance.
public IamInstanceProfile iamInstanceProfile()
The IAM instance profile.
public IamInstanceProfileAssociationState state()
The state of the association.
If the service returns an enum value that is not available in the current SDK version, state
will return
IamInstanceProfileAssociationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from stateAsString()
.
IamInstanceProfileAssociationState
public String stateAsString()
The state of the association.
If the service returns an enum value that is not available in the current SDK version, state
will return
IamInstanceProfileAssociationState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from stateAsString()
.
IamInstanceProfileAssociationState
public Instant timestamp()
The time the IAM instance profile was associated with the instance.
public IamInstanceProfileAssociation.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
public static IamInstanceProfileAssociation.Builder builder()
public static Class<? extends IamInstanceProfileAssociation.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.