aws_sdk_customerprofiles/client/
get_segment_estimate.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetSegmentEstimate`](crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain_name(impl Into<String>)`](crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder::set_domain_name):<br>required: **true**<br><p>The unique name of the domain.</p><br>
7    ///   - [`estimate_id(impl Into<String>)`](crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder::estimate_id) / [`set_estimate_id(Option<String>)`](crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder::set_estimate_id):<br>required: **true**<br><p>The query Id passed by a previous <code>CreateSegmentEstimate</code> operation.</p><br>
8    /// - On success, responds with [`GetSegmentEstimateOutput`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput) with field(s):
9    ///   - [`domain_name(Option<String>)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::domain_name): <p>The unique name of the domain.</p>
10    ///   - [`estimate_id(Option<String>)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::estimate_id): <p>The <code>QueryId</code> which is the same as the value passed in <code>QueryId</code>.</p>
11    ///   - [`status(Option<EstimateStatus>)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::status): <p>The current status of the query.</p>
12    ///   - [`estimate(Option<String>)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::estimate): <p>The estimated number of profiles contained in the segment.</p>
13    ///   - [`message(Option<String>)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::message): <p>The error message if there is any error.</p>
14    ///   - [`status_code(i32)`](crate::operation::get_segment_estimate::GetSegmentEstimateOutput::status_code): <p>The status code of the segment estimate.</p>
15    /// - On failure, responds with [`SdkError<GetSegmentEstimateError>`](crate::operation::get_segment_estimate::GetSegmentEstimateError)
16    pub fn get_segment_estimate(&self) -> crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder {
17        crate::operation::get_segment_estimate::builders::GetSegmentEstimateFluentBuilder::new(self.handle.clone())
18    }
19}