Struct aws_sdk_lightsail::operation::create_disk_snapshot::builders::CreateDiskSnapshotInputBuilder
source · #[non_exhaustive]pub struct CreateDiskSnapshotInputBuilder { /* private fields */ }
Expand description
A builder for CreateDiskSnapshotInput
.
Implementations§
source§impl CreateDiskSnapshotInputBuilder
impl CreateDiskSnapshotInputBuilder
sourcepub fn disk_name(self, input: impl Into<String>) -> Self
pub fn disk_name(self, input: impl Into<String>) -> Self
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually exclusive.
sourcepub fn set_disk_name(self, input: Option<String>) -> Self
pub fn set_disk_name(self, input: Option<String>) -> Self
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually exclusive.
sourcepub fn get_disk_name(&self) -> &Option<String>
pub fn get_disk_name(&self) -> &Option<String>
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The disk name
and instance name
parameters are mutually exclusive.
sourcepub fn disk_snapshot_name(self, input: impl Into<String>) -> Self
pub fn disk_snapshot_name(self, input: impl Into<String>) -> Self
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
sourcepub fn set_disk_snapshot_name(self, input: Option<String>) -> Self
pub fn set_disk_snapshot_name(self, input: Option<String>) -> Self
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
sourcepub fn get_disk_snapshot_name(&self) -> &Option<String>
pub fn get_disk_snapshot_name(&self) -> &Option<String>
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
sourcepub fn instance_name(self, input: impl Into<String>) -> Self
pub fn instance_name(self, input: impl Into<String>) -> Self
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually exclusive.
sourcepub fn set_instance_name(self, input: Option<String>) -> Self
pub fn set_instance_name(self, input: Option<String>) -> Self
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually exclusive.
sourcepub fn get_instance_name(&self) -> &Option<String>
pub fn get_instance_name(&self) -> &Option<String>
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The instance name
and disk name
parameters are mutually exclusive.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
sourcepub fn build(self) -> Result<CreateDiskSnapshotInput, BuildError>
pub fn build(self) -> Result<CreateDiskSnapshotInput, BuildError>
Consumes the builder and constructs a CreateDiskSnapshotInput
.
source§impl CreateDiskSnapshotInputBuilder
impl CreateDiskSnapshotInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDiskSnapshotOutput, SdkError<CreateDiskSnapshotError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDiskSnapshotOutput, SdkError<CreateDiskSnapshotError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDiskSnapshotInputBuilder
impl Clone for CreateDiskSnapshotInputBuilder
source§fn clone(&self) -> CreateDiskSnapshotInputBuilder
fn clone(&self) -> CreateDiskSnapshotInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDiskSnapshotInputBuilder
impl Default for CreateDiskSnapshotInputBuilder
source§fn default() -> CreateDiskSnapshotInputBuilder
fn default() -> CreateDiskSnapshotInputBuilder
source§impl PartialEq for CreateDiskSnapshotInputBuilder
impl PartialEq for CreateDiskSnapshotInputBuilder
source§fn eq(&self, other: &CreateDiskSnapshotInputBuilder) -> bool
fn eq(&self, other: &CreateDiskSnapshotInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateDiskSnapshotInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDiskSnapshotInputBuilder
impl RefUnwindSafe for CreateDiskSnapshotInputBuilder
impl Send for CreateDiskSnapshotInputBuilder
impl Sync for CreateDiskSnapshotInputBuilder
impl Unpin for CreateDiskSnapshotInputBuilder
impl UnwindSafe for CreateDiskSnapshotInputBuilder
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