Struct aws_sdk_lightsail::types::builders::DiskSnapshotBuilder
source · #[non_exhaustive]pub struct DiskSnapshotBuilder { /* private fields */ }
Expand description
A builder for DiskSnapshot
.
Implementations§
source§impl DiskSnapshotBuilder
impl DiskSnapshotBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the disk snapshot (my-disk-snapshot
).
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the disk snapshot (my-disk-snapshot
).
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the disk snapshot.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the disk snapshot.
sourcepub fn support_code(self, input: impl Into<String>) -> Self
pub fn support_code(self, input: impl Into<String>) -> Self
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn set_support_code(self, input: Option<String>) -> Self
pub fn set_support_code(self, input: Option<String>) -> Self
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn get_support_code(&self) -> &Option<String>
pub fn get_support_code(&self) -> &Option<String>
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date when the disk snapshot was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date when the disk snapshot was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date when the disk snapshot was created.
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The AWS Region and Availability Zone where the disk snapshot was created.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
The AWS Region and Availability Zone where the disk snapshot was created.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
The AWS Region and Availability Zone where the disk snapshot was created.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type (DiskSnapshot
).
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type (DiskSnapshot
).
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type (DiskSnapshot
).
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
sourcepub fn size_in_gb(self, input: i32) -> Self
pub fn size_in_gb(self, input: i32) -> Self
The size of the disk in GB.
sourcepub fn set_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_size_in_gb(self, input: Option<i32>) -> Self
The size of the disk in GB.
sourcepub fn get_size_in_gb(&self) -> &Option<i32>
pub fn get_size_in_gb(&self) -> &Option<i32>
The size of the disk in GB.
sourcepub fn state(self, input: DiskSnapshotState) -> Self
pub fn state(self, input: DiskSnapshotState) -> Self
The status of the disk snapshot operation.
sourcepub fn set_state(self, input: Option<DiskSnapshotState>) -> Self
pub fn set_state(self, input: Option<DiskSnapshotState>) -> Self
The status of the disk snapshot operation.
sourcepub fn get_state(&self) -> &Option<DiskSnapshotState>
pub fn get_state(&self) -> &Option<DiskSnapshotState>
The status of the disk snapshot operation.
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
The progress of the snapshot.
sourcepub fn get_progress(&self) -> &Option<String>
pub fn get_progress(&self) -> &Option<String>
The progress of the snapshot.
sourcepub fn from_disk_name(self, input: impl Into<String>) -> Self
pub fn from_disk_name(self, input: impl Into<String>) -> Self
The unique name of the source disk from which the disk snapshot was created.
sourcepub fn set_from_disk_name(self, input: Option<String>) -> Self
pub fn set_from_disk_name(self, input: Option<String>) -> Self
The unique name of the source disk from which the disk snapshot was created.
sourcepub fn get_from_disk_name(&self) -> &Option<String>
pub fn get_from_disk_name(&self) -> &Option<String>
The unique name of the source disk from which the disk snapshot was created.
sourcepub fn from_disk_arn(self, input: impl Into<String>) -> Self
pub fn from_disk_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
sourcepub fn set_from_disk_arn(self, input: Option<String>) -> Self
pub fn set_from_disk_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
sourcepub fn get_from_disk_arn(&self) -> &Option<String>
pub fn get_from_disk_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
sourcepub fn from_instance_name(self, input: impl Into<String>) -> Self
pub fn from_instance_name(self, input: impl Into<String>) -> Self
The unique name of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn set_from_instance_name(self, input: Option<String>) -> Self
pub fn set_from_instance_name(self, input: Option<String>) -> Self
The unique name of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn get_from_instance_name(&self) -> &Option<String>
pub fn get_from_instance_name(&self) -> &Option<String>
The unique name of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn from_instance_arn(self, input: impl Into<String>) -> Self
pub fn from_instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn set_from_instance_arn(self, input: Option<String>) -> Self
pub fn set_from_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn get_from_instance_arn(&self) -> &Option<String>
pub fn get_from_instance_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
sourcepub fn is_from_auto_snapshot(self, input: bool) -> Self
pub fn is_from_auto_snapshot(self, input: bool) -> Self
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
sourcepub fn set_is_from_auto_snapshot(self, input: Option<bool>) -> Self
pub fn set_is_from_auto_snapshot(self, input: Option<bool>) -> Self
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
sourcepub fn get_is_from_auto_snapshot(&self) -> &Option<bool>
pub fn get_is_from_auto_snapshot(&self) -> &Option<bool>
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
sourcepub fn build(self) -> DiskSnapshot
pub fn build(self) -> DiskSnapshot
Consumes the builder and constructs a DiskSnapshot
.
Trait Implementations§
source§impl Clone for DiskSnapshotBuilder
impl Clone for DiskSnapshotBuilder
source§fn clone(&self) -> DiskSnapshotBuilder
fn clone(&self) -> DiskSnapshotBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiskSnapshotBuilder
impl Debug for DiskSnapshotBuilder
source§impl Default for DiskSnapshotBuilder
impl Default for DiskSnapshotBuilder
source§fn default() -> DiskSnapshotBuilder
fn default() -> DiskSnapshotBuilder
source§impl PartialEq for DiskSnapshotBuilder
impl PartialEq for DiskSnapshotBuilder
source§fn eq(&self, other: &DiskSnapshotBuilder) -> bool
fn eq(&self, other: &DiskSnapshotBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiskSnapshotBuilder
Auto Trait Implementations§
impl Freeze for DiskSnapshotBuilder
impl RefUnwindSafe for DiskSnapshotBuilder
impl Send for DiskSnapshotBuilder
impl Sync for DiskSnapshotBuilder
impl Unpin for DiskSnapshotBuilder
impl UnwindSafe for DiskSnapshotBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more