AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateMetricAttributionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/MetricAttribute.h>
12#include <aws/personalize/model/MetricAttributionOutput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Personalize {
18namespace Model {
19
23 public:
24 AWS_PERSONALIZE_API CreateMetricAttributionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateMetricAttribution"; }
31
32 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
33
34 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
60 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
61 template <typename DatasetGroupArnT = Aws::String>
62 void SetDatasetGroupArn(DatasetGroupArnT&& value) {
63 m_datasetGroupArnHasBeenSet = true;
64 m_datasetGroupArn = std::forward<DatasetGroupArnT>(value);
65 }
66 template <typename DatasetGroupArnT = Aws::String>
68 SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<MetricAttribute>& GetMetrics() const { return m_metrics; }
82 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
83 template <typename MetricsT = Aws::Vector<MetricAttribute>>
84 void SetMetrics(MetricsT&& value) {
85 m_metricsHasBeenSet = true;
86 m_metrics = std::forward<MetricsT>(value);
87 }
88 template <typename MetricsT = Aws::Vector<MetricAttribute>>
90 SetMetrics(std::forward<MetricsT>(value));
91 return *this;
92 }
93 template <typename MetricsT = MetricAttribute>
95 m_metricsHasBeenSet = true;
96 m_metrics.emplace_back(std::forward<MetricsT>(value));
97 return *this;
98 }
100
102
105 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
106 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
107 template <typename MetricsOutputConfigT = MetricAttributionOutput>
108 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) {
109 m_metricsOutputConfigHasBeenSet = true;
110 m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value);
111 }
112 template <typename MetricsOutputConfigT = MetricAttributionOutput>
114 SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_name;
120
121 Aws::String m_datasetGroupArn;
122
124
125 MetricAttributionOutput m_metricsOutputConfig;
126 bool m_nameHasBeenSet = false;
127 bool m_datasetGroupArnHasBeenSet = false;
128 bool m_metricsHasBeenSet = false;
129 bool m_metricsOutputConfigHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Personalize
134} // namespace Aws
CreateMetricAttributionRequest & WithName(NameT &&value)
CreateMetricAttributionRequest & WithMetricsOutputConfig(MetricsOutputConfigT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API CreateMetricAttributionRequest()=default
CreateMetricAttributionRequest & WithDatasetGroupArn(DatasetGroupArnT &&value)
CreateMetricAttributionRequest & AddMetrics(MetricsT &&value)
CreateMetricAttributionRequest & WithMetrics(MetricsT &&value)
const Aws::Vector< MetricAttribute > & GetMetrics() const
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