Interface IamInstanceProfileAssociation.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
,SdkBuilder<IamInstanceProfileAssociation.Builder,IamInstanceProfileAssociation>
,SdkPojo
- Enclosing class:
- IamInstanceProfileAssociation
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.Builder
associationId(String associationId)
The ID of the association.default IamInstanceProfileAssociation.Builder
iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)
The IAM instance profile.IamInstanceProfileAssociation.Builder
iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile.IamInstanceProfileAssociation.Builder
instanceId(String instanceId)
The ID of the instance.IamInstanceProfileAssociation.Builder
state(String state)
The state of the association.IamInstanceProfileAssociation.Builder
state(IamInstanceProfileAssociationState state)
The state of the association.IamInstanceProfileAssociation.Builder
timestamp(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, 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.Builder
avoiding the need to create one manually viaIamInstanceProfile.builder()
.When the
Consumer
completes,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.
-
-