Struct aws_sdk_backup::model::backup_job::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for BackupJob
Implementations
sourceimpl Builder
impl Builder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account ID that owns the backup job.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account ID that owns the backup job.
sourcepub fn backup_job_id(self, input: impl Into<String>) -> Self
pub fn backup_job_id(self, input: impl Into<String>) -> Self
Uniquely identifies a request to Backup to back up a resource.
sourcepub fn set_backup_job_id(self, input: Option<String>) -> Self
pub fn set_backup_job_id(self, input: Option<String>) -> Self
Uniquely identifies a request to Backup to back up a resource.
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 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 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 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: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:vault:aBackupVault
.
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; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
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; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45
.
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 creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time a backup job 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 a backup job 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 completion_date(self, input: DateTime) -> Self
pub fn completion_date(self, input: DateTime) -> Self
The date and time a job to create a backup job is completed, in Unix format and Coordinated Universal Time (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<DateTime>) -> Self
pub fn set_completion_date(self, input: Option<DateTime>) -> Self
The date and time a job to create a backup job is completed, in Unix format and Coordinated Universal Time (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 state(self, input: BackupJobState) -> Self
pub fn state(self, input: BackupJobState) -> Self
The current state of a resource recovery point.
sourcepub fn set_state(self, input: Option<BackupJobState>) -> Self
pub fn set_state(self, input: Option<BackupJobState>) -> Self
The current state of a resource recovery point.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A detailed message explaining the status of the job to back up a resource.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A detailed message explaining the status of the job to back up a resource.
sourcepub fn percent_done(self, input: impl Into<String>) -> Self
pub fn percent_done(self, input: impl Into<String>) -> Self
Contains an estimated percentage complete of a job at the time the job status was queried.
sourcepub fn set_percent_done(self, input: Option<String>) -> Self
pub fn set_percent_done(self, input: Option<String>) -> Self
Contains an estimated percentage complete of a job at the time the job status was queried.
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 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. IAM roles other than the default role must include either AWSBackup
or AwsBackup
in the role name. For example, arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions to perform backup jobs.
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. IAM roles other than the default role must include either AWSBackup
or AwsBackup
in the role name. For example, arn:aws:iam::123456789012:role/AWSBackupRDSAccess
. Role names without those strings lack permissions to perform backup jobs.
sourcepub fn created_by(self, input: RecoveryPointCreator) -> Self
pub fn created_by(self, input: RecoveryPointCreator) -> Self
Contains identifying information about the creation of a backup job, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used to create it.
sourcepub fn set_created_by(self, input: Option<RecoveryPointCreator>) -> Self
pub fn set_created_by(self, input: Option<RecoveryPointCreator>) -> Self
Contains identifying information about the creation of a backup job, including the BackupPlanArn
, BackupPlanId
, BackupPlanVersion
, and BackupRuleId
of the backup plan used to create it.
sourcepub fn expected_completion_date(self, input: DateTime) -> Self
pub fn expected_completion_date(self, input: DateTime) -> Self
The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_expected_completion_date(self, input: Option<DateTime>) -> Self
pub fn set_expected_completion_date(self, input: Option<DateTime>) -> Self
The date and time a job to back up resources is expected to be completed, in Unix format and Coordinated Universal Time (UTC). The value of ExpectedCompletionDate
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn start_by(self, input: DateTime) -> Self
pub fn start_by(self, input: DateTime) -> Self
Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_start_by(self, input: Option<DateTime>) -> Self
pub fn set_start_by(self, input: Option<DateTime>) -> Self
Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup job must be started before it is canceled. The value is calculated by adding the start window to the scheduled time. So if the scheduled time were 6:00 PM and the start window is 2 hours, the StartBy
time would be 8:00 PM on the date specified. The value of StartBy
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
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 to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
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 to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource type is Amazon EC2.
sourcepub fn bytes_transferred(self, input: i64) -> Self
pub fn bytes_transferred(self, input: i64) -> Self
The size in bytes transferred to a backup vault at the time that the job status was queried.
sourcepub fn set_bytes_transferred(self, input: Option<i64>) -> Self
pub fn set_bytes_transferred(self, input: Option<i64>) -> Self
The size in bytes transferred to a backup vault at the time that the job status was queried.
sourcepub fn backup_options(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn backup_options(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to backup_options
.
To override the contents of this collection use set_backup_options
.
Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you specify an invalid option, you get an InvalidParameterValueException
exception.
sourcepub fn set_backup_options(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_backup_options(self, input: Option<HashMap<String, String>>) -> Self
Specifies the backup option for a selected resource. This option is only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
Valid values: Set to "WindowsVSS":"enabled"
to enable the WindowsVSS
backup option and create a Windows VSS backup. Set to "WindowsVSS":"disabled"
to create a regular backup. If you specify an invalid option, you get an InvalidParameterValueException
exception.
sourcepub fn backup_type(self, input: impl Into<String>) -> Self
pub fn backup_type(self, input: impl Into<String>) -> Self
Represents the type of backup for a backup job.
sourcepub fn set_backup_type(self, input: Option<String>) -> Self
pub fn set_backup_type(self, input: Option<String>) -> Self
Represents the type of backup for a backup job.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more