/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Personalize { namespace Model { /** */ class CreateMetricAttributionRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_API CreateMetricAttributionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateMetricAttribution"; } AWS_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the metric attribution.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for the metric attribution.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for the metric attribution.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for the metric attribution.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for the metric attribution.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for the metric attribution.

*/ inline CreateMetricAttributionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for the metric attribution.

*/ inline CreateMetricAttributionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for the metric attribution.

*/ inline CreateMetricAttributionRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline CreateMetricAttributionRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline CreateMetricAttributionRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the destination dataset group for the * metric attribution.

*/ inline CreateMetricAttributionRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} /** *

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).

*/ inline const Aws::Vector& GetMetrics() const{ return m_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).

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

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).

*/ inline void SetMetrics(const Aws::Vector& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

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).

*/ inline void SetMetrics(Aws::Vector&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

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).

*/ inline CreateMetricAttributionRequest& WithMetrics(const Aws::Vector& value) { SetMetrics(value); return *this;} /** *

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).

*/ inline CreateMetricAttributionRequest& WithMetrics(Aws::Vector&& value) { SetMetrics(std::move(value)); return *this;} /** *

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).

*/ inline CreateMetricAttributionRequest& AddMetrics(const MetricAttribute& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; } /** *

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).

*/ inline CreateMetricAttributionRequest& AddMetrics(MetricAttribute&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; } /** *

The output configuration details for the metric attribution.

*/ inline const MetricAttributionOutput& GetMetricsOutputConfig() const{ return m_metricsOutputConfig; } /** *

The output configuration details for the metric attribution.

*/ inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; } /** *

The output configuration details for the metric attribution.

*/ inline void SetMetricsOutputConfig(const MetricAttributionOutput& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = value; } /** *

The output configuration details for the metric attribution.

*/ inline void SetMetricsOutputConfig(MetricAttributionOutput&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::move(value); } /** *

The output configuration details for the metric attribution.

*/ inline CreateMetricAttributionRequest& WithMetricsOutputConfig(const MetricAttributionOutput& value) { SetMetricsOutputConfig(value); return *this;} /** *

The output configuration details for the metric attribution.

*/ inline CreateMetricAttributionRequest& WithMetricsOutputConfig(MetricAttributionOutput&& value) { SetMetricsOutputConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet = false; Aws::Vector m_metrics; bool m_metricsHasBeenSet = false; MetricAttributionOutput m_metricsOutputConfig; bool m_metricsOutputConfigHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws