Struct aws_sdk_backup::operation::create_logically_air_gapped_backup_vault::builders::CreateLogicallyAirGappedBackupVaultInputBuilder
source · #[non_exhaustive]pub struct CreateLogicallyAirGappedBackupVaultInputBuilder { /* private fields */ }
Expand description
A builder for CreateLogicallyAirGappedBackupVaultInput
.
Implementations§
source§impl CreateLogicallyAirGappedBackupVaultInputBuilder
impl CreateLogicallyAirGappedBackupVaultInputBuilder
sourcepub fn backup_vault_name(self, input: impl Into<String>) -> Self
pub fn backup_vault_name(self, input: impl Into<String>) -> Self
This is the name of the vault that is being created.
This field is required.sourcepub fn set_backup_vault_name(self, input: Option<String>) -> Self
pub fn set_backup_vault_name(self, input: Option<String>) -> Self
This is the name of the vault that is being created.
sourcepub fn get_backup_vault_name(&self) -> &Option<String>
pub fn get_backup_vault_name(&self) -> &Option<String>
This is the name of the vault that is being created.
Adds a key-value pair to backup_vault_tags
.
To override the contents of this collection use set_backup_vault_tags
.
These are the tags that will be included in the newly-created vault.
These are the tags that will be included in the newly-created vault.
These are the tags that will be included in the newly-created vault.
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
pub fn creator_request_id(self, input: impl Into<String>) -> Self
This is the ID of the creation request.
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
This is the ID of the creation request.
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>
This is the ID of the creation request.
This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn min_retention_days(self, input: i64) -> Self
pub fn min_retention_days(self, input: i64) -> Self
This setting specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, no minimum retention period is enforced.
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 a job 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.
This field is required.sourcepub fn set_min_retention_days(self, input: Option<i64>) -> Self
pub fn set_min_retention_days(self, input: Option<i64>) -> Self
This setting specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, no minimum retention period is enforced.
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 a job 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.
sourcepub fn get_min_retention_days(&self) -> &Option<i64>
pub fn get_min_retention_days(&self) -> &Option<i64>
This setting specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, no minimum retention period is enforced.
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 a job 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.
sourcepub fn max_retention_days(self, input: i64) -> Self
pub fn max_retention_days(self, input: i64) -> Self
This is the setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Backup 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 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.
This field is required.sourcepub fn set_max_retention_days(self, input: Option<i64>) -> Self
pub fn set_max_retention_days(self, input: Option<i64>) -> Self
This is the setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Backup 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 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.
sourcepub fn get_max_retention_days(&self) -> &Option<i64>
pub fn get_max_retention_days(&self) -> &Option<i64>
This is the setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Backup 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 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.
sourcepub fn build(
self
) -> Result<CreateLogicallyAirGappedBackupVaultInput, BuildError>
pub fn build( self ) -> Result<CreateLogicallyAirGappedBackupVaultInput, BuildError>
Consumes the builder and constructs a CreateLogicallyAirGappedBackupVaultInput
.
source§impl CreateLogicallyAirGappedBackupVaultInputBuilder
impl CreateLogicallyAirGappedBackupVaultInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateLogicallyAirGappedBackupVaultOutput, SdkError<CreateLogicallyAirGappedBackupVaultError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateLogicallyAirGappedBackupVaultOutput, SdkError<CreateLogicallyAirGappedBackupVaultError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateLogicallyAirGappedBackupVaultInputBuilder
impl Clone for CreateLogicallyAirGappedBackupVaultInputBuilder
source§fn clone(&self) -> CreateLogicallyAirGappedBackupVaultInputBuilder
fn clone(&self) -> CreateLogicallyAirGappedBackupVaultInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateLogicallyAirGappedBackupVaultInputBuilder
impl Default for CreateLogicallyAirGappedBackupVaultInputBuilder
source§fn default() -> CreateLogicallyAirGappedBackupVaultInputBuilder
fn default() -> CreateLogicallyAirGappedBackupVaultInputBuilder
source§impl PartialEq for CreateLogicallyAirGappedBackupVaultInputBuilder
impl PartialEq for CreateLogicallyAirGappedBackupVaultInputBuilder
source§fn eq(&self, other: &CreateLogicallyAirGappedBackupVaultInputBuilder) -> bool
fn eq(&self, other: &CreateLogicallyAirGappedBackupVaultInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.