#[non_exhaustive]pub struct ExportSnapshotRecordSourceInfoBuilder { /* private fields */ }
Expand description
A builder for ExportSnapshotRecordSourceInfo
.
Implementations§
source§impl ExportSnapshotRecordSourceInfoBuilder
impl ExportSnapshotRecordSourceInfoBuilder
sourcepub fn resource_type(self, input: ExportSnapshotRecordSourceType) -> Self
pub fn resource_type(self, input: ExportSnapshotRecordSourceType) -> Self
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
sourcepub fn set_resource_type(
self,
input: Option<ExportSnapshotRecordSourceType>
) -> Self
pub fn set_resource_type( self, input: Option<ExportSnapshotRecordSourceType> ) -> Self
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
sourcepub fn get_resource_type(&self) -> &Option<ExportSnapshotRecordSourceType>
pub fn get_resource_type(&self) -> &Option<ExportSnapshotRecordSourceType>
The Lightsail resource type (InstanceSnapshot
or DiskSnapshot
).
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date when the source instance or 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 source instance or disk snapshot was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date when the source instance or disk snapshot was created.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the source instance or disk snapshot.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the source instance or 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 source instance or 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 source instance or disk snapshot.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
sourcepub fn from_resource_name(self, input: impl Into<String>) -> Self
pub fn from_resource_name(self, input: impl Into<String>) -> Self
The name of the snapshot's source instance or disk.
sourcepub fn set_from_resource_name(self, input: Option<String>) -> Self
pub fn set_from_resource_name(self, input: Option<String>) -> Self
The name of the snapshot's source instance or disk.
sourcepub fn get_from_resource_name(&self) -> &Option<String>
pub fn get_from_resource_name(&self) -> &Option<String>
The name of the snapshot's source instance or disk.
sourcepub fn from_resource_arn(self, input: impl Into<String>) -> Self
pub fn from_resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
sourcepub fn set_from_resource_arn(self, input: Option<String>) -> Self
pub fn set_from_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
sourcepub fn get_from_resource_arn(&self) -> &Option<String>
pub fn get_from_resource_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
sourcepub fn instance_snapshot_info(self, input: InstanceSnapshotInfo) -> Self
pub fn instance_snapshot_info(self, input: InstanceSnapshotInfo) -> Self
A list of objects describing an instance snapshot.
sourcepub fn set_instance_snapshot_info(
self,
input: Option<InstanceSnapshotInfo>
) -> Self
pub fn set_instance_snapshot_info( self, input: Option<InstanceSnapshotInfo> ) -> Self
A list of objects describing an instance snapshot.
sourcepub fn get_instance_snapshot_info(&self) -> &Option<InstanceSnapshotInfo>
pub fn get_instance_snapshot_info(&self) -> &Option<InstanceSnapshotInfo>
A list of objects describing an instance snapshot.
sourcepub fn disk_snapshot_info(self, input: DiskSnapshotInfo) -> Self
pub fn disk_snapshot_info(self, input: DiskSnapshotInfo) -> Self
A list of objects describing a disk snapshot.
sourcepub fn set_disk_snapshot_info(self, input: Option<DiskSnapshotInfo>) -> Self
pub fn set_disk_snapshot_info(self, input: Option<DiskSnapshotInfo>) -> Self
A list of objects describing a disk snapshot.
sourcepub fn get_disk_snapshot_info(&self) -> &Option<DiskSnapshotInfo>
pub fn get_disk_snapshot_info(&self) -> &Option<DiskSnapshotInfo>
A list of objects describing a disk snapshot.
sourcepub fn build(self) -> ExportSnapshotRecordSourceInfo
pub fn build(self) -> ExportSnapshotRecordSourceInfo
Consumes the builder and constructs a ExportSnapshotRecordSourceInfo
.
Trait Implementations§
source§impl Clone for ExportSnapshotRecordSourceInfoBuilder
impl Clone for ExportSnapshotRecordSourceInfoBuilder
source§fn clone(&self) -> ExportSnapshotRecordSourceInfoBuilder
fn clone(&self) -> ExportSnapshotRecordSourceInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ExportSnapshotRecordSourceInfoBuilder
impl Default for ExportSnapshotRecordSourceInfoBuilder
source§fn default() -> ExportSnapshotRecordSourceInfoBuilder
fn default() -> ExportSnapshotRecordSourceInfoBuilder
source§impl PartialEq for ExportSnapshotRecordSourceInfoBuilder
impl PartialEq for ExportSnapshotRecordSourceInfoBuilder
source§fn eq(&self, other: &ExportSnapshotRecordSourceInfoBuilder) -> bool
fn eq(&self, other: &ExportSnapshotRecordSourceInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExportSnapshotRecordSourceInfoBuilder
Auto Trait Implementations§
impl Freeze for ExportSnapshotRecordSourceInfoBuilder
impl RefUnwindSafe for ExportSnapshotRecordSourceInfoBuilder
impl Send for ExportSnapshotRecordSourceInfoBuilder
impl Sync for ExportSnapshotRecordSourceInfoBuilder
impl Unpin for ExportSnapshotRecordSourceInfoBuilder
impl UnwindSafe for ExportSnapshotRecordSourceInfoBuilder
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