#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateSegmentEstimateOutput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub estimate_id: ::std::option::Option<::std::string::String>,
pub status_code: i32,
_request_id: Option<String>,
}
impl CreateSegmentEstimateOutput {
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()
}
pub fn status_code(&self) -> i32 {
self.status_code
}
}
impl ::aws_types::request_id::RequestId for CreateSegmentEstimateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateSegmentEstimateOutput {
pub fn builder() -> crate::operation::create_segment_estimate::builders::CreateSegmentEstimateOutputBuilder {
crate::operation::create_segment_estimate::builders::CreateSegmentEstimateOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateSegmentEstimateOutputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) estimate_id: ::std::option::Option<::std::string::String>,
pub(crate) status_code: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl CreateSegmentEstimateOutputBuilder {
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 status_code(mut self, input: i32) -> Self {
self.status_code = ::std::option::Option::Some(input);
self
}
pub fn set_status_code(mut self, input: ::std::option::Option<i32>) -> Self {
self.status_code = input;
self
}
pub fn get_status_code(&self) -> &::std::option::Option<i32> {
&self.status_code
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::create_segment_estimate::CreateSegmentEstimateOutput {
crate::operation::create_segment_estimate::CreateSegmentEstimateOutput {
domain_name: self.domain_name,
estimate_id: self.estimate_id,
status_code: self.status_code.unwrap_or_default(),
_request_id: self._request_id,
}
}
}