AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMetricAttributionRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/personalize/model/MetricAttributionOutput.h>
12#include <aws/personalize/model/MetricAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateMetricAttributionRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateMetricAttribution"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateMetricAttributionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateMetricAttributionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateMetricAttributionRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
60 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
61 inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
62 inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
63 inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
65 inline CreateMetricAttributionRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
66 inline CreateMetricAttributionRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
68
70
77 inline const Aws::Vector<MetricAttribute>& GetMetrics() const{ return m_metrics; }
78 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
79 inline void SetMetrics(const Aws::Vector<MetricAttribute>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
80 inline void SetMetrics(Aws::Vector<MetricAttribute>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
82 inline CreateMetricAttributionRequest& WithMetrics(Aws::Vector<MetricAttribute>&& value) { SetMetrics(std::move(value)); return *this;}
83 inline CreateMetricAttributionRequest& AddMetrics(const MetricAttribute& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
84 inline CreateMetricAttributionRequest& AddMetrics(MetricAttribute&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
86
88
91 inline const MetricAttributionOutput& GetMetricsOutputConfig() const{ return m_metricsOutputConfig; }
92 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
93 inline void SetMetricsOutputConfig(const MetricAttributionOutput& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = value; }
94 inline void SetMetricsOutputConfig(MetricAttributionOutput&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::move(value); }
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_datasetGroupArn;
104 bool m_datasetGroupArnHasBeenSet = false;
105
107 bool m_metricsHasBeenSet = false;
108
109 MetricAttributionOutput m_metricsOutputConfig;
110 bool m_metricsOutputConfigHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Personalize
115} // namespace Aws
CreateMetricAttributionRequest & WithName(Aws::String &&value)
CreateMetricAttributionRequest & WithMetricsOutputConfig(MetricAttributionOutput &&value)
CreateMetricAttributionRequest & AddMetrics(MetricAttribute &&value)
CreateMetricAttributionRequest & WithMetrics(Aws::Vector< MetricAttribute > &&value)
CreateMetricAttributionRequest & WithMetrics(const Aws::Vector< MetricAttribute > &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateMetricAttributionRequest & WithName(const Aws::String &value)
CreateMetricAttributionRequest & WithDatasetGroupArn(const char *value)
CreateMetricAttributionRequest & WithDatasetGroupArn(const Aws::String &value)
CreateMetricAttributionRequest & WithName(const char *value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetMetricsOutputConfig(const MetricAttributionOutput &value)
CreateMetricAttributionRequest & WithMetricsOutputConfig(const MetricAttributionOutput &value)
CreateMetricAttributionRequest & WithDatasetGroupArn(Aws::String &&value)
void SetMetrics(const Aws::Vector< MetricAttribute > &value)
const Aws::Vector< MetricAttribute > & GetMetrics() const
CreateMetricAttributionRequest & AddMetrics(const MetricAttribute &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector