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 ==
.impl StructuralPartialEq for BatchModifyClusterSnapshotsInputBuilder
Auto Trait Implementations§
impl Freeze for BatchModifyClusterSnapshotsInputBuilder
impl RefUnwindSafe for BatchModifyClusterSnapshotsInputBuilder
impl Send for BatchModifyClusterSnapshotsInputBuilder
impl Sync for BatchModifyClusterSnapshotsInputBuilder
impl Unpin for BatchModifyClusterSnapshotsInputBuilder
impl UnwindSafe for BatchModifyClusterSnapshotsInputBuilder
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