Interface LifecyclePolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LifecyclePolicy.Builder,
,LifecyclePolicy> SdkBuilder<LifecyclePolicy.Builder,
,LifecyclePolicy> SdkPojo
- Enclosing class:
LifecyclePolicy
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the lifecycle policy resource.dateCreated
(Instant dateCreated) The timestamp when Image Builder created the lifecycle policy resource.dateLastRun
(Instant dateLastRun) The timestamp for the last time Image Builder ran the lifecycle policy.dateUpdated
(Instant dateUpdated) The timestamp when Image Builder updated the lifecycle policy resource.description
(String description) Optional description for the lifecycle policy.executionRole
(String executionRole) The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy.The name of the lifecycle policy.policyDetails
(Collection<LifecyclePolicyDetail> policyDetails) The configuration details for a lifecycle policy resource.policyDetails
(Consumer<LifecyclePolicyDetail.Builder>... policyDetails) The configuration details for a lifecycle policy resource.policyDetails
(LifecyclePolicyDetail... policyDetails) The configuration details for a lifecycle policy resource.default LifecyclePolicy.Builder
resourceSelection
(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Resource selection criteria used to run the lifecycle policy.resourceSelection
(LifecyclePolicyResourceSelection resourceSelection) Resource selection criteria used to run the lifecycle policy.resourceType
(String resourceType) The type of resources the lifecycle policy targets.resourceType
(LifecyclePolicyResourceType resourceType) The type of resources the lifecycle policy targets.Indicates whether the lifecycle policy resource is enabled.status
(LifecyclePolicyStatus status) Indicates whether the lifecycle policy resource is enabled.To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags.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
-
arn
The Amazon Resource Name (ARN) of the lifecycle policy resource.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the lifecycle policy.
- Parameters:
name
- The name of the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Optional description for the lifecycle policy.
- Parameters:
description
- Optional description for the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Indicates whether the lifecycle policy resource is enabled.
- Parameters:
status
- Indicates whether the lifecycle policy resource is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Indicates whether the lifecycle policy resource is enabled.
- Parameters:
status
- Indicates whether the lifecycle policy resource is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRole
The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
- Parameters:
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of resources the lifecycle policy targets.
- Parameters:
resourceType
- The type of resources the lifecycle policy targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resources the lifecycle policy targets.
- Parameters:
resourceType
- The type of resources the lifecycle policy targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyDetails
The configuration details for a lifecycle policy resource.
- Parameters:
policyDetails
- The configuration details for a lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
The configuration details for a lifecycle policy resource.
- Parameters:
policyDetails
- The configuration details for a lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
The configuration details for a lifecycle policy resource.
This is a convenience method that creates an instance of theLifecyclePolicyDetail.Builder
avoiding the need to create one manually viaLifecyclePolicyDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyDetails(List<LifecyclePolicyDetail>)
.- Parameters:
policyDetails
- a consumer that will call methods onLifecyclePolicyDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceSelection
Resource selection criteria used to run the lifecycle policy.
- Parameters:
resourceSelection
- Resource selection criteria used to run the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSelection
default LifecyclePolicy.Builder resourceSelection(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Resource selection criteria used to run the lifecycle policy.
This is a convenience method that creates an instance of theLifecyclePolicyResourceSelection.Builder
avoiding the need to create one manually viaLifecyclePolicyResourceSelection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceSelection(LifecyclePolicyResourceSelection)
.- Parameters:
resourceSelection
- a consumer that will call methods onLifecyclePolicyResourceSelection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dateCreated
The timestamp when Image Builder created the lifecycle policy resource.
- Parameters:
dateCreated
- The timestamp when Image Builder created the lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateUpdated
The timestamp when Image Builder updated the lifecycle policy resource.
- Parameters:
dateUpdated
- The timestamp when Image Builder updated the lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateLastRun
The timestamp for the last time Image Builder ran the lifecycle policy.
- Parameters:
dateLastRun
- The timestamp for the last time Image Builder ran the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.
- Parameters:
tags
- To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-