Interface GetLifecyclePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetLifecyclePolicyResponse.Builder,,GetLifecyclePolicyResponse> ImagebuilderResponse.Builder,SdkBuilder<GetLifecyclePolicyResponse.Builder,,GetLifecyclePolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetLifecyclePolicyResponse
@Mutable
@NotThreadSafe
public static interface GetLifecyclePolicyResponse.Builder
extends ImagebuilderResponse.Builder, SdkPojo, CopyableBuilder<GetLifecyclePolicyResponse.Builder,GetLifecyclePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlifecyclePolicy(Consumer<LifecyclePolicy.Builder> lifecyclePolicy) The Amazon Resource Name (ARN) of the image lifecycle policy resource that was returned.lifecyclePolicy(LifecyclePolicy lifecyclePolicy) The Amazon Resource Name (ARN) of the image lifecycle policy resource that was returned.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
lifecyclePolicy
The Amazon Resource Name (ARN) of the image lifecycle policy resource that was returned.
- Parameters:
lifecyclePolicy- The Amazon Resource Name (ARN) of the image lifecycle policy resource that was returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecyclePolicy
default GetLifecyclePolicyResponse.Builder lifecyclePolicy(Consumer<LifecyclePolicy.Builder> lifecyclePolicy) The Amazon Resource Name (ARN) of the image lifecycle policy resource that was returned.
This is a convenience method that creates an instance of theLifecyclePolicy.Builderavoiding the need to create one manually viaLifecyclePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecyclePolicy(LifecyclePolicy).- Parameters:
lifecyclePolicy- a consumer that will call methods onLifecyclePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-