#[non_exhaustive]pub struct DescribeBackupVaultOutputBuilder { /* private fields */ }
Expand description
A builder for DescribeBackupVaultOutput
.
Implementations§
Source§impl DescribeBackupVaultOutputBuilder
impl DescribeBackupVaultOutputBuilder
Sourcepub fn backup_vault_name(self, input: impl Into<String>) -> Self
pub fn backup_vault_name(self, input: impl Into<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.
Sourcepub fn set_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_backup_vault_name(self, input: Option<String>) -> Self
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.
Sourcepub fn get_backup_vault_name(&self) -> &Option<String>
pub fn get_backup_vault_name(&self) -> &Option<String>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created.
Sourcepub fn backup_vault_arn(self, input: impl Into<String>) -> Self
pub fn backup_vault_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
Sourcepub fn set_backup_vault_arn(self, input: Option<String>) -> Self
pub fn set_backup_vault_arn(self, input: Option<String>) -> Self
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
Sourcepub fn get_backup_vault_arn(&self) -> &Option<String>
pub fn get_backup_vault_arn(&self) -> &Option<String>
An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault
.
Sourcepub fn vault_type(self, input: VaultType) -> Self
pub fn vault_type(self, input: VaultType) -> Self
The type of vault described.
Sourcepub fn set_vault_type(self, input: Option<VaultType>) -> Self
pub fn set_vault_type(self, input: Option<VaultType>) -> Self
The type of vault described.
Sourcepub fn get_vault_type(&self) -> &Option<VaultType>
pub fn get_vault_type(&self) -> &Option<VaultType>
The type of vault described.
Sourcepub fn vault_state(self, input: VaultState) -> Self
pub fn vault_state(self, input: VaultState) -> Self
The current state of the vault.->
Sourcepub fn set_vault_state(self, input: Option<VaultState>) -> Self
pub fn set_vault_state(self, input: Option<VaultState>) -> Self
The current state of the vault.->
Sourcepub fn get_vault_state(&self) -> &Option<VaultState>
pub fn get_vault_state(&self) -> &Option<VaultState>
The current state of the vault.->
Sourcepub fn encryption_key_arn(self, input: impl Into<String>) -> Self
pub fn encryption_key_arn(self, input: impl Into<String>) -> Self
The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
Sourcepub fn set_encryption_key_arn(self, input: Option<String>) -> Self
pub fn set_encryption_key_arn(self, input: Option<String>) -> Self
The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
Sourcepub fn get_encryption_key_arn(&self) -> &Option<String>
pub fn get_encryption_key_arn(&self) -> &Option<String>
The server-side encryption key that is used to protect your backups; for example, arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
Sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date and time that a backup vault is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
pub fn set_creator_request_id(self, input: Option<String>) -> Self
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Sourcepub fn get_creator_request_id(&self) -> &Option<String>
pub fn get_creator_request_id(&self) -> &Option<String>
A unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
Sourcepub fn number_of_recovery_points(self, input: i64) -> Self
pub fn number_of_recovery_points(self, input: i64) -> Self
The number of recovery points that are stored in a backup vault.
Recovery point count value displayed in the console can be an approximation. Use ListRecoveryPointsByBackupVault
API to obtain the exact count.
Sourcepub fn set_number_of_recovery_points(self, input: Option<i64>) -> Self
pub fn set_number_of_recovery_points(self, input: Option<i64>) -> Self
The number of recovery points that are stored in a backup vault.
Recovery point count value displayed in the console can be an approximation. Use ListRecoveryPointsByBackupVault
API to obtain the exact count.
Sourcepub fn get_number_of_recovery_points(&self) -> &Option<i64>
pub fn get_number_of_recovery_points(&self) -> &Option<i64>
The number of recovery points that are stored in a backup vault.
Recovery point count value displayed in the console can be an approximation. Use ListRecoveryPointsByBackupVault
API to obtain the exact count.
Sourcepub fn locked(self, input: bool) -> Self
pub fn locked(self, input: bool) -> Self
A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. True
means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.
Sourcepub fn set_locked(self, input: Option<bool>) -> Self
pub fn set_locked(self, input: Option<bool>) -> Self
A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. True
means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.
Sourcepub fn get_locked(&self) -> &Option<bool>
pub fn get_locked(&self) -> &Option<bool>
A Boolean that indicates whether Backup Vault Lock is currently protecting the backup vault. True
means that Vault Lock causes delete or update operations on the recovery points stored in the vault to fail.
Sourcepub fn min_retention_days(self, input: i64) -> Self
pub fn min_retention_days(self, input: i64) -> Self
The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn set_min_retention_days(self, input: Option<i64>) -> Self
pub fn set_min_retention_days(self, input: Option<i64>) -> Self
The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn get_min_retention_days(&self) -> &Option<i64>
pub fn get_min_retention_days(&self) -> &Option<i64>
The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock will not enforce a minimum retention period.
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn max_retention_days(self, input: i64) -> Self
pub fn max_retention_days(self, input: i64) -> Self
The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn set_max_retention_days(self, input: Option<i64>) -> Self
pub fn set_max_retention_days(self, input: Option<i64>) -> Self
The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn get_max_retention_days(&self) -> &Option<i64>
pub fn get_max_retention_days(&self) -> &Option<i64>
The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage).
If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected.
Sourcepub fn lock_date(self, input: DateTime) -> Self
pub fn lock_date(self, input: DateTime) -> Self
The date and time when Backup Vault Lock configuration cannot be changed or deleted.
If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn set_lock_date(self, input: Option<DateTime>) -> Self
pub fn set_lock_date(self, input: Option<DateTime>) -> Self
The date and time when Backup Vault Lock configuration cannot be changed or deleted.
If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn get_lock_date(&self) -> &Option<DateTime>
pub fn get_lock_date(&self) -> &Option<DateTime>
The date and time when Backup Vault Lock configuration cannot be changed or deleted.
If you applied Vault Lock to your vault without specifying a lock date, you can change any of your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
Sourcepub fn source_backup_vault_arn(self, input: impl Into<String>) -> Self
pub fn source_backup_vault_arn(self, input: impl Into<String>) -> Self
The ARN of the source backup vault from which this restore access backup vault was created.
Sourcepub fn set_source_backup_vault_arn(self, input: Option<String>) -> Self
pub fn set_source_backup_vault_arn(self, input: Option<String>) -> Self
The ARN of the source backup vault from which this restore access backup vault was created.
Sourcepub fn get_source_backup_vault_arn(&self) -> &Option<String>
pub fn get_source_backup_vault_arn(&self) -> &Option<String>
The ARN of the source backup vault from which this restore access backup vault was created.
Sourcepub fn mpa_approval_team_arn(self, input: impl Into<String>) -> Self
pub fn mpa_approval_team_arn(self, input: impl Into<String>) -> Self
The ARN of the MPA approval team associated with this backup vault.
Sourcepub fn set_mpa_approval_team_arn(self, input: Option<String>) -> Self
pub fn set_mpa_approval_team_arn(self, input: Option<String>) -> Self
The ARN of the MPA approval team associated with this backup vault.
Sourcepub fn get_mpa_approval_team_arn(&self) -> &Option<String>
pub fn get_mpa_approval_team_arn(&self) -> &Option<String>
The ARN of the MPA approval team associated with this backup vault.
Sourcepub fn mpa_session_arn(self, input: impl Into<String>) -> Self
pub fn mpa_session_arn(self, input: impl Into<String>) -> Self
The ARN of the MPA session associated with this backup vault.
Sourcepub fn set_mpa_session_arn(self, input: Option<String>) -> Self
pub fn set_mpa_session_arn(self, input: Option<String>) -> Self
The ARN of the MPA session associated with this backup vault.
Sourcepub fn get_mpa_session_arn(&self) -> &Option<String>
pub fn get_mpa_session_arn(&self) -> &Option<String>
The ARN of the MPA session associated with this backup vault.
Sourcepub fn latest_mpa_approval_team_update(
self,
input: LatestMpaApprovalTeamUpdate,
) -> Self
pub fn latest_mpa_approval_team_update( self, input: LatestMpaApprovalTeamUpdate, ) -> Self
Information about the latest update to the MPA approval team association for this backup vault.
Sourcepub fn set_latest_mpa_approval_team_update(
self,
input: Option<LatestMpaApprovalTeamUpdate>,
) -> Self
pub fn set_latest_mpa_approval_team_update( self, input: Option<LatestMpaApprovalTeamUpdate>, ) -> Self
Information about the latest update to the MPA approval team association for this backup vault.
Sourcepub fn get_latest_mpa_approval_team_update(
&self,
) -> &Option<LatestMpaApprovalTeamUpdate>
pub fn get_latest_mpa_approval_team_update( &self, ) -> &Option<LatestMpaApprovalTeamUpdate>
Information about the latest update to the MPA approval team association for this backup vault.
Sourcepub fn build(self) -> DescribeBackupVaultOutput
pub fn build(self) -> DescribeBackupVaultOutput
Consumes the builder and constructs a DescribeBackupVaultOutput
.
Trait Implementations§
Source§impl Clone for DescribeBackupVaultOutputBuilder
impl Clone for DescribeBackupVaultOutputBuilder
Source§fn clone(&self) -> DescribeBackupVaultOutputBuilder
fn clone(&self) -> DescribeBackupVaultOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for DescribeBackupVaultOutputBuilder
impl Default for DescribeBackupVaultOutputBuilder
Source§fn default() -> DescribeBackupVaultOutputBuilder
fn default() -> DescribeBackupVaultOutputBuilder
Source§impl PartialEq for DescribeBackupVaultOutputBuilder
impl PartialEq for DescribeBackupVaultOutputBuilder
Source§fn eq(&self, other: &DescribeBackupVaultOutputBuilder) -> bool
fn eq(&self, other: &DescribeBackupVaultOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DescribeBackupVaultOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeBackupVaultOutputBuilder
impl RefUnwindSafe for DescribeBackupVaultOutputBuilder
impl Send for DescribeBackupVaultOutputBuilder
impl Sync for DescribeBackupVaultOutputBuilder
impl Unpin for DescribeBackupVaultOutputBuilder
impl UnwindSafe for DescribeBackupVaultOutputBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);