aws-sdk-customerprofiles 1.119.0

AWS SDK for Amazon Connect Customer Profiles
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateSegmentEstimateOutput {
    /// <p>The unique name of the domain.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>A unique identifier for the resource. The value can be passed to <code>GetSegmentEstimate</code> to retrieve the result of segment estimate status.</p>
    pub estimate_id: ::std::option::Option<::std::string::String>,
    /// <p>The status code for the response.</p>
    pub status_code: i32,
    _request_id: Option<String>,
}
impl CreateSegmentEstimateOutput {
    /// <p>The unique name of the domain.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>A unique identifier for the resource. The value can be passed to <code>GetSegmentEstimate</code> to retrieve the result of segment estimate status.</p>
    pub fn estimate_id(&self) -> ::std::option::Option<&str> {
        self.estimate_id.as_deref()
    }
    /// <p>The status code for the response.</p>
    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 {
    /// Creates a new builder-style object to manufacture [`CreateSegmentEstimateOutput`](crate::operation::create_segment_estimate::CreateSegmentEstimateOutput).
    pub fn builder() -> crate::operation::create_segment_estimate::builders::CreateSegmentEstimateOutputBuilder {
        crate::operation::create_segment_estimate::builders::CreateSegmentEstimateOutputBuilder::default()
    }
}

/// A builder for [`CreateSegmentEstimateOutput`](crate::operation::create_segment_estimate::CreateSegmentEstimateOutput).
#[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 {
    /// <p>The unique name of the domain.</p>
    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
    }
    /// <p>The unique name of the domain.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>The unique name of the domain.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>A unique identifier for the resource. The value can be passed to <code>GetSegmentEstimate</code> to retrieve the result of segment estimate status.</p>
    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
    }
    /// <p>A unique identifier for the resource. The value can be passed to <code>GetSegmentEstimate</code> to retrieve the result of segment estimate status.</p>
    pub fn set_estimate_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.estimate_id = input;
        self
    }
    /// <p>A unique identifier for the resource. The value can be passed to <code>GetSegmentEstimate</code> to retrieve the result of segment estimate status.</p>
    pub fn get_estimate_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.estimate_id
    }
    /// <p>The status code for the response.</p>
    pub fn status_code(mut self, input: i32) -> Self {
        self.status_code = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status code for the response.</p>
    pub fn set_status_code(mut self, input: ::std::option::Option<i32>) -> Self {
        self.status_code = input;
        self
    }
    /// <p>The status code for the response.</p>
    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
    }
    /// Consumes the builder and constructs a [`CreateSegmentEstimateOutput`](crate::operation::create_segment_estimate::CreateSegmentEstimateOutput).
    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,
        }
    }
}