Struct aws_sdk_redshift::operation::authorize_snapshot_access::builders::AuthorizeSnapshotAccessInputBuilder
source · #[non_exhaustive]pub struct AuthorizeSnapshotAccessInputBuilder { /* private fields */ }
Expand description
A builder for AuthorizeSnapshotAccessInput
.
Implementations§
source§impl AuthorizeSnapshotAccessInputBuilder
impl AuthorizeSnapshotAccessInputBuilder
sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier of the snapshot the account is authorized to restore.
sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
The identifier of the snapshot the account is authorized to restore.
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The identifier of the snapshot the account is authorized to restore.
sourcepub fn snapshot_arn(self, input: impl Into<String>) -> Self
pub fn snapshot_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn set_snapshot_arn(self, input: Option<String>) -> Self
pub fn set_snapshot_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn get_snapshot_arn(&self) -> &Option<String>
pub fn get_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
sourcepub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
sourcepub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
sourcepub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
pub fn get_snapshot_cluster_identifier(&self) -> &Option<String>
The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.
sourcepub fn account_with_restore_access(self, input: impl Into<String>) -> Self
pub fn account_with_restore_access(self, input: impl Into<String>) -> Self
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
This field is required.sourcepub fn set_account_with_restore_access(self, input: Option<String>) -> Self
pub fn set_account_with_restore_access(self, input: Option<String>) -> Self
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
sourcepub fn get_account_with_restore_access(&self) -> &Option<String>
pub fn get_account_with_restore_access(&self) -> &Option<String>
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
sourcepub fn build(self) -> Result<AuthorizeSnapshotAccessInput, BuildError>
pub fn build(self) -> Result<AuthorizeSnapshotAccessInput, BuildError>
Consumes the builder and constructs a AuthorizeSnapshotAccessInput
.
source§impl AuthorizeSnapshotAccessInputBuilder
impl AuthorizeSnapshotAccessInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AuthorizeSnapshotAccessOutput, SdkError<AuthorizeSnapshotAccessError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AuthorizeSnapshotAccessOutput, SdkError<AuthorizeSnapshotAccessError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AuthorizeSnapshotAccessInputBuilder
impl Clone for AuthorizeSnapshotAccessInputBuilder
source§fn clone(&self) -> AuthorizeSnapshotAccessInputBuilder
fn clone(&self) -> AuthorizeSnapshotAccessInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AuthorizeSnapshotAccessInputBuilder
impl Default for AuthorizeSnapshotAccessInputBuilder
source§fn default() -> AuthorizeSnapshotAccessInputBuilder
fn default() -> AuthorizeSnapshotAccessInputBuilder
source§impl PartialEq for AuthorizeSnapshotAccessInputBuilder
impl PartialEq for AuthorizeSnapshotAccessInputBuilder
source§fn eq(&self, other: &AuthorizeSnapshotAccessInputBuilder) -> bool
fn eq(&self, other: &AuthorizeSnapshotAccessInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.