Struct aws_sdk_ec2::types::builders::SnapshotInfoBuilder
source · #[non_exhaustive]pub struct SnapshotInfoBuilder { /* private fields */ }
Expand description
A builder for SnapshotInfo
.
Implementations§
source§impl SnapshotInfoBuilder
impl SnapshotInfoBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description specified by the CreateSnapshotRequest that has been applied to all snapshots.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description specified by the CreateSnapshotRequest that has been applied to all snapshots.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description specified by the CreateSnapshotRequest that has been applied to all snapshots.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Tags associated with this snapshot.
Tags associated with this snapshot.
Tags associated with this snapshot.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Indicates whether the snapshot is encrypted.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Indicates whether the snapshot is encrypted.
sourcepub fn volume_id(self, input: impl Into<String>) -> Self
pub fn volume_id(self, input: impl Into<String>) -> Self
Source volume from which this snapshot was created.
sourcepub fn set_volume_id(self, input: Option<String>) -> Self
pub fn set_volume_id(self, input: Option<String>) -> Self
Source volume from which this snapshot was created.
sourcepub fn get_volume_id(&self) -> &Option<String>
pub fn get_volume_id(&self) -> &Option<String>
Source volume from which this snapshot was created.
sourcepub fn state(self, input: SnapshotState) -> Self
pub fn state(self, input: SnapshotState) -> Self
Current state of the snapshot.
sourcepub fn set_state(self, input: Option<SnapshotState>) -> Self
pub fn set_state(self, input: Option<SnapshotState>) -> Self
Current state of the snapshot.
sourcepub fn get_state(&self) -> &Option<SnapshotState>
pub fn get_state(&self) -> &Option<SnapshotState>
Current state of the snapshot.
sourcepub fn volume_size(self, input: i32) -> Self
pub fn volume_size(self, input: i32) -> Self
Size of the volume from which this snapshot was created.
sourcepub fn set_volume_size(self, input: Option<i32>) -> Self
pub fn set_volume_size(self, input: Option<i32>) -> Self
Size of the volume from which this snapshot was created.
sourcepub fn get_volume_size(&self) -> &Option<i32>
pub fn get_volume_size(&self) -> &Option<i32>
Size of the volume from which this snapshot was created.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
Time this snapshot was started. This is the same for all snapshots initiated by the same request.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
Time this snapshot was started. This is the same for all snapshots initiated by the same request.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
Time this snapshot was started. This is the same for all snapshots initiated by the same request.
sourcepub fn progress(self, input: impl Into<String>) -> Self
pub fn progress(self, input: impl Into<String>) -> Self
Progress this snapshot has made towards completing.
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
Progress this snapshot has made towards completing.
sourcepub fn get_progress(&self) -> &Option<String>
pub fn get_progress(&self) -> &Option<String>
Progress this snapshot has made towards completing.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
Account id used when creating this snapshot.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
Account id used when creating this snapshot.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
Account id used when creating this snapshot.
sourcepub fn snapshot_id(self, input: impl Into<String>) -> Self
pub fn snapshot_id(self, input: impl Into<String>) -> Self
Snapshot id that can be used to describe this snapshot.
sourcepub fn set_snapshot_id(self, input: Option<String>) -> Self
pub fn set_snapshot_id(self, input: Option<String>) -> Self
Snapshot id that can be used to describe this snapshot.
sourcepub fn get_snapshot_id(&self) -> &Option<String>
pub fn get_snapshot_id(&self) -> &Option<String>
Snapshot id that can be used to describe this snapshot.
sourcepub fn outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn get_outpost_arn(&self) -> &Option<String>
pub fn get_outpost_arn(&self) -> &Option<String>
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn build(self) -> SnapshotInfo
pub fn build(self) -> SnapshotInfo
Consumes the builder and constructs a SnapshotInfo
.
Trait Implementations§
source§impl Clone for SnapshotInfoBuilder
impl Clone for SnapshotInfoBuilder
source§fn clone(&self) -> SnapshotInfoBuilder
fn clone(&self) -> SnapshotInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnapshotInfoBuilder
impl Debug for SnapshotInfoBuilder
source§impl Default for SnapshotInfoBuilder
impl Default for SnapshotInfoBuilder
source§fn default() -> SnapshotInfoBuilder
fn default() -> SnapshotInfoBuilder
source§impl PartialEq<SnapshotInfoBuilder> for SnapshotInfoBuilder
impl PartialEq<SnapshotInfoBuilder> for SnapshotInfoBuilder
source§fn eq(&self, other: &SnapshotInfoBuilder) -> bool
fn eq(&self, other: &SnapshotInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.