Interface ImageResourceAssociation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ImageResourceAssociation.Builder,ImageResourceAssociation>,SdkBuilder<ImageResourceAssociation.Builder,ImageResourceAssociation>,SdkPojo
- Enclosing class:
- ImageResourceAssociation
public static interface ImageResourceAssociation.Builder extends SdkPojo, CopyableBuilder<ImageResourceAssociation.Builder,ImageResourceAssociation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ImageResourceAssociation.BuilderassociatedResourceId(String associatedResourceId)The identifier of the associated resource.ImageResourceAssociation.BuilderassociatedResourceType(String associatedResourceType)The resource type of the associated resources.ImageResourceAssociation.BuilderassociatedResourceType(ImageAssociatedResourceType associatedResourceType)The resource type of the associated resources.ImageResourceAssociation.Buildercreated(Instant created)The time the association is created.ImageResourceAssociation.BuilderimageId(String imageId)The identifier of the image.ImageResourceAssociation.BuilderlastUpdatedTime(Instant lastUpdatedTime)The time the association status was last updated.ImageResourceAssociation.Builderstate(String state)The status of the image resource association.ImageResourceAssociation.Builderstate(AssociationState state)The status of the image resource association.default ImageResourceAssociation.BuilderstateReason(Consumer<AssociationStateReason.Builder> stateReason)The reason the association deployment failed.ImageResourceAssociation.BuilderstateReason(AssociationStateReason stateReason)The reason the association deployment failed.-
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
-
associatedResourceId
ImageResourceAssociation.Builder associatedResourceId(String associatedResourceId)
The identifier of the associated resource.
- Parameters:
associatedResourceId- The identifier of the associated resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedResourceType
ImageResourceAssociation.Builder associatedResourceType(String associatedResourceType)
The resource type of the associated resources.
- Parameters:
associatedResourceType- The resource type of the associated resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageAssociatedResourceType,ImageAssociatedResourceType
-
associatedResourceType
ImageResourceAssociation.Builder associatedResourceType(ImageAssociatedResourceType associatedResourceType)
The resource type of the associated resources.
- Parameters:
associatedResourceType- The resource type of the associated resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageAssociatedResourceType,ImageAssociatedResourceType
-
created
ImageResourceAssociation.Builder created(Instant created)
The time the association is created.
- Parameters:
created- The time the association is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
ImageResourceAssociation.Builder lastUpdatedTime(Instant lastUpdatedTime)
The time the association status was last updated.
- Parameters:
lastUpdatedTime- The time the association status was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
ImageResourceAssociation.Builder imageId(String imageId)
The identifier of the image.
- Parameters:
imageId- The identifier of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
ImageResourceAssociation.Builder state(String state)
The status of the image resource association.
- Parameters:
state- The status of the image resource association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssociationState,AssociationState
-
state
ImageResourceAssociation.Builder state(AssociationState state)
The status of the image resource association.
- Parameters:
state- The status of the image resource association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssociationState,AssociationState
-
stateReason
ImageResourceAssociation.Builder stateReason(AssociationStateReason stateReason)
The reason the association deployment failed.
- Parameters:
stateReason- The reason the association deployment failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
default ImageResourceAssociation.Builder stateReason(Consumer<AssociationStateReason.Builder> stateReason)
The reason the association deployment failed.
This is a convenience method that creates an instance of theAssociationStateReason.Builderavoiding the need to create one manually viaAssociationStateReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostateReason(AssociationStateReason).- Parameters:
stateReason- a consumer that will call methods onAssociationStateReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
stateReason(AssociationStateReason)
-
-