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 ==
.