#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSegmentEstimateOutput {
pub domain_name: ::std::option::Option<::std::string::String>,
pub estimate_id: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::EstimateStatus>,
pub estimate: ::std::option::Option<::std::string::String>,
pub message: ::std::option::Option<::std::string::String>,
pub status_code: i32,
_request_id: Option<String>,
}
impl GetSegmentEstimateOutput {
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(&self) -> ::std::option::Option<&crate::types::EstimateStatus> {
self.status.as_ref()
}
pub fn estimate(&self) -> ::std::option::Option<&str> {
self.estimate.as_deref()
}
pub fn message(&self) -> ::std::option::Option<&str> {
self.message.as_deref()
}
pub fn status_code(&self) -> i32 {
self.status_code
}
}
impl ::aws_types::request_id::RequestId for GetSegmentEstimateOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetSegmentEstimateOutput {
pub fn builder() -> crate::operation::get_segment_estimate::builders::GetSegmentEstimateOutputBuilder {
crate::operation::get_segment_estimate::builders::GetSegmentEstimateOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSegmentEstimateOutputBuilder {
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) estimate_id: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::EstimateStatus>,
pub(crate) estimate: ::std::option::Option<::std::string::String>,
pub(crate) message: ::std::option::Option<::std::string::String>,
pub(crate) status_code: ::std::option::Option<i32>,
_request_id: Option<String>,
}
impl GetSegmentEstimateOutputBuilder {
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(mut self, input: crate::types::EstimateStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::EstimateStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::EstimateStatus> {
&self.status
}
pub fn estimate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.estimate = ::std::option::Option::Some(input.into());
self
}
pub fn set_estimate(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.estimate = input;
self
}
pub fn get_estimate(&self) -> &::std::option::Option<::std::string::String> {
&self.estimate
}
pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.message = ::std::option::Option::Some(input.into());
self
}
pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.message = input;
self
}
pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
&self.message
}
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::get_segment_estimate::GetSegmentEstimateOutput {
crate::operation::get_segment_estimate::GetSegmentEstimateOutput {
domain_name: self.domain_name,
estimate_id: self.estimate_id,
status: self.status,
estimate: self.estimate,
message: self.message,
status_code: self.status_code.unwrap_or_default(),
_request_id: self._request_id,
}
}
}