aws_sdk_detective/operation/delete_graph/
_delete_graph_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteGraphInput {
pub graph_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteGraphInput {
pub fn graph_arn(&self) -> ::std::option::Option<&str> {
self.graph_arn.as_deref()
}
}
impl DeleteGraphInput {
pub fn builder() -> crate::operation::delete_graph::builders::DeleteGraphInputBuilder {
crate::operation::delete_graph::builders::DeleteGraphInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteGraphInputBuilder {
pub(crate) graph_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteGraphInputBuilder {
pub fn graph_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.graph_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_graph_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.graph_arn = input;
self
}
pub fn get_graph_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.graph_arn
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_graph::DeleteGraphInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_graph::DeleteGraphInput { graph_arn: self.graph_arn })
}
}