Interface LifecycleExecutionResource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecycleExecutionResource.Builder,
,LifecycleExecutionResource> SdkBuilder<LifecycleExecutionResource.Builder,
,LifecycleExecutionResource> SdkPojo
- Enclosing class:
LifecycleExecutionResource
-
Method Summary
Modifier and TypeMethodDescriptionThe account that owns the impacted resource.The action to take for the identified resource.The action to take for the identified resource.The ending timestamp from the lifecycle action that was applied to the resource.For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.imageUris
(Collection<String> imageUris) For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.The Amazon Web Services Region where the lifecycle execution resource is stored.resourceId
(String resourceId) Identifies the impacted resource.snapshots
(Collection<LifecycleExecutionSnapshotResource> snapshots) A list of associated resource snapshots for the impacted resource if it’s an AMI.snapshots
(Consumer<LifecycleExecutionSnapshotResource.Builder>... snapshots) A list of associated resource snapshots for the impacted resource if it’s an AMI.snapshots
(LifecycleExecutionSnapshotResource... snapshots) A list of associated resource snapshots for the impacted resource if it’s an AMI.The starting timestamp from the lifecycle action that was applied to the resource.The runtime state for the lifecycle execution.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 Details
-
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
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
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.Builder
avoiding the need to create one manually viaLifecycleExecutionResourceState.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaLifecycleExecutionResourceAction.builder()
.When the
Consumer
completes,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:
-
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
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.Builder
avoiding the need to create one manually viaLifecycleExecutionSnapshotResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosnapshots(List<LifecycleExecutionSnapshotResource>)
.- 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:
-
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
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.
-
startTime
The starting timestamp from the lifecycle action that was applied to the resource.
- Parameters:
startTime
- The starting timestamp from the lifecycle action that was applied to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The ending timestamp from the lifecycle action that was applied to the resource.
- Parameters:
endTime
- The ending timestamp from the lifecycle action that was applied to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-