aws_sdk_costoptimizationhub/operation/get_recommendation/
_get_recommendation_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRecommendationInput {
pub recommendation_id: ::std::option::Option<::std::string::String>,
}
impl GetRecommendationInput {
pub fn recommendation_id(&self) -> ::std::option::Option<&str> {
self.recommendation_id.as_deref()
}
}
impl GetRecommendationInput {
pub fn builder() -> crate::operation::get_recommendation::builders::GetRecommendationInputBuilder {
crate::operation::get_recommendation::builders::GetRecommendationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRecommendationInputBuilder {
pub(crate) recommendation_id: ::std::option::Option<::std::string::String>,
}
impl GetRecommendationInputBuilder {
pub fn recommendation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.recommendation_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_recommendation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.recommendation_id = input;
self
}
pub fn get_recommendation_id(&self) -> &::std::option::Option<::std::string::String> {
&self.recommendation_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_recommendation::GetRecommendationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_recommendation::GetRecommendationInput {
recommendation_id: self.recommendation_id,
})
}
}