Struct aws_sdk_redshift::operation::create_cluster_snapshot::builders::CreateClusterSnapshotInputBuilder
source · #[non_exhaustive]pub struct CreateClusterSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateClusterSnapshotInput
.
Implementations§
source§impl CreateClusterSnapshotInputBuilder
impl CreateClusterSnapshotInputBuilder
sourcepub fn snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier(self, input: impl Into<String>) -> Self
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
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
Example: my-snapshot-id
sourcepub fn set_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_snapshot_identifier(self, input: Option<String>) -> Self
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
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
Example: my-snapshot-id
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
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
Example: my-snapshot-id
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The cluster identifier for which you want a snapshot.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The cluster identifier for which you want a snapshot.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The cluster identifier for which you want a snapshot.
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of tag instances.
A list of tag instances.
A list of tag instances.
sourcepub fn build(self) -> Result<CreateClusterSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateClusterSnapshotInput, BuildError>
Consumes the builder and constructs a CreateClusterSnapshotInput
.
source§impl CreateClusterSnapshotInputBuilder
impl CreateClusterSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateClusterSnapshotOutput, SdkError<CreateClusterSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateClusterSnapshotOutput, SdkError<CreateClusterSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateClusterSnapshotInputBuilder
impl Clone for CreateClusterSnapshotInputBuilder
source§fn clone(&self) -> CreateClusterSnapshotInputBuilder
fn clone(&self) -> CreateClusterSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateClusterSnapshotInputBuilder
impl Default for CreateClusterSnapshotInputBuilder
source§fn default() -> CreateClusterSnapshotInputBuilder
fn default() -> CreateClusterSnapshotInputBuilder
source§impl PartialEq<CreateClusterSnapshotInputBuilder> for CreateClusterSnapshotInputBuilder
impl PartialEq<CreateClusterSnapshotInputBuilder> for CreateClusterSnapshotInputBuilder
source§fn eq(&self, other: &CreateClusterSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateClusterSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.