Interface CreateSnapshotCopyGrantResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateSnapshotCopyGrantResponse.Builder,
,CreateSnapshotCopyGrantResponse> RedshiftResponse.Builder
,SdkBuilder<CreateSnapshotCopyGrantResponse.Builder,
,CreateSnapshotCopyGrantResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateSnapshotCopyGrantResponse
public static interface CreateSnapshotCopyGrantResponse.Builder
extends RedshiftResponse.Builder, SdkPojo, CopyableBuilder<CreateSnapshotCopyGrantResponse.Builder,CreateSnapshotCopyGrantResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsnapshotCopyGrant
(Consumer<SnapshotCopyGrant.Builder> snapshotCopyGrant) Sets the value of the SnapshotCopyGrant property for this object.snapshotCopyGrant
(SnapshotCopyGrant snapshotCopyGrant) Sets the value of the SnapshotCopyGrant property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshift.model.RedshiftResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
snapshotCopyGrant
Sets the value of the SnapshotCopyGrant property for this object.- Parameters:
snapshotCopyGrant
- The new value for the SnapshotCopyGrant property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotCopyGrant
default CreateSnapshotCopyGrantResponse.Builder snapshotCopyGrant(Consumer<SnapshotCopyGrant.Builder> snapshotCopyGrant) Sets the value of the SnapshotCopyGrant property for this object. This is a convenience method that creates an instance of theSnapshotCopyGrant.Builder
avoiding the need to create one manually viaSnapshotCopyGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosnapshotCopyGrant(SnapshotCopyGrant)
.- Parameters:
snapshotCopyGrant
- 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:
-