Struct aws_sdk_personalize::operation::create_metric_attribution::builders::CreateMetricAttributionInputBuilder
source · #[non_exhaustive]pub struct CreateMetricAttributionInputBuilder { /* private fields */ }Expand description
A builder for CreateMetricAttributionInput.
Implementations§
source§impl CreateMetricAttributionInputBuilder
impl CreateMetricAttributionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the metric attribution.
This field is required.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.
This field is required.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.
This field is required.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.
sourcepub fn build(self) -> Result<CreateMetricAttributionInput, BuildError>
pub fn build(self) -> Result<CreateMetricAttributionInput, BuildError>
Consumes the builder and constructs a CreateMetricAttributionInput.
source§impl CreateMetricAttributionInputBuilder
impl CreateMetricAttributionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateMetricAttributionOutput, SdkError<CreateMetricAttributionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateMetricAttributionOutput, SdkError<CreateMetricAttributionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateMetricAttributionInputBuilder
impl Clone for CreateMetricAttributionInputBuilder
source§fn clone(&self) -> CreateMetricAttributionInputBuilder
fn clone(&self) -> CreateMetricAttributionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateMetricAttributionInputBuilder
impl Default for CreateMetricAttributionInputBuilder
source§fn default() -> CreateMetricAttributionInputBuilder
fn default() -> CreateMetricAttributionInputBuilder
source§impl PartialEq for CreateMetricAttributionInputBuilder
impl PartialEq for CreateMetricAttributionInputBuilder
source§fn eq(&self, other: &CreateMetricAttributionInputBuilder) -> bool
fn eq(&self, other: &CreateMetricAttributionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateMetricAttributionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateMetricAttributionInputBuilder
impl RefUnwindSafe for CreateMetricAttributionInputBuilder
impl Send for CreateMetricAttributionInputBuilder
impl Sync for CreateMetricAttributionInputBuilder
impl Unpin for CreateMetricAttributionInputBuilder
impl UnwindSafe for CreateMetricAttributionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more