Interface UpdateLifecyclePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateLifecyclePolicyRequest.Builder,UpdateLifecyclePolicyRequest>,ImagebuilderRequest.Builder,SdkBuilder<UpdateLifecyclePolicyRequest.Builder,UpdateLifecyclePolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateLifecyclePolicyRequest
public static interface UpdateLifecyclePolicyRequest.Builder extends ImagebuilderRequest.Builder, SdkPojo, CopyableBuilder<UpdateLifecyclePolicyRequest.Builder,UpdateLifecyclePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateLifecyclePolicyRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure idempotency of the request.UpdateLifecyclePolicyRequest.Builderdescription(String description)Optional description for the lifecycle policy.UpdateLifecyclePolicyRequest.BuilderexecutionRole(String executionRole)The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to update the lifecycle policy.UpdateLifecyclePolicyRequest.BuilderlifecyclePolicyArn(String lifecyclePolicyArn)The Amazon Resource Name (ARN) of the lifecycle policy resource.UpdateLifecyclePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateLifecyclePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdateLifecyclePolicyRequest.BuilderpolicyDetails(Collection<LifecyclePolicyDetail> policyDetails)The configuration details for a lifecycle policy resource.UpdateLifecyclePolicyRequest.BuilderpolicyDetails(Consumer<LifecyclePolicyDetail.Builder>... policyDetails)The configuration details for a lifecycle policy resource.UpdateLifecyclePolicyRequest.BuilderpolicyDetails(LifecyclePolicyDetail... policyDetails)The configuration details for a lifecycle policy resource.default UpdateLifecyclePolicyRequest.BuilderresourceSelection(Consumer<LifecyclePolicyResourceSelection.Builder> resourceSelection)Selection criteria for resources that the lifecycle policy applies to.UpdateLifecyclePolicyRequest.BuilderresourceSelection(LifecyclePolicyResourceSelection resourceSelection)Selection criteria for resources that the lifecycle policy applies to.UpdateLifecyclePolicyRequest.BuilderresourceType(String resourceType)The type of image resource that the lifecycle policy applies to.UpdateLifecyclePolicyRequest.BuilderresourceType(LifecyclePolicyResourceType resourceType)The type of image resource that the lifecycle policy applies to.UpdateLifecyclePolicyRequest.Builderstatus(String status)Indicates whether the lifecycle policy resource is enabled.UpdateLifecyclePolicyRequest.Builderstatus(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 Detail
-
lifecyclePolicyArn
UpdateLifecyclePolicyRequest.Builder lifecyclePolicyArn(String 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
UpdateLifecyclePolicyRequest.Builder description(String 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
UpdateLifecyclePolicyRequest.Builder status(String 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:
LifecyclePolicyStatus,LifecyclePolicyStatus
-
status
UpdateLifecyclePolicyRequest.Builder status(LifecyclePolicyStatus 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:
LifecyclePolicyStatus,LifecyclePolicyStatus
-
executionRole
UpdateLifecyclePolicyRequest.Builder executionRole(String 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
UpdateLifecyclePolicyRequest.Builder resourceType(String 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:
LifecyclePolicyResourceType,LifecyclePolicyResourceType
-
resourceType
UpdateLifecyclePolicyRequest.Builder resourceType(LifecyclePolicyResourceType 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:
LifecyclePolicyResourceType,LifecyclePolicyResourceType
-
policyDetails
UpdateLifecyclePolicyRequest.Builder policyDetails(Collection<LifecyclePolicyDetail> 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(LifecyclePolicyDetail... 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 to#policyDetails(List.) - 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:
#policyDetails(java.util.Collection)
-
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.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:
resourceSelection(LifecyclePolicyResourceSelection)
-
clientToken
UpdateLifecyclePolicyRequest.Builder clientToken(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateLifecyclePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-