Struct aws_sdk_neptunegraph::operation::delete_graph_snapshot::builders::DeleteGraphSnapshotOutputBuilder
source · #[non_exhaustive]pub struct DeleteGraphSnapshotOutputBuilder { /* private fields */ }
Expand description
A builder for DeleteGraphSnapshotOutput
.
Implementations§
source§impl DeleteGraphSnapshotOutputBuilder
impl DeleteGraphSnapshotOutputBuilder
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 from which the snapshot was 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 from which the snapshot was 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 from which the snapshot was 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<DeleteGraphSnapshotOutput, BuildError>
pub fn build(self) -> Result<DeleteGraphSnapshotOutput, BuildError>
Consumes the builder and constructs a DeleteGraphSnapshotOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeleteGraphSnapshotOutputBuilder
impl Clone for DeleteGraphSnapshotOutputBuilder
source§fn clone(&self) -> DeleteGraphSnapshotOutputBuilder
fn clone(&self) -> DeleteGraphSnapshotOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteGraphSnapshotOutputBuilder
impl Default for DeleteGraphSnapshotOutputBuilder
source§fn default() -> DeleteGraphSnapshotOutputBuilder
fn default() -> DeleteGraphSnapshotOutputBuilder
source§impl PartialEq for DeleteGraphSnapshotOutputBuilder
impl PartialEq for DeleteGraphSnapshotOutputBuilder
source§fn eq(&self, other: &DeleteGraphSnapshotOutputBuilder) -> bool
fn eq(&self, other: &DeleteGraphSnapshotOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeleteGraphSnapshotOutputBuilder
Auto Trait Implementations§
impl Freeze for DeleteGraphSnapshotOutputBuilder
impl RefUnwindSafe for DeleteGraphSnapshotOutputBuilder
impl Send for DeleteGraphSnapshotOutputBuilder
impl Sync for DeleteGraphSnapshotOutputBuilder
impl Unpin for DeleteGraphSnapshotOutputBuilder
impl UnwindSafe for DeleteGraphSnapshotOutputBuilder
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