Class IamInstanceProfileAssociation
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.IamInstanceProfileAssociation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIamInstanceProfileAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassociationId()The ID of the association.static IamInstanceProfileAssociation.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IamInstanceProfileiamInstanceProfile()The IAM instance profile.StringinstanceId()The ID of the instance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends IamInstanceProfileAssociation.Builder>serializableBuilderClass()IamInstanceProfileAssociationStatestate()The state of the association.StringstateAsString()The state of the association.Instanttimestamp()The time the IAM instance profile was associated with the instance.IamInstanceProfileAssociation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
associationId
public final String associationId()
The ID of the association.
- Returns:
- The ID of the association.
-
instanceId
public final String instanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
iamInstanceProfile
public final IamInstanceProfile iamInstanceProfile()
The IAM instance profile.
- Returns:
- The IAM instance profile.
-
state
public final IamInstanceProfileAssociationState state()
The state of the association.
If the service returns an enum value that is not available in the current SDK version,
statewill returnIamInstanceProfileAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the association.
- See Also:
IamInstanceProfileAssociationState
-
stateAsString
public final String stateAsString()
The state of the association.
If the service returns an enum value that is not available in the current SDK version,
statewill returnIamInstanceProfileAssociationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the association.
- See Also:
IamInstanceProfileAssociationState
-
timestamp
public final Instant timestamp()
The time the IAM instance profile was associated with the instance.
- Returns:
- The time the IAM instance profile was associated with the instance.
-
toBuilder
public IamInstanceProfileAssociation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
-
builder
public static IamInstanceProfileAssociation.Builder builder()
-
serializableBuilderClass
public static Class<? extends IamInstanceProfileAssociation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-