Struct aws_sdk_redshift::operation::batch_modify_cluster_snapshots::builders::BatchModifyClusterSnapshotsInputBuilder
source · #[non_exhaustive]pub struct BatchModifyClusterSnapshotsInputBuilder { /* private fields */ }
Expand description
A builder for BatchModifyClusterSnapshotsInput
.
Implementations§
source§impl BatchModifyClusterSnapshotsInputBuilder
impl BatchModifyClusterSnapshotsInputBuilder
sourcepub fn snapshot_identifier_list(self, input: impl Into<String>) -> Self
pub fn snapshot_identifier_list(self, input: impl Into<String>) -> Self
Appends an item to snapshot_identifier_list
.
To override the contents of this collection use set_snapshot_identifier_list
.
A list of snapshot identifiers you want to modify.
sourcepub fn set_snapshot_identifier_list(self, input: Option<Vec<String>>) -> Self
pub fn set_snapshot_identifier_list(self, input: Option<Vec<String>>) -> Self
A list of snapshot identifiers you want to modify.
sourcepub fn get_snapshot_identifier_list(&self) -> &Option<Vec<String>>
pub fn get_snapshot_identifier_list(&self) -> &Option<Vec<String>>
A list of snapshot identifiers you want to modify.
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 you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
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 you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
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 you specify the value -1, the manual snapshot is retained indefinitely.
The number must be either -1 or an integer between 1 and 3,653.
If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
A boolean value indicating whether to override an exception if the retention period has passed.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
A boolean value indicating whether to override an exception if the retention period has passed.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
A boolean value indicating whether to override an exception if the retention period has passed.
sourcepub fn build(self) -> Result<BatchModifyClusterSnapshotsInput, BuildError>
pub fn build(self) -> Result<BatchModifyClusterSnapshotsInput, BuildError>
Consumes the builder and constructs a BatchModifyClusterSnapshotsInput
.
source§impl BatchModifyClusterSnapshotsInputBuilder
impl BatchModifyClusterSnapshotsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<BatchModifyClusterSnapshotsOutput, SdkError<BatchModifyClusterSnapshotsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<BatchModifyClusterSnapshotsOutput, SdkError<BatchModifyClusterSnapshotsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for BatchModifyClusterSnapshotsInputBuilder
impl Clone for BatchModifyClusterSnapshotsInputBuilder
source§fn clone(&self) -> BatchModifyClusterSnapshotsInputBuilder
fn clone(&self) -> BatchModifyClusterSnapshotsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BatchModifyClusterSnapshotsInputBuilder
impl Default for BatchModifyClusterSnapshotsInputBuilder
source§fn default() -> BatchModifyClusterSnapshotsInputBuilder
fn default() -> BatchModifyClusterSnapshotsInputBuilder
source§impl PartialEq for BatchModifyClusterSnapshotsInputBuilder
impl PartialEq for BatchModifyClusterSnapshotsInputBuilder
source§fn eq(&self, other: &BatchModifyClusterSnapshotsInputBuilder) -> bool
fn eq(&self, other: &BatchModifyClusterSnapshotsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.