AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateMetricAttributionRequest.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 UpdateMetricAttributionRequest() = 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 "UpdateMetricAttribution"; }
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::Vector<MetricAttribute>& GetAddMetrics() const { return m_addMetrics; }
41 inline bool AddMetricsHasBeenSet() const { return m_addMetricsHasBeenSet; }
42 template <typename AddMetricsT = Aws::Vector<MetricAttribute>>
43 void SetAddMetrics(AddMetricsT&& value) {
44 m_addMetricsHasBeenSet = true;
45 m_addMetrics = std::forward<AddMetricsT>(value);
46 }
47 template <typename AddMetricsT = Aws::Vector<MetricAttribute>>
49 SetAddMetrics(std::forward<AddMetricsT>(value));
50 return *this;
51 }
52 template <typename AddMetricsT = MetricAttribute>
54 m_addMetricsHasBeenSet = true;
55 m_addMetrics.emplace_back(std::forward<AddMetricsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<Aws::String>& GetRemoveMetrics() const { return m_removeMetrics; }
65 inline bool RemoveMetricsHasBeenSet() const { return m_removeMetricsHasBeenSet; }
66 template <typename RemoveMetricsT = Aws::Vector<Aws::String>>
67 void SetRemoveMetrics(RemoveMetricsT&& value) {
68 m_removeMetricsHasBeenSet = true;
69 m_removeMetrics = std::forward<RemoveMetricsT>(value);
70 }
71 template <typename RemoveMetricsT = Aws::Vector<Aws::String>>
73 SetRemoveMetrics(std::forward<RemoveMetricsT>(value));
74 return *this;
75 }
76 template <typename RemoveMetricsT = Aws::String>
78 m_removeMetricsHasBeenSet = true;
79 m_removeMetrics.emplace_back(std::forward<RemoveMetricsT>(value));
80 return *this;
81 }
83
85
88 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
89 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
90 template <typename MetricsOutputConfigT = MetricAttributionOutput>
91 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) {
92 m_metricsOutputConfigHasBeenSet = true;
93 m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value);
94 }
95 template <typename MetricsOutputConfigT = MetricAttributionOutput>
97 SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetMetricAttributionArn() const { return m_metricAttributionArn; }
107 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
108 template <typename MetricAttributionArnT = Aws::String>
109 void SetMetricAttributionArn(MetricAttributionArnT&& value) {
110 m_metricAttributionArnHasBeenSet = true;
111 m_metricAttributionArn = std::forward<MetricAttributionArnT>(value);
112 }
113 template <typename MetricAttributionArnT = Aws::String>
115 SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value));
116 return *this;
117 }
119 private:
120 Aws::Vector<MetricAttribute> m_addMetrics;
121
122 Aws::Vector<Aws::String> m_removeMetrics;
123
124 MetricAttributionOutput m_metricsOutputConfig;
125
126 Aws::String m_metricAttributionArn;
127 bool m_addMetricsHasBeenSet = false;
128 bool m_removeMetricsHasBeenSet = false;
129 bool m_metricsOutputConfigHasBeenSet = false;
130 bool m_metricAttributionArnHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Personalize
135} // namespace Aws
const Aws::Vector< MetricAttribute > & GetAddMetrics() const
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
UpdateMetricAttributionRequest & WithAddMetrics(AddMetricsT &&value)
UpdateMetricAttributionRequest & WithRemoveMetrics(RemoveMetricsT &&value)
AWS_PERSONALIZE_API UpdateMetricAttributionRequest()=default
UpdateMetricAttributionRequest & AddAddMetrics(AddMetricsT &&value)
UpdateMetricAttributionRequest & WithMetricsOutputConfig(MetricsOutputConfigT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMetricAttributionRequest & AddRemoveMetrics(RemoveMetricsT &&value)
UpdateMetricAttributionRequest & WithMetricAttributionArn(MetricAttributionArnT &&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