Interface LifecycleExecutionResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LifecycleExecutionResource.Builder,LifecycleExecutionResource>,SdkBuilder<LifecycleExecutionResource.Builder,LifecycleExecutionResource>,SdkPojo
- Enclosing class:
- LifecycleExecutionResource
public static interface LifecycleExecutionResource.Builder extends SdkPojo, CopyableBuilder<LifecycleExecutionResource.Builder,LifecycleExecutionResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LifecycleExecutionResource.BuilderaccountId(String accountId)The account that owns the impacted resource.default LifecycleExecutionResource.Builderaction(Consumer<LifecycleExecutionResourceAction.Builder> action)The action to take for the identified resource.LifecycleExecutionResource.Builderaction(LifecycleExecutionResourceAction action)The action to take for the identified resource.LifecycleExecutionResource.BuilderimageUris(String... imageUris)For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.LifecycleExecutionResource.BuilderimageUris(Collection<String> imageUris)For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.LifecycleExecutionResource.Builderregion(String region)The Amazon Web Services Region where the lifecycle execution resource is stored.LifecycleExecutionResource.BuilderresourceId(String resourceId)Identifies the impacted resource.LifecycleExecutionResource.Buildersnapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)A list of associated resource snapshots for the impacted resource if it’s an AMI.LifecycleExecutionResource.Buildersnapshots(Consumer<LifecycleExecutionSnapshotResource.Builder>... snapshots)A list of associated resource snapshots for the impacted resource if it’s an AMI.LifecycleExecutionResource.Buildersnapshots(LifecycleExecutionSnapshotResource... snapshots)A list of associated resource snapshots for the impacted resource if it’s an AMI.default LifecycleExecutionResource.Builderstate(Consumer<LifecycleExecutionResourceState.Builder> state)The runtime state for the lifecycle execution.LifecycleExecutionResource.Builderstate(LifecycleExecutionResourceState state)The runtime state for the lifecycle execution.-
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
-
accountId
LifecycleExecutionResource.Builder accountId(String accountId)
The account that owns the impacted resource.
- Parameters:
accountId- The account that owns the impacted resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
LifecycleExecutionResource.Builder resourceId(String resourceId)
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
- Parameters:
resourceId- Identifies the impacted resource. The resource ID depends on the type of resource, as follows.-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
state
LifecycleExecutionResource.Builder state(LifecycleExecutionResourceState state)
The runtime state for the lifecycle execution.
- Parameters:
state- The runtime state for the lifecycle execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default LifecycleExecutionResource.Builder state(Consumer<LifecycleExecutionResourceState.Builder> state)
The runtime state for the lifecycle execution.
This is a convenience method that creates an instance of theLifecycleExecutionResourceState.Builderavoiding the need to create one manually viaLifecycleExecutionResourceState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(LifecycleExecutionResourceState).- Parameters:
state- a consumer that will call methods onLifecycleExecutionResourceState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(LifecycleExecutionResourceState)
-
action
LifecycleExecutionResource.Builder action(LifecycleExecutionResourceAction action)
The action to take for the identified resource.
- Parameters:
action- The action to take for the identified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default LifecycleExecutionResource.Builder action(Consumer<LifecycleExecutionResourceAction.Builder> action)
The action to take for the identified resource.
This is a convenience method that creates an instance of theLifecycleExecutionResourceAction.Builderavoiding the need to create one manually viaLifecycleExecutionResourceAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(LifecycleExecutionResourceAction).- Parameters:
action- a consumer that will call methods onLifecycleExecutionResourceAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
action(LifecycleExecutionResourceAction)
-
region
LifecycleExecutionResource.Builder region(String region)
The Amazon Web Services Region where the lifecycle execution resource is stored.
- Parameters:
region- The Amazon Web Services Region where the lifecycle execution resource is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
LifecycleExecutionResource.Builder snapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
- Parameters:
snapshots- A list of associated resource snapshots for the impacted resource if it’s an AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
LifecycleExecutionResource.Builder snapshots(LifecycleExecutionSnapshotResource... snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
- Parameters:
snapshots- A list of associated resource snapshots for the impacted resource if it’s an AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
LifecycleExecutionResource.Builder snapshots(Consumer<LifecycleExecutionSnapshotResource.Builder>... snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
This is a convenience method that creates an instance of theLifecycleExecutionSnapshotResource.Builderavoiding the need to create one manually viaLifecycleExecutionSnapshotResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#snapshots(List.) - Parameters:
snapshots- a consumer that will call methods onLifecycleExecutionSnapshotResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#snapshots(java.util.Collection)
-
imageUris
LifecycleExecutionResource.Builder imageUris(Collection<String> imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
- Parameters:
imageUris- For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageUris
LifecycleExecutionResource.Builder imageUris(String... imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
- Parameters:
imageUris- For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-