Struct aws_sdk_redshift::operation::modify_cluster_snapshot::builders::ModifyClusterSnapshotInputBuilder
source · #[non_exhaustive]pub struct ModifyClusterSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for ModifyClusterSnapshotInput
.
Implementations§
source§impl ModifyClusterSnapshotInputBuilder
impl ModifyClusterSnapshotInputBuilder
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 whose setting you want to modify.
This field is required.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 whose setting you want to modify.
sourcepub fn get_snapshot_identifier(&self) -> &Option<String>
pub fn get_snapshot_identifier(&self) -> &Option<String>
The identifier of the snapshot whose setting 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 the value is -1, the manual snapshot is retained indefinitely.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
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.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
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.
If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.
The value must be either -1 or an integer between 1 and 3,653.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
A Boolean option to override an exception if the retention period has already passed.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
A Boolean option to override an exception if the retention period has already passed.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
A Boolean option to override an exception if the retention period has already passed.
sourcepub fn build(self) -> Result<ModifyClusterSnapshotInput, BuildError>
pub fn build(self) -> Result<ModifyClusterSnapshotInput, BuildError>
Consumes the builder and constructs a ModifyClusterSnapshotInput
.
source§impl ModifyClusterSnapshotInputBuilder
impl ModifyClusterSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyClusterSnapshotOutput, SdkError<ModifyClusterSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyClusterSnapshotOutput, SdkError<ModifyClusterSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyClusterSnapshotInputBuilder
impl Clone for ModifyClusterSnapshotInputBuilder
source§fn clone(&self) -> ModifyClusterSnapshotInputBuilder
fn clone(&self) -> ModifyClusterSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyClusterSnapshotInputBuilder
impl Default for ModifyClusterSnapshotInputBuilder
source§fn default() -> ModifyClusterSnapshotInputBuilder
fn default() -> ModifyClusterSnapshotInputBuilder
source§impl PartialEq for ModifyClusterSnapshotInputBuilder
impl PartialEq for ModifyClusterSnapshotInputBuilder
source§fn eq(&self, other: &ModifyClusterSnapshotInputBuilder) -> bool
fn eq(&self, other: &ModifyClusterSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.