Interface IamInstanceProfileAssociation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IamInstanceProfileAssociation.Builder,,IamInstanceProfileAssociation> SdkBuilder<IamInstanceProfileAssociation.Builder,,IamInstanceProfileAssociation> SdkPojo
- Enclosing class:
IamInstanceProfileAssociation
@Mutable
@NotThreadSafe
public static interface IamInstanceProfileAssociation.Builder
extends SdkPojo, CopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
-
Method Summary
Modifier and TypeMethodDescriptionassociationId(String associationId) The ID of the association.iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile.iamInstanceProfile(IamInstanceProfile iamInstanceProfile) The IAM instance profile.instanceId(String instanceId) The ID of the instance.The state of the association.The state of the association.The time the IAM instance profile was associated with the instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
associationId
The ID of the association.
- Parameters:
associationId- The ID of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
The IAM instance profile.
- Parameters:
iamInstanceProfile- The IAM instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default IamInstanceProfileAssociation.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile.
This is a convenience method that creates an instance of theIamInstanceProfile.Builderavoiding the need to create one manually viaIamInstanceProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiamInstanceProfile(IamInstanceProfile).- Parameters:
iamInstanceProfile- a consumer that will call methods onIamInstanceProfile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the association.
- Parameters:
state- The state of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the association.
- Parameters:
state- The state of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timestamp
The time the IAM instance profile was associated with the instance.
- Parameters:
timestamp- The time the IAM instance profile was associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-