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 interface
IamInstanceProfileAssociation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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,
state
will 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,
state
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-