aws_sdk_detective/operation/get_investigation/
_get_investigation_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetInvestigationInput {
pub graph_arn: ::std::option::Option<::std::string::String>,
pub investigation_id: ::std::option::Option<::std::string::String>,
}
impl GetInvestigationInput {
pub fn graph_arn(&self) -> ::std::option::Option<&str> {
self.graph_arn.as_deref()
}
pub fn investigation_id(&self) -> ::std::option::Option<&str> {
self.investigation_id.as_deref()
}
}
impl GetInvestigationInput {
pub fn builder() -> crate::operation::get_investigation::builders::GetInvestigationInputBuilder {
crate::operation::get_investigation::builders::GetInvestigationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetInvestigationInputBuilder {
pub(crate) graph_arn: ::std::option::Option<::std::string::String>,
pub(crate) investigation_id: ::std::option::Option<::std::string::String>,
}
impl GetInvestigationInputBuilder {
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 investigation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.investigation_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_investigation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.investigation_id = input;
self
}
pub fn get_investigation_id(&self) -> &::std::option::Option<::std::string::String> {
&self.investigation_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_investigation::GetInvestigationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_investigation::GetInvestigationInput {
graph_arn: self.graph_arn,
investigation_id: self.investigation_id,
})
}
}