#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSegmentEstimateInput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub estimate_id: ::std::option::Option<::std::string::String>,
}
impl GetSegmentEstimateInput {
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn estimate_id(&self) -> ::std::option::Option<&str> {
self.estimate_id.as_deref()
}
}
impl GetSegmentEstimateInput {
pub fn builder() -> crate::operation::get_segment_estimate::builders::GetSegmentEstimateInputBuilder {
crate::operation::get_segment_estimate::builders::GetSegmentEstimateInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSegmentEstimateInputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) estimate_id: ::std::option::Option<::std::string::String>,
}
impl GetSegmentEstimateInputBuilder {
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn estimate_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.estimate_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_estimate_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.estimate_id = input;
self
}
pub fn get_estimate_id(&self) -> &::std::option::Option<::std::string::String> {
&self.estimate_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_segment_estimate::GetSegmentEstimateInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_segment_estimate::GetSegmentEstimateInput {
domain_name: self.domain_name,
estimate_id: self.estimate_id,
})
}
}