Struct aws_sdk_ec2::model::snapshot_info::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SnapshotInfo
.
Implementations§
source§impl Builder
impl Builder
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.
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.
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 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 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 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 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 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 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 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 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 build(self) -> SnapshotInfo
pub fn build(self) -> SnapshotInfo
Consumes the builder and constructs a SnapshotInfo
.