Struct aws_sdk_redshift::operation::create_snapshot_copy_grant::builders::CreateSnapshotCopyGrantInputBuilder
source · #[non_exhaustive]pub struct CreateSnapshotCopyGrantInputBuilder { /* private fields */ }Expand description
A builder for CreateSnapshotCopyGrantInput.
Implementations§
source§impl CreateSnapshotCopyGrantInputBuilder
impl CreateSnapshotCopyGrantInputBuilder
sourcepub fn snapshot_copy_grant_name(self, input: impl Into<String>) -> Self
pub fn snapshot_copy_grant_name(self, input: impl Into<String>) -> Self
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
Alphabetic characters must be lowercase.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all clusters within an Amazon Web Services account.
sourcepub fn set_snapshot_copy_grant_name(self, input: Option<String>) -> Self
pub fn set_snapshot_copy_grant_name(self, input: Option<String>) -> Self
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
Alphabetic characters must be lowercase.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all clusters within an Amazon Web Services account.
sourcepub fn get_snapshot_copy_grant_name(&self) -> &Option<String>
pub fn get_snapshot_copy_grant_name(&self) -> &Option<String>
The name of the snapshot copy grant. This name must be unique in the region for the Amazon Web Services account.
Constraints:
-
Must contain from 1 to 63 alphanumeric characters or hyphens.
-
Alphabetic characters must be lowercase.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for all clusters within an Amazon Web Services account.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The unique identifier of the encrypted symmetric key to which to grant Amazon Redshift permission. If no key is specified, the default key is used.
Appends an item to tags.
To override the contents of this collection use set_tags.
A list of tag instances.
A list of tag instances.
A list of tag instances.
sourcepub fn build(self) -> Result<CreateSnapshotCopyGrantInput, BuildError>
pub fn build(self) -> Result<CreateSnapshotCopyGrantInput, BuildError>
Consumes the builder and constructs a CreateSnapshotCopyGrantInput.
source§impl CreateSnapshotCopyGrantInputBuilder
impl CreateSnapshotCopyGrantInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSnapshotCopyGrantOutput, SdkError<CreateSnapshotCopyGrantError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSnapshotCopyGrantOutput, SdkError<CreateSnapshotCopyGrantError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSnapshotCopyGrantInputBuilder
impl Clone for CreateSnapshotCopyGrantInputBuilder
source§fn clone(&self) -> CreateSnapshotCopyGrantInputBuilder
fn clone(&self) -> CreateSnapshotCopyGrantInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateSnapshotCopyGrantInputBuilder
impl Default for CreateSnapshotCopyGrantInputBuilder
source§fn default() -> CreateSnapshotCopyGrantInputBuilder
fn default() -> CreateSnapshotCopyGrantInputBuilder
source§impl PartialEq<CreateSnapshotCopyGrantInputBuilder> for CreateSnapshotCopyGrantInputBuilder
impl PartialEq<CreateSnapshotCopyGrantInputBuilder> for CreateSnapshotCopyGrantInputBuilder
source§fn eq(&self, other: &CreateSnapshotCopyGrantInputBuilder) -> bool
fn eq(&self, other: &CreateSnapshotCopyGrantInputBuilder) -> bool
self and other values to be equal, and is used
by ==.