Interface CreateLifecyclePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLifecyclePolicyRequest.Builder,
,CreateLifecyclePolicyRequest> ImagebuilderRequest.Builder
,SdkBuilder<CreateLifecyclePolicyRequest.Builder,
,CreateLifecyclePolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateLifecyclePolicyRequest
-
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) for the IAM role you create that grants Image Builder access to run lifecycle actions.The name of the lifecycle policy to create.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyDetails
(Collection<LifecyclePolicyDetail> policyDetails) Configuration details for the lifecycle policy rules.policyDetails
(Consumer<LifecyclePolicyDetail.Builder>... policyDetails) Configuration details for the lifecycle policy rules.policyDetails
(LifecyclePolicyDetail... policyDetails) Configuration details for the lifecycle policy rules.resourceSelection
(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.resourceSelection
(LifecyclePolicyResourceSelection resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.resourceType
(String resourceType) The type of Image Builder resource that the lifecycle policy applies to.resourceType
(LifecyclePolicyResourceType resourceType) The type of Image Builder 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.Tags to apply to the lifecycle policy resource.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the lifecycle policy to create.
- Parameters:
name
- The name of the lifecycle policy to create.- 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) for the IAM role you create that grants Image Builder access to run lifecycle actions.
- Parameters:
executionRole
- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to run lifecycle actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of Image Builder resource that the lifecycle policy applies to.
- Parameters:
resourceType
- The type of Image Builder 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 Builder resource that the lifecycle policy applies to.
- Parameters:
resourceType
- The type of Image Builder 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
Configuration details for the lifecycle policy rules.
- Parameters:
policyDetails
- Configuration details for the lifecycle policy rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
Configuration details for the lifecycle policy rules.
- Parameters:
policyDetails
- Configuration details for the lifecycle policy rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDetails
CreateLifecyclePolicyRequest.Builder policyDetails(Consumer<LifecyclePolicyDetail.Builder>... policyDetails) Configuration details for the lifecycle policy rules.
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
CreateLifecyclePolicyRequest.Builder resourceSelection(LifecyclePolicyResourceSelection resourceSelection) Selection criteria for the resources that the lifecycle policy applies to.
- Parameters:
resourceSelection
- Selection criteria for the resources that the lifecycle policy applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSelection
default CreateLifecyclePolicyRequest.Builder resourceSelection(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection) Selection criteria for the 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:
-
tags
Tags to apply to the lifecycle policy resource.
- Parameters:
tags
- Tags to apply to the lifecycle policy resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
CreateLifecyclePolicyRequest.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
CreateLifecyclePolicyRequest.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.
-