#[non_exhaustive]pub struct InstanceSnapshotInfoBuilder { /* private fields */ }
Expand description
A builder for InstanceSnapshotInfo
.
Implementations§
source§impl InstanceSnapshotInfoBuilder
impl InstanceSnapshotInfoBuilder
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 the source instance was created (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 the source instance was created (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 the source instance was created (micro_x_x
).
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 the source instance (amazon_linux_2023
).
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 the source instance (amazon_linux_2023
).
sourcepub fn get_from_blueprint_id(&self) -> &Option<String>
pub fn get_from_blueprint_id(&self) -> &Option<String>
The blueprint ID from which the source instance (amazon_linux_2023
).
sourcepub fn from_disk_info(self, input: DiskInfo) -> Self
pub fn from_disk_info(self, input: DiskInfo) -> Self
Appends an item to from_disk_info
.
To override the contents of this collection use set_from_disk_info
.
A list of objects describing the disks that were attached to the source instance.
sourcepub fn set_from_disk_info(self, input: Option<Vec<DiskInfo>>) -> Self
pub fn set_from_disk_info(self, input: Option<Vec<DiskInfo>>) -> Self
A list of objects describing the disks that were attached to the source instance.
sourcepub fn get_from_disk_info(&self) -> &Option<Vec<DiskInfo>>
pub fn get_from_disk_info(&self) -> &Option<Vec<DiskInfo>>
A list of objects describing the disks that were attached to the source instance.
sourcepub fn build(self) -> InstanceSnapshotInfo
pub fn build(self) -> InstanceSnapshotInfo
Consumes the builder and constructs a InstanceSnapshotInfo
.
Trait Implementations§
source§impl Clone for InstanceSnapshotInfoBuilder
impl Clone for InstanceSnapshotInfoBuilder
source§fn clone(&self) -> InstanceSnapshotInfoBuilder
fn clone(&self) -> InstanceSnapshotInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceSnapshotInfoBuilder
impl Debug for InstanceSnapshotInfoBuilder
source§impl Default for InstanceSnapshotInfoBuilder
impl Default for InstanceSnapshotInfoBuilder
source§fn default() -> InstanceSnapshotInfoBuilder
fn default() -> InstanceSnapshotInfoBuilder
source§impl PartialEq for InstanceSnapshotInfoBuilder
impl PartialEq for InstanceSnapshotInfoBuilder
source§fn eq(&self, other: &InstanceSnapshotInfoBuilder) -> bool
fn eq(&self, other: &InstanceSnapshotInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceSnapshotInfoBuilder
Auto Trait Implementations§
impl Freeze for InstanceSnapshotInfoBuilder
impl RefUnwindSafe for InstanceSnapshotInfoBuilder
impl Send for InstanceSnapshotInfoBuilder
impl Sync for InstanceSnapshotInfoBuilder
impl Unpin for InstanceSnapshotInfoBuilder
impl UnwindSafe for InstanceSnapshotInfoBuilder
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