aws_sdk_controltower/operation/get_baseline/
_get_baseline_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBaselineInput {
pub baseline_identifier: ::std::option::Option<::std::string::String>,
}
impl GetBaselineInput {
pub fn baseline_identifier(&self) -> ::std::option::Option<&str> {
self.baseline_identifier.as_deref()
}
}
impl GetBaselineInput {
pub fn builder() -> crate::operation::get_baseline::builders::GetBaselineInputBuilder {
crate::operation::get_baseline::builders::GetBaselineInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBaselineInputBuilder {
pub(crate) baseline_identifier: ::std::option::Option<::std::string::String>,
}
impl GetBaselineInputBuilder {
pub fn baseline_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.baseline_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_baseline_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.baseline_identifier = input;
self
}
pub fn get_baseline_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.baseline_identifier
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_baseline::GetBaselineInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_baseline::GetBaselineInput {
baseline_identifier: self.baseline_identifier,
})
}
}