pub struct Builder { /* private fields */ }
Expand description
A builder for CreateMetricAttributionInput
.
Implementations§
source§impl Builder
impl Builder
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 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 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 build(self) -> Result<CreateMetricAttributionInput, BuildError>
pub fn build(self) -> Result<CreateMetricAttributionInput, BuildError>
Consumes the builder and constructs a CreateMetricAttributionInput
.