Struct aws_sdk_redshift::operation::copy_cluster_snapshot::builders::CopyClusterSnapshotInputBuilder
source · #[non_exhaustive]pub struct CopyClusterSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CopyClusterSnapshotInput
.
Implementations§
source§impl CopyClusterSnapshotInputBuilder
impl CopyClusterSnapshotInputBuilder
sourcepub fn source_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn source_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
sourcepub fn set_source_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_source_snapshot_identifier(self, input: Option<String>) -> Self
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
sourcepub fn get_source_snapshot_identifier(&self) -> &Option<String>
pub fn get_source_snapshot_identifier(&self) -> &Option<String>
The identifier for the source snapshot.
Constraints:
-
Must be the identifier for a valid automated snapshot whose state is
available
.
sourcepub fn source_snapshot_cluster_identifier(
self,
input: impl Into<String>,
) -> Self
pub fn source_snapshot_cluster_identifier( self, input: impl Into<String>, ) -> Self
The identifier of the cluster the source 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.
Constraints:
-
Must be the identifier for a valid cluster.
sourcepub fn set_source_snapshot_cluster_identifier(
self,
input: Option<String>,
) -> Self
pub fn set_source_snapshot_cluster_identifier( self, input: Option<String>, ) -> Self
The identifier of the cluster the source 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.
Constraints:
-
Must be the identifier for a valid cluster.
sourcepub fn get_source_snapshot_cluster_identifier(&self) -> &Option<String>
pub fn get_source_snapshot_cluster_identifier(&self) -> &Option<String>
The identifier of the cluster the source 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.
Constraints:
-
Must be the identifier for a valid cluster.
sourcepub fn target_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn target_snapshot_identifier(self, input: impl Into<String>) -> Self
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
sourcepub fn set_target_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_target_snapshot_identifier(self, input: Option<String>) -> Self
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
sourcepub fn get_target_snapshot_identifier(&self) -> &Option<String>
pub fn get_target_snapshot_identifier(&self) -> &Option<String>
The identifier given to the new manual snapshot.
Constraints:
-
Cannot be null, empty, or blank.
-
Must contain from 1 to 255 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
-
Must be unique for the Amazon Web Services account that is making the request.
sourcepub fn manual_snapshot_retention_period(self, input: i32) -> Self
pub fn manual_snapshot_retention_period(self, input: i32) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
sourcepub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
pub fn set_manual_snapshot_retention_period(self, input: Option<i32>) -> Self
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
sourcepub fn get_manual_snapshot_retention_period(&self) -> &Option<i32>
pub fn get_manual_snapshot_retention_period(&self) -> &Option<i32>
The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
sourcepub fn build(self) -> Result<CopyClusterSnapshotInput, BuildError>
pub fn build(self) -> Result<CopyClusterSnapshotInput, BuildError>
Consumes the builder and constructs a CopyClusterSnapshotInput
.
source§impl CopyClusterSnapshotInputBuilder
impl CopyClusterSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CopyClusterSnapshotOutput, SdkError<CopyClusterSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CopyClusterSnapshotOutput, SdkError<CopyClusterSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CopyClusterSnapshotInputBuilder
impl Clone for CopyClusterSnapshotInputBuilder
source§fn clone(&self) -> CopyClusterSnapshotInputBuilder
fn clone(&self) -> CopyClusterSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CopyClusterSnapshotInputBuilder
impl Default for CopyClusterSnapshotInputBuilder
source§fn default() -> CopyClusterSnapshotInputBuilder
fn default() -> CopyClusterSnapshotInputBuilder
source§impl PartialEq for CopyClusterSnapshotInputBuilder
impl PartialEq for CopyClusterSnapshotInputBuilder
source§fn eq(&self, other: &CopyClusterSnapshotInputBuilder) -> bool
fn eq(&self, other: &CopyClusterSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CopyClusterSnapshotInputBuilder
Auto Trait Implementations§
impl Freeze for CopyClusterSnapshotInputBuilder
impl RefUnwindSafe for CopyClusterSnapshotInputBuilder
impl Send for CopyClusterSnapshotInputBuilder
impl Sync for CopyClusterSnapshotInputBuilder
impl Unpin for CopyClusterSnapshotInputBuilder
impl UnwindSafe for CopyClusterSnapshotInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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