Interface UpdateLifecyclePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateLifecyclePolicyRequest.Builder,
,UpdateLifecyclePolicyRequest> ImagebuilderRequest.Builder
,SdkBuilder<UpdateLifecyclePolicyRequest.Builder,
,UpdateLifecyclePolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateLifecyclePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of the request.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 update the lifecycle policy.lifecyclePolicyArn
(String lifecyclePolicyArn) The Amazon Resource Name (ARN) of the lifecycle policy resource.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.resourceSelection
(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Selection criteria for resources that the lifecycle policy applies to.resourceSelection
(LifecyclePolicyResourceSelection resourceSelection) Selection criteria for resources that the lifecycle policy applies to.resourceType
(String resourceType) The type of image resource that the lifecycle policy applies to.resourceType
(LifecyclePolicyResourceType resourceType) The type of image resource that the lifecycle policy applies to.Indicates whether the lifecycle policy resource is enabled.status
(LifecyclePolicyStatus status) Indicates whether the lifecycle policy resource is enabled.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
build
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
-
lifecyclePolicyArn
The Amazon Resource Name (ARN) of the lifecycle policy resource.
- Parameters:
lifecyclePolicyArn
- 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.
-
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 update the lifecycle policy.
- Parameters:
executionRole
- The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of image resource that the lifecycle policy applies to.
- Parameters:
resourceType
- The type of image resource that the lifecycle policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of image resource that the lifecycle policy applies to.
- Parameters:
resourceType
- The type of image resource that the lifecycle policy applies to.- 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
UpdateLifecyclePolicyRequest.Builder policyDetails(Consumer<LifecyclePolicyDetail.Builder>... 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
UpdateLifecyclePolicyRequest.Builder resourceSelection(LifecyclePolicyResourceSelection resourceSelection) Selection criteria for resources that the lifecycle policy applies to.
- Parameters:
resourceSelection
- Selection criteria for resources that the lifecycle policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSelection
default UpdateLifecyclePolicyRequest.Builder resourceSelection(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Selection criteria for resources that the lifecycle policy applies to.
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:
-
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateLifecyclePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateLifecyclePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-