aws_sdk_securityir/operation/get_case/
_get_case_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCaseInput {
pub case_id: ::std::option::Option<::std::string::String>,
}
impl GetCaseInput {
pub fn case_id(&self) -> ::std::option::Option<&str> {
self.case_id.as_deref()
}
}
impl GetCaseInput {
pub fn builder() -> crate::operation::get_case::builders::GetCaseInputBuilder {
crate::operation::get_case::builders::GetCaseInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCaseInputBuilder {
pub(crate) case_id: ::std::option::Option<::std::string::String>,
}
impl GetCaseInputBuilder {
pub fn case_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.case_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_case_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.case_id = input;
self
}
pub fn get_case_id(&self) -> &::std::option::Option<::std::string::String> {
&self.case_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_case::GetCaseInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_case::GetCaseInput { case_id: self.case_id })
}
}