@Generated(value="software.amazon.awssdk:codegen") public final class IamInstanceProfileAssociation extends Object implements 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
IamInstanceProfile |
iamInstanceProfile()
The IAM instance profile.
|
String |
instanceId()
The ID of the instance.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
public static IamInstanceProfileAssociation.Builder builder()
public static Class<? extends IamInstanceProfileAssociation.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.