Struct aws_sdk_lightsail::types::builders::InstanceSnapshotBuilder
source · #[non_exhaustive]pub struct InstanceSnapshotBuilder { /* private fields */ }
Expand description
A builder for InstanceSnapshot
.
Implementations§
source§impl InstanceSnapshotBuilder
impl InstanceSnapshotBuilder
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 snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
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 snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE
).
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 timestamp when the snapshot was created (1479907467.024
).
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the snapshot was created (1479907467.024
).
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the snapshot was created (1479907467.024
).
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The region name and Availability Zone where you created the snapshot.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
The region name and Availability Zone where you created the snapshot.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
The region name and Availability Zone where you created the snapshot.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The type of resource (usually InstanceSnapshot
).
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The type of resource (usually InstanceSnapshot
).
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The type of resource (usually InstanceSnapshot
).
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 state(self, input: InstanceSnapshotState) -> Self
pub fn state(self, input: InstanceSnapshotState) -> Self
The state the snapshot is in.
sourcepub fn set_state(self, input: Option<InstanceSnapshotState>) -> Self
pub fn set_state(self, input: Option<InstanceSnapshotState>) -> Self
The state the snapshot is in.
sourcepub fn get_state(&self) -> &Option<InstanceSnapshotState>
pub fn get_state(&self) -> &Option<InstanceSnapshotState>
The state the snapshot is in.
sourcepub fn progress(self, input: impl Into<String>) -> Self
pub fn progress(self, input: impl Into<String>) -> Self
The progress of the snapshot.
This is populated only for disk snapshots, and is null
for instance snapshots.
sourcepub fn set_progress(self, input: Option<String>) -> Self
pub fn set_progress(self, input: Option<String>) -> Self
The progress of the snapshot.
This is populated only for disk snapshots, and is null
for instance snapshots.
sourcepub fn get_progress(&self) -> &Option<String>
pub fn get_progress(&self) -> &Option<String>
The progress of the snapshot.
This is populated only for disk snapshots, and is null
for instance snapshots.
sourcepub fn from_attached_disks(self, input: Disk) -> Self
pub fn from_attached_disks(self, input: Disk) -> Self
Appends an item to from_attached_disks
.
To override the contents of this collection use set_from_attached_disks
.
An array of disk objects containing information about all block storage disks.
sourcepub fn set_from_attached_disks(self, input: Option<Vec<Disk>>) -> Self
pub fn set_from_attached_disks(self, input: Option<Vec<Disk>>) -> Self
An array of disk objects containing information about all block storage disks.
sourcepub fn get_from_attached_disks(&self) -> &Option<Vec<Disk>>
pub fn get_from_attached_disks(&self) -> &Option<Vec<Disk>>
An array of disk objects containing information about all block storage disks.
sourcepub fn from_instance_name(self, input: impl Into<String>) -> Self
pub fn from_instance_name(self, input: impl Into<String>) -> Self
The instance from which the 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 instance from which the snapshot was created.
sourcepub fn get_from_instance_name(&self) -> &Option<String>
pub fn get_from_instance_name(&self) -> &Option<String>
The instance from which the 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 instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
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 instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
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 instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE
).
sourcepub fn from_blueprint_id(self, input: impl Into<String>) -> Self
pub fn from_blueprint_id(self, input: impl Into<String>) -> Self
The blueprint ID from which you created the snapshot (amazon_linux_2023
). A blueprint is a virtual private server (or instance) image used to create instances quickly.
sourcepub fn set_from_blueprint_id(self, input: Option<String>) -> Self
pub fn set_from_blueprint_id(self, input: Option<String>) -> Self
The blueprint ID from which you created the snapshot (amazon_linux_2023
). A blueprint is a virtual private server (or instance) image used to create instances quickly.
sourcepub fn get_from_blueprint_id(&self) -> &Option<String>
pub fn get_from_blueprint_id(&self) -> &Option<String>
The blueprint ID from which you created the snapshot (amazon_linux_2023
). A blueprint is a virtual private server (or instance) image used to create instances quickly.
sourcepub fn from_bundle_id(self, input: impl Into<String>) -> Self
pub fn from_bundle_id(self, input: impl Into<String>) -> Self
The bundle ID from which you created the snapshot (micro_x_x
).
sourcepub fn set_from_bundle_id(self, input: Option<String>) -> Self
pub fn set_from_bundle_id(self, input: Option<String>) -> Self
The bundle ID from which you created the snapshot (micro_x_x
).
sourcepub fn get_from_bundle_id(&self) -> &Option<String>
pub fn get_from_bundle_id(&self) -> &Option<String>
The bundle ID from which you created the snapshot (micro_x_x
).
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 size_in_gb(self, input: i32) -> Self
pub fn size_in_gb(self, input: i32) -> Self
The size in GB of the SSD.
sourcepub fn set_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_size_in_gb(self, input: Option<i32>) -> Self
The size in GB of the SSD.
sourcepub fn get_size_in_gb(&self) -> &Option<i32>
pub fn get_size_in_gb(&self) -> &Option<i32>
The size in GB of the SSD.
sourcepub fn build(self) -> InstanceSnapshot
pub fn build(self) -> InstanceSnapshot
Consumes the builder and constructs a InstanceSnapshot
.
Trait Implementations§
source§impl Clone for InstanceSnapshotBuilder
impl Clone for InstanceSnapshotBuilder
source§fn clone(&self) -> InstanceSnapshotBuilder
fn clone(&self) -> InstanceSnapshotBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceSnapshotBuilder
impl Debug for InstanceSnapshotBuilder
source§impl Default for InstanceSnapshotBuilder
impl Default for InstanceSnapshotBuilder
source§fn default() -> InstanceSnapshotBuilder
fn default() -> InstanceSnapshotBuilder
source§impl PartialEq for InstanceSnapshotBuilder
impl PartialEq for InstanceSnapshotBuilder
source§fn eq(&self, other: &InstanceSnapshotBuilder) -> bool
fn eq(&self, other: &InstanceSnapshotBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceSnapshotBuilder
Auto Trait Implementations§
impl Freeze for InstanceSnapshotBuilder
impl RefUnwindSafe for InstanceSnapshotBuilder
impl Send for InstanceSnapshotBuilder
impl Sync for InstanceSnapshotBuilder
impl Unpin for InstanceSnapshotBuilder
impl UnwindSafe for InstanceSnapshotBuilder
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