Struct aws_sdk_personalize::operation::create_metric_attribution::builders::CreateMetricAttributionFluentBuilder
source · pub struct CreateMetricAttributionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateMetricAttribution
.
Creates a metric attribution. A metric attribution creates reports on the data that you import into Amazon Personalize. Depending on how you imported the data, you can view reports in Amazon CloudWatch or Amazon S3. For more information, see Measuring impact of recommendations.
Implementations§
source§impl CreateMetricAttributionFluentBuilder
impl CreateMetricAttributionFluentBuilder
sourcepub fn as_input(&self) -> &CreateMetricAttributionInputBuilder
pub fn as_input(&self) -> &CreateMetricAttributionInputBuilder
Access the CreateMetricAttribution as a reference.
sourcepub async fn send(
self
) -> Result<CreateMetricAttributionOutput, SdkError<CreateMetricAttributionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateMetricAttributionOutput, SdkError<CreateMetricAttributionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateMetricAttributionOutput, CreateMetricAttributionError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateMetricAttributionOutput, CreateMetricAttributionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
sourcepub fn get_dataset_group_arn(&self) -> &Option<String>
pub fn get_dataset_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
sourcepub fn metrics(self, input: MetricAttribute) -> Self
pub fn metrics(self, input: MetricAttribute) -> Self
Appends an item to metrics
.
To override the contents of this collection use set_metrics
.
A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM()
or SAMPLECOUNT()
. For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
sourcepub fn set_metrics(self, input: Option<Vec<MetricAttribute>>) -> Self
pub fn set_metrics(self, input: Option<Vec<MetricAttribute>>) -> Self
A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM()
or SAMPLECOUNT()
. For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
sourcepub fn get_metrics(&self) -> &Option<Vec<MetricAttribute>>
pub fn get_metrics(&self) -> &Option<Vec<MetricAttribute>>
A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM()
or SAMPLECOUNT()
. For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
sourcepub fn metrics_output_config(self, input: MetricAttributionOutput) -> Self
pub fn metrics_output_config(self, input: MetricAttributionOutput) -> Self
The output configuration details for the metric attribution.
sourcepub fn set_metrics_output_config(
self,
input: Option<MetricAttributionOutput>
) -> Self
pub fn set_metrics_output_config( self, input: Option<MetricAttributionOutput> ) -> Self
The output configuration details for the metric attribution.
sourcepub fn get_metrics_output_config(&self) -> &Option<MetricAttributionOutput>
pub fn get_metrics_output_config(&self) -> &Option<MetricAttributionOutput>
The output configuration details for the metric attribution.
Trait Implementations§
source§impl Clone for CreateMetricAttributionFluentBuilder
impl Clone for CreateMetricAttributionFluentBuilder
source§fn clone(&self) -> CreateMetricAttributionFluentBuilder
fn clone(&self) -> CreateMetricAttributionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more