1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResetGraphInput {
/// <p>ID of the graph to reset.</p>
pub graph_identifier: ::std::option::Option<::std::string::String>,
/// <p>Determines whether a final graph snapshot is created before the graph data is deleted. If set to <code>true</code>, no graph snapshot is created. If set to <code>false</code>, a graph snapshot is created before the data is deleted.</p>
pub skip_snapshot: ::std::option::Option<bool>,
}
impl ResetGraphInput {
/// <p>ID of the graph to reset.</p>
pub fn graph_identifier(&self) -> ::std::option::Option<&str> {
self.graph_identifier.as_deref()
}
/// <p>Determines whether a final graph snapshot is created before the graph data is deleted. If set to <code>true</code>, no graph snapshot is created. If set to <code>false</code>, a graph snapshot is created before the data is deleted.</p>
pub fn skip_snapshot(&self) -> ::std::option::Option<bool> {
self.skip_snapshot
}
}
impl ResetGraphInput {
/// Creates a new builder-style object to manufacture [`ResetGraphInput`](crate::operation::reset_graph::ResetGraphInput).
pub fn builder() -> crate::operation::reset_graph::builders::ResetGraphInputBuilder {
crate::operation::reset_graph::builders::ResetGraphInputBuilder::default()
}
}
/// A builder for [`ResetGraphInput`](crate::operation::reset_graph::ResetGraphInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ResetGraphInputBuilder {
pub(crate) graph_identifier: ::std::option::Option<::std::string::String>,
pub(crate) skip_snapshot: ::std::option::Option<bool>,
}
impl ResetGraphInputBuilder {
/// <p>ID of the graph to reset.</p>
/// This field is required.
pub fn graph_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.graph_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>ID of the graph to reset.</p>
pub fn set_graph_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.graph_identifier = input;
self
}
/// <p>ID of the graph to reset.</p>
pub fn get_graph_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.graph_identifier
}
/// <p>Determines whether a final graph snapshot is created before the graph data is deleted. If set to <code>true</code>, no graph snapshot is created. If set to <code>false</code>, a graph snapshot is created before the data is deleted.</p>
/// This field is required.
pub fn skip_snapshot(mut self, input: bool) -> Self {
self.skip_snapshot = ::std::option::Option::Some(input);
self
}
/// <p>Determines whether a final graph snapshot is created before the graph data is deleted. If set to <code>true</code>, no graph snapshot is created. If set to <code>false</code>, a graph snapshot is created before the data is deleted.</p>
pub fn set_skip_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
self.skip_snapshot = input;
self
}
/// <p>Determines whether a final graph snapshot is created before the graph data is deleted. If set to <code>true</code>, no graph snapshot is created. If set to <code>false</code>, a graph snapshot is created before the data is deleted.</p>
pub fn get_skip_snapshot(&self) -> &::std::option::Option<bool> {
&self.skip_snapshot
}
/// Consumes the builder and constructs a [`ResetGraphInput`](crate::operation::reset_graph::ResetGraphInput).
pub fn build(self) -> ::std::result::Result<crate::operation::reset_graph::ResetGraphInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::reset_graph::ResetGraphInput {
graph_identifier: self.graph_identifier,
skip_snapshot: self.skip_snapshot,
})
}
}