pub struct Builder { /* private fields */ }
Expand description
A builder for AwsBackupRecoveryPointDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn backup_size_in_bytes(self, input: i64) -> Self
pub fn backup_size_in_bytes(self, input: i64) -> Self
The size, in bytes, of a backup.
sourcepub fn set_backup_size_in_bytes(self, input: Option<i64>) -> Self
pub fn set_backup_size_in_bytes(self, input: Option<i64>) -> Self
The size, in bytes, of a backup.
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.
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.
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 Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
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 Amazon Web Services account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
sourcepub fn calculated_lifecycle(
self,
input: AwsBackupRecoveryPointCalculatedLifecycleDetails
) -> Self
pub fn calculated_lifecycle(
self,
input: AwsBackupRecoveryPointCalculatedLifecycleDetails
) -> Self
A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
timestamps.
sourcepub fn set_calculated_lifecycle(
self,
input: Option<AwsBackupRecoveryPointCalculatedLifecycleDetails>
) -> Self
pub fn set_calculated_lifecycle(
self,
input: Option<AwsBackupRecoveryPointCalculatedLifecycleDetails>
) -> Self
A CalculatedLifecycle
object containing DeleteAt
and MoveToColdStorageAt
timestamps.
sourcepub fn completion_date(self, input: impl Into<String>) -> Self
pub fn completion_date(self, input: impl Into<String>) -> Self
The date and time that a job to create a recovery point is completed, in Unix format and UTC. The value of CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_completion_date(self, input: Option<String>) -> Self
pub fn set_completion_date(self, input: Option<String>) -> Self
The date and time that a job to create a recovery point is completed, in Unix format and UTC. The value of CompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn created_by(self, input: AwsBackupRecoveryPointCreatedByDetails) -> Self
pub fn created_by(self, input: AwsBackupRecoveryPointCreatedByDetails) -> Self
Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan that is used to create it.
sourcepub fn set_created_by(
self,
input: Option<AwsBackupRecoveryPointCreatedByDetails>
) -> Self
pub fn set_created_by(
self,
input: Option<AwsBackupRecoveryPointCreatedByDetails>
) -> Self
Contains identifying information about the creation of a recovery point, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan that is used to create it.
sourcepub fn creation_date(self, input: impl Into<String>) -> Self
pub fn creation_date(self, input: impl Into<String>) -> Self
The date and time a recovery point is created, in Unix format and 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<String>) -> Self
pub fn set_creation_date(self, input: Option<String>) -> Self
The date and time a recovery point is created, in Unix format and 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 encryption_key_arn(self, input: impl Into<String>) -> Self
pub fn encryption_key_arn(self, input: impl Into<String>) -> Self
The ARN for the server-side encryption key that is used to protect your backups.
sourcepub fn set_encryption_key_arn(self, input: Option<String>) -> Self
pub fn set_encryption_key_arn(self, input: Option<String>) -> Self
The ARN for the server-side encryption key that is used to protect your backups.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
Specifies the IAM role ARN used to create the target recovery point
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
Specifies the IAM role ARN used to create the target recovery point
sourcepub fn is_encrypted(self, input: bool) -> Self
pub fn is_encrypted(self, input: bool) -> Self
A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or FALSE
if the recovery point is not encrypted.
sourcepub fn set_is_encrypted(self, input: Option<bool>) -> Self
pub fn set_is_encrypted(self, input: Option<bool>) -> Self
A Boolean value that is returned as TRUE
if the specified recovery point is encrypted, or FALSE
if the recovery point is not encrypted.
sourcepub fn last_restore_time(self, input: impl Into<String>) -> Self
pub fn last_restore_time(self, input: impl Into<String>) -> Self
The date and time that a recovery point was last restored, in Unix format and UTC. The value of LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_last_restore_time(self, input: Option<String>) -> Self
pub fn set_last_restore_time(self, input: Option<String>) -> Self
The date and time that a recovery point was last restored, in Unix format and UTC. The value of LastRestoreTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn lifecycle(self, input: AwsBackupRecoveryPointLifecycleDetails) -> Self
pub fn lifecycle(self, input: AwsBackupRecoveryPointLifecycleDetails) -> Self
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define
sourcepub fn set_lifecycle(
self,
input: Option<AwsBackupRecoveryPointLifecycleDetails>
) -> Self
pub fn set_lifecycle(
self,
input: Option<AwsBackupRecoveryPointLifecycleDetails>
) -> Self
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define
sourcepub fn recovery_point_arn(self, input: impl Into<String>) -> Self
pub fn recovery_point_arn(self, input: impl Into<String>) -> Self
An ARN that uniquely identifies a recovery point.
sourcepub fn set_recovery_point_arn(self, input: Option<String>) -> Self
pub fn set_recovery_point_arn(self, input: Option<String>) -> Self
An ARN that uniquely identifies a recovery point.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
An ARN that uniquely identifies a resource. The format of the ARN depends on the resource type.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The type of Amazon Web Services resource saved as a recovery point, such as an Amazon EBS volume or an Amazon RDS database.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The type of Amazon Web Services resource saved as a recovery point, such as an Amazon EBS volume or an Amazon RDS database.
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 for the backup vault where the recovery point was originally copied from. If the recovery point is restored to the same account, this value will be null.
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 for the backup vault where the recovery point was originally copied from. If the recovery point is restored to the same account, this value will be null.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
A status code specifying the state of the recovery point. Valid values are as follows:
-
COMPLETED
-
DELETING
-
EXPIRED
-
PARTIAL
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
A status code specifying the state of the recovery point. Valid values are as follows:
-
COMPLETED
-
DELETING
-
EXPIRED
-
PARTIAL
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A message explaining the reason of the recovery point deletion failure.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A message explaining the reason of the recovery point deletion failure.
sourcepub fn storage_class(self, input: impl Into<String>) -> Self
pub fn storage_class(self, input: impl Into<String>) -> Self
Specifies the storage class of the recovery point. Valid values are as follows:
-
COLD
-
DELETED
-
WARM
sourcepub fn set_storage_class(self, input: Option<String>) -> Self
pub fn set_storage_class(self, input: Option<String>) -> Self
Specifies the storage class of the recovery point. Valid values are as follows:
-
COLD
-
DELETED
-
WARM
sourcepub fn build(self) -> AwsBackupRecoveryPointDetails
pub fn build(self) -> AwsBackupRecoveryPointDetails
Consumes the builder and constructs a AwsBackupRecoveryPointDetails
.