Interface DescribeSnapshotCopyGrantsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSnapshotCopyGrantsResponse.Builder,,DescribeSnapshotCopyGrantsResponse> RedshiftResponse.Builder,SdkBuilder<DescribeSnapshotCopyGrantsResponse.Builder,,DescribeSnapshotCopyGrantsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSnapshotCopyGrantsResponse
-
Method Summary
Modifier and TypeMethodDescriptionAn optional parameter that specifies the starting point to return a set of response records.snapshotCopyGrants(Collection<SnapshotCopyGrant> snapshotCopyGrants) The list ofSnapshotCopyGrantobjects.snapshotCopyGrants(Consumer<SnapshotCopyGrant.Builder>... snapshotCopyGrants) The list ofSnapshotCopyGrantobjects.snapshotCopyGrants(SnapshotCopyGrant... snapshotCopyGrants) The list ofSnapshotCopyGrantobjects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftResponse.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
-
marker
An optional parameter that specifies the starting point to return a set of response records. When the results of a
DescribeSnapshotCopyGrantrequest exceed the value specified inMaxRecords, Amazon Web Services returns a value in theMarkerfield of the response. You can retrieve the next set of response records by providing the returned marker value in theMarkerparameter and retrying the request.Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.
- Parameters:
marker- An optional parameter that specifies the starting point to return a set of response records. When the results of aDescribeSnapshotCopyGrantrequest exceed the value specified inMaxRecords, Amazon Web Services returns a value in theMarkerfield of the response. You can retrieve the next set of response records by providing the returned marker value in theMarkerparameter and retrying the request.Constraints: You can specify either the SnapshotCopyGrantName parameter or the Marker parameter, but not both.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCopyGrants
DescribeSnapshotCopyGrantsResponse.Builder snapshotCopyGrants(Collection<SnapshotCopyGrant> snapshotCopyGrants) The list of
SnapshotCopyGrantobjects.- Parameters:
snapshotCopyGrants- The list ofSnapshotCopyGrantobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCopyGrants
DescribeSnapshotCopyGrantsResponse.Builder snapshotCopyGrants(SnapshotCopyGrant... snapshotCopyGrants) The list of
SnapshotCopyGrantobjects.- Parameters:
snapshotCopyGrants- The list ofSnapshotCopyGrantobjects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCopyGrants
DescribeSnapshotCopyGrantsResponse.Builder snapshotCopyGrants(Consumer<SnapshotCopyGrant.Builder>... snapshotCopyGrants) The list of
This is a convenience method that creates an instance of theSnapshotCopyGrantobjects.SnapshotCopyGrant.Builderavoiding the need to create one manually viaSnapshotCopyGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshotCopyGrants(List<SnapshotCopyGrant>).- Parameters:
snapshotCopyGrants- a consumer that will call methods onSnapshotCopyGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-