Interface DescribeSnapshotPoliciesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSnapshotPoliciesResponse.Builder,,DescribeSnapshotPoliciesResponse> FSxResponse.Builder,SdkBuilder<DescribeSnapshotPoliciesResponse.Builder,,DescribeSnapshotPoliciesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSnapshotPoliciesResponse
@Mutable
@NotThreadSafe
public static interface DescribeSnapshotPoliciesResponse.Builder
extends FSxResponse.Builder, SdkPojo, CopyableBuilder<DescribeSnapshotPoliciesResponse.Builder,DescribeSnapshotPoliciesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the NextToken property for this object.snapshotPolicies(Collection<SnapshotPolicy> snapshotPolicies) Describes each snapshot policy returned by theDescribeSnapshotPoliciesoperation.snapshotPolicies(Consumer<SnapshotPolicy.Builder>... snapshotPolicies) Describes each snapshot policy returned by theDescribeSnapshotPoliciesoperation.snapshotPolicies(SnapshotPolicy... snapshotPolicies) Describes each snapshot policy returned by theDescribeSnapshotPoliciesoperation.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
-
snapshotPolicies
DescribeSnapshotPoliciesResponse.Builder snapshotPolicies(Collection<SnapshotPolicy> snapshotPolicies) Describes each snapshot policy returned by the
DescribeSnapshotPoliciesoperation.- Parameters:
snapshotPolicies- Describes each snapshot policy returned by theDescribeSnapshotPoliciesoperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotPolicies
Describes each snapshot policy returned by the
DescribeSnapshotPoliciesoperation.- Parameters:
snapshotPolicies- Describes each snapshot policy returned by theDescribeSnapshotPoliciesoperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotPolicies
DescribeSnapshotPoliciesResponse.Builder snapshotPolicies(Consumer<SnapshotPolicy.Builder>... snapshotPolicies) Describes each snapshot policy returned by the
This is a convenience method that creates an instance of theDescribeSnapshotPoliciesoperation.SnapshotPolicy.Builderavoiding the need to create one manually viaSnapshotPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshotPolicies(List<SnapshotPolicy>).- Parameters:
snapshotPolicies- 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:
-
nextToken
Sets the value of the NextToken property for this object.- Parameters:
nextToken- The new value for the NextToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-