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) A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.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.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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. Because the update replaces the entire configuration, omitting this property removes any existing description.
- Parameters:
description- Optional description for the lifecycle policy. Because the update replaces the entire configuration, omitting this property removes any existing description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Indicates whether the lifecycle policy resource is enabled. Defaults to
ENABLEDwhen omitted, so updating a disabled policy without setting this property re-enables it.- Parameters:
status- Indicates whether the lifecycle policy resource is enabled. Defaults toENABLEDwhen omitted, so updating a disabled policy without setting this property re-enables it.- 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. Defaults to
ENABLEDwhen omitted, so updating a disabled policy without setting this property re-enables it.- Parameters:
status- Indicates whether the lifecycle policy resource is enabled. Defaults toENABLEDwhen omitted, so updating a disabled policy without setting this property re-enables it.- 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 resource that the lifecycle policy applies to. The value must match the policy's existing resource type. You can't change the resource type of an existing lifecycle policy.
- Parameters:
resourceType- The type of image resource that the lifecycle policy applies to. The value must match the policy's existing resource type. You can't change the resource type of an existing lifecycle policy.- 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. The value must match the policy's existing resource type. You can't change the resource type of an existing lifecycle policy.
- Parameters:
resourceType- The type of image resource that the lifecycle policy applies to. The value must match the policy's existing resource type. You can't change the resource type of an existing lifecycle policy.- 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.Builderavoiding the need to create one manually viaLifecyclePolicyDetail.builder().When the
Consumercompletes,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. You must specify exactly one selection criteria: either recipes or a tag map, not both.
- Parameters:
resourceSelection- Selection criteria for resources that the lifecycle policy applies to. You must specify exactly one selection criteria: either recipes or a tag map, not both.- 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. You must specify exactly one selection criteria: either recipes or a tag map, not both.
This is a convenience method that creates an instance of theLifecyclePolicyResourceSelection.Builderavoiding the need to create one manually viaLifecyclePolicyResourceSelection.builder().When the
Consumercompletes,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
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-