Interface UpdateSnapshotPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdateSnapshotPolicyResponse.Builder,,UpdateSnapshotPolicyResponse> FSxResponse.Builder,SdkBuilder<UpdateSnapshotPolicyResponse.Builder,,UpdateSnapshotPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
UpdateSnapshotPolicyResponse
@Mutable
@NotThreadSafe
public static interface UpdateSnapshotPolicyResponse.Builder
extends FSxResponse.Builder, SdkPojo, CopyableBuilder<UpdateSnapshotPolicyResponse.Builder,UpdateSnapshotPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsnapshotPolicy(Consumer<SnapshotPolicy.Builder> snapshotPolicy) A description of the snapshot policy that was just updated.snapshotPolicy(SnapshotPolicy snapshotPolicy) A description of the snapshot policy that was just updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.fsx.model.FSxResponse.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
-
snapshotPolicy
A description of the snapshot policy that was just updated.
- Parameters:
snapshotPolicy- A description of the snapshot policy that was just updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotPolicy
default UpdateSnapshotPolicyResponse.Builder snapshotPolicy(Consumer<SnapshotPolicy.Builder> snapshotPolicy) A description of the snapshot policy that was just updated.
This is a convenience method that creates an instance of theSnapshotPolicy.Builderavoiding the need to create one manually viaSnapshotPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshotPolicy(SnapshotPolicy).- Parameters:
snapshotPolicy- a consumer that will call methods onSnapshotPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-