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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IamInstanceProfileAssociation.BuilderassociationId(String associationId)The ID of the association.default IamInstanceProfileAssociation.BuilderiamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)The IAM instance profile.IamInstanceProfileAssociation.BuilderiamInstanceProfile(IamInstanceProfile iamInstanceProfile)The IAM instance profile.IamInstanceProfileAssociation.BuilderinstanceId(String instanceId)The ID of the instance.IamInstanceProfileAssociation.Builderstate(String state)The state of the association.IamInstanceProfileAssociation.Builderstate(IamInstanceProfileAssociationState state)The state of the association.IamInstanceProfileAssociation.Buildertimestamp(Instant timestamp)The time the IAM instance profile was associated with the instance.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
associationId
IamInstanceProfileAssociation.Builder associationId(String 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
IamInstanceProfileAssociation.Builder instanceId(String 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
IamInstanceProfileAssociation.Builder iamInstanceProfile(IamInstanceProfile 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:
iamInstanceProfile(IamInstanceProfile)
-
state
IamInstanceProfileAssociation.Builder state(String 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:
IamInstanceProfileAssociationState,IamInstanceProfileAssociationState
-
state
IamInstanceProfileAssociation.Builder state(IamInstanceProfileAssociationState 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:
IamInstanceProfileAssociationState,IamInstanceProfileAssociationState
-
timestamp
IamInstanceProfileAssociation.Builder timestamp(Instant 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.
-
-