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.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
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.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
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.
-
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
-
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
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 ==.impl StructuralPartialEq for AuthorizeSnapshotAccessInputBuilder
Auto Trait Implementations§
impl Freeze for AuthorizeSnapshotAccessInputBuilder
impl RefUnwindSafe for AuthorizeSnapshotAccessInputBuilder
impl Send for AuthorizeSnapshotAccessInputBuilder
impl Sync for AuthorizeSnapshotAccessInputBuilder
impl Unpin for AuthorizeSnapshotAccessInputBuilder
impl UnwindSafe for AuthorizeSnapshotAccessInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more