Struct aws_sdk_neptunegraph::operation::get_graph_snapshot::builders::GetGraphSnapshotOutputBuilder
source · #[non_exhaustive]pub struct GetGraphSnapshotOutputBuilder { /* private fields */ }
Expand description
A builder for GetGraphSnapshotOutput
.
Implementations§
source§impl GetGraphSnapshotOutputBuilder
impl GetGraphSnapshotOutputBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier of the graph snapshot.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier of the graph snapshot.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The snapshot name. For example: my-snapshot-1
.
The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The snapshot name. For example: my-snapshot-1
.
The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The snapshot name. For example: my-snapshot-1
.
The name must contain from 1 to 63 letters, numbers, or hyphens, and its first character must be a letter. It cannot end with a hyphen or contain two consecutive hyphens.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the graph snapshot.
This field is required.sourcepub fn source_graph_id(self, input: impl Into<String>) -> Self
pub fn source_graph_id(self, input: impl Into<String>) -> Self
The graph identifier for the graph for which a snapshot is to be created.
sourcepub fn set_source_graph_id(self, input: Option<String>) -> Self
pub fn set_source_graph_id(self, input: Option<String>) -> Self
The graph identifier for the graph for which a snapshot is to be created.
sourcepub fn get_source_graph_id(&self) -> &Option<String>
pub fn get_source_graph_id(&self) -> &Option<String>
The graph identifier for the graph for which a snapshot is to be created.
sourcepub fn snapshot_create_time(self, input: DateTime) -> Self
pub fn snapshot_create_time(self, input: DateTime) -> Self
The time when the snapshot was created.
sourcepub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self
pub fn set_snapshot_create_time(self, input: Option<DateTime>) -> Self
The time when the snapshot was created.
sourcepub fn get_snapshot_create_time(&self) -> &Option<DateTime>
pub fn get_snapshot_create_time(&self) -> &Option<DateTime>
The time when the snapshot was created.
sourcepub fn status(self, input: SnapshotStatus) -> Self
pub fn status(self, input: SnapshotStatus) -> Self
The status of the graph snapshot.
sourcepub fn set_status(self, input: Option<SnapshotStatus>) -> Self
pub fn set_status(self, input: Option<SnapshotStatus>) -> Self
The status of the graph snapshot.
sourcepub fn get_status(&self) -> &Option<SnapshotStatus>
pub fn get_status(&self) -> &Option<SnapshotStatus>
The status of the graph snapshot.
sourcepub fn kms_key_identifier(self, input: impl Into<String>) -> Self
pub fn kms_key_identifier(self, input: impl Into<String>) -> Self
The ID of the KMS key used to encrypt and decrypt the snapshot.
sourcepub fn set_kms_key_identifier(self, input: Option<String>) -> Self
pub fn set_kms_key_identifier(self, input: Option<String>) -> Self
The ID of the KMS key used to encrypt and decrypt the snapshot.
sourcepub fn get_kms_key_identifier(&self) -> &Option<String>
pub fn get_kms_key_identifier(&self) -> &Option<String>
The ID of the KMS key used to encrypt and decrypt the snapshot.
sourcepub fn build(self) -> Result<GetGraphSnapshotOutput, BuildError>
pub fn build(self) -> Result<GetGraphSnapshotOutput, BuildError>
Consumes the builder and constructs a GetGraphSnapshotOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetGraphSnapshotOutputBuilder
impl Clone for GetGraphSnapshotOutputBuilder
source§fn clone(&self) -> GetGraphSnapshotOutputBuilder
fn clone(&self) -> GetGraphSnapshotOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetGraphSnapshotOutputBuilder
impl Default for GetGraphSnapshotOutputBuilder
source§fn default() -> GetGraphSnapshotOutputBuilder
fn default() -> GetGraphSnapshotOutputBuilder
source§impl PartialEq for GetGraphSnapshotOutputBuilder
impl PartialEq for GetGraphSnapshotOutputBuilder
source§fn eq(&self, other: &GetGraphSnapshotOutputBuilder) -> bool
fn eq(&self, other: &GetGraphSnapshotOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetGraphSnapshotOutputBuilder
Auto Trait Implementations§
impl Freeze for GetGraphSnapshotOutputBuilder
impl RefUnwindSafe for GetGraphSnapshotOutputBuilder
impl Send for GetGraphSnapshotOutputBuilder
impl Sync for GetGraphSnapshotOutputBuilder
impl Unpin for GetGraphSnapshotOutputBuilder
impl UnwindSafe for GetGraphSnapshotOutputBuilder
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