Struct aws_sdk_redshift::operation::revoke_snapshot_access::builders::RevokeSnapshotAccessInputBuilder
source · #[non_exhaustive]pub struct RevokeSnapshotAccessInputBuilder { /* private fields */ }Expand description
A builder for RevokeSnapshotAccessInput.
Implementations§
source§impl RevokeSnapshotAccessInputBuilder
impl RevokeSnapshotAccessInputBuilder
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 that the account can no longer access.
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 that the account can no longer access.
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The identifier of the snapshot that the account can no longer access.
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 associated with the message to revoke access.
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 associated with the message to revoke access.
sourcepub fn get_snapshot_arn(&self) -> &Option<String>
pub fn get_snapshot_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot associated with the message to revoke access.
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 that can no longer restore the specified snapshot.
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 that can no longer restore the specified snapshot.
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 that can no longer restore the specified snapshot.
sourcepub fn build(self) -> Result<RevokeSnapshotAccessInput, BuildError>
pub fn build(self) -> Result<RevokeSnapshotAccessInput, BuildError>
Consumes the builder and constructs a RevokeSnapshotAccessInput.
source§impl RevokeSnapshotAccessInputBuilder
impl RevokeSnapshotAccessInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RevokeSnapshotAccessOutput, SdkError<RevokeSnapshotAccessError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RevokeSnapshotAccessOutput, SdkError<RevokeSnapshotAccessError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RevokeSnapshotAccessInputBuilder
impl Clone for RevokeSnapshotAccessInputBuilder
source§fn clone(&self) -> RevokeSnapshotAccessInputBuilder
fn clone(&self) -> RevokeSnapshotAccessInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RevokeSnapshotAccessInputBuilder
impl Default for RevokeSnapshotAccessInputBuilder
source§fn default() -> RevokeSnapshotAccessInputBuilder
fn default() -> RevokeSnapshotAccessInputBuilder
source§impl PartialEq for RevokeSnapshotAccessInputBuilder
impl PartialEq for RevokeSnapshotAccessInputBuilder
source§fn eq(&self, other: &RevokeSnapshotAccessInputBuilder) -> bool
fn eq(&self, other: &RevokeSnapshotAccessInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RevokeSnapshotAccessInputBuilder
Auto Trait Implementations§
impl Freeze for RevokeSnapshotAccessInputBuilder
impl RefUnwindSafe for RevokeSnapshotAccessInputBuilder
impl Send for RevokeSnapshotAccessInputBuilder
impl Sync for RevokeSnapshotAccessInputBuilder
impl Unpin for RevokeSnapshotAccessInputBuilder
impl UnwindSafe for RevokeSnapshotAccessInputBuilder
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