Struct aws_sdk_backup::types::builders::ProtectedResourceBuilder
source · #[non_exhaustive]pub struct ProtectedResourceBuilder { /* private fields */ }
Expand description
A builder for ProtectedResource
.
Implementations§
source§impl ProtectedResourceBuilder
impl ProtectedResourceBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (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 Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
An Amazon Resource Name (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; 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; 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 get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The type of Amazon Web Services resource; 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 last_backup_time(self, input: DateTime) -> Self
pub fn last_backup_time(self, input: DateTime) -> Self
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn set_last_backup_time(self, input: Option<DateTime>) -> Self
pub fn set_last_backup_time(self, input: Option<DateTime>) -> Self
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn get_last_backup_time(&self) -> &Option<DateTime>
pub fn get_last_backup_time(&self) -> &Option<DateTime>
The date and time a resource was last backed up, in Unix format and Coordinated Universal Time (UTC). The value of LastBackupTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
This is the non-unique name of the resource that belongs to the specified backup.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
This is the non-unique name of the resource that belongs to the specified backup.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
This is the non-unique name of the resource that belongs to the specified backup.
sourcepub fn build(self) -> ProtectedResource
pub fn build(self) -> ProtectedResource
Consumes the builder and constructs a ProtectedResource
.
Trait Implementations§
source§impl Clone for ProtectedResourceBuilder
impl Clone for ProtectedResourceBuilder
source§fn clone(&self) -> ProtectedResourceBuilder
fn clone(&self) -> ProtectedResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProtectedResourceBuilder
impl Debug for ProtectedResourceBuilder
source§impl Default for ProtectedResourceBuilder
impl Default for ProtectedResourceBuilder
source§fn default() -> ProtectedResourceBuilder
fn default() -> ProtectedResourceBuilder
source§impl PartialEq for ProtectedResourceBuilder
impl PartialEq for ProtectedResourceBuilder
source§fn eq(&self, other: &ProtectedResourceBuilder) -> bool
fn eq(&self, other: &ProtectedResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.