AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMetricAttributionRequest.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/AWSVector.h>
10#include <aws/personalize/model/MetricAttributionOutput.h>
11#include <aws/core/utils/memory/stl/AWSString.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 UpdateMetricAttributionRequest();
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 "UpdateMetricAttribution"; }
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::Vector<MetricAttribute>& GetAddMetrics() const{ return m_addMetrics; }
45 inline bool AddMetricsHasBeenSet() const { return m_addMetricsHasBeenSet; }
46 inline void SetAddMetrics(const Aws::Vector<MetricAttribute>& value) { m_addMetricsHasBeenSet = true; m_addMetrics = value; }
47 inline void SetAddMetrics(Aws::Vector<MetricAttribute>&& value) { m_addMetricsHasBeenSet = true; m_addMetrics = std::move(value); }
50 inline UpdateMetricAttributionRequest& AddAddMetrics(const MetricAttribute& value) { m_addMetricsHasBeenSet = true; m_addMetrics.push_back(value); return *this; }
51 inline UpdateMetricAttributionRequest& AddAddMetrics(MetricAttribute&& value) { m_addMetricsHasBeenSet = true; m_addMetrics.push_back(std::move(value)); return *this; }
53
55
58 inline const Aws::Vector<Aws::String>& GetRemoveMetrics() const{ return m_removeMetrics; }
59 inline bool RemoveMetricsHasBeenSet() const { return m_removeMetricsHasBeenSet; }
60 inline void SetRemoveMetrics(const Aws::Vector<Aws::String>& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics = value; }
61 inline void SetRemoveMetrics(Aws::Vector<Aws::String>&& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics = std::move(value); }
64 inline UpdateMetricAttributionRequest& AddRemoveMetrics(const Aws::String& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics.push_back(value); return *this; }
65 inline UpdateMetricAttributionRequest& AddRemoveMetrics(Aws::String&& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics.push_back(std::move(value)); return *this; }
66 inline UpdateMetricAttributionRequest& AddRemoveMetrics(const char* value) { m_removeMetricsHasBeenSet = true; m_removeMetrics.push_back(value); return *this; }
68
70
73 inline const MetricAttributionOutput& GetMetricsOutputConfig() const{ return m_metricsOutputConfig; }
74 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
75 inline void SetMetricsOutputConfig(const MetricAttributionOutput& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = value; }
76 inline void SetMetricsOutputConfig(MetricAttributionOutput&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::move(value); }
80
82
85 inline const Aws::String& GetMetricAttributionArn() const{ return m_metricAttributionArn; }
86 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
87 inline void SetMetricAttributionArn(const Aws::String& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = value; }
88 inline void SetMetricAttributionArn(Aws::String&& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::move(value); }
89 inline void SetMetricAttributionArn(const char* value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn.assign(value); }
92 inline UpdateMetricAttributionRequest& WithMetricAttributionArn(const char* value) { SetMetricAttributionArn(value); return *this;}
94 private:
95
97 bool m_addMetricsHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_removeMetrics;
100 bool m_removeMetricsHasBeenSet = false;
101
102 MetricAttributionOutput m_metricsOutputConfig;
103 bool m_metricsOutputConfigHasBeenSet = false;
104
105 Aws::String m_metricAttributionArn;
106 bool m_metricAttributionArnHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Personalize
111} // namespace Aws
UpdateMetricAttributionRequest & WithMetricsOutputConfig(const MetricAttributionOutput &value)
const Aws::Vector< MetricAttribute > & GetAddMetrics() const
void SetAddMetrics(const Aws::Vector< MetricAttribute > &value)
UpdateMetricAttributionRequest & AddAddMetrics(MetricAttribute &&value)
UpdateMetricAttributionRequest & AddRemoveMetrics(const Aws::String &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
UpdateMetricAttributionRequest & WithAddMetrics(const Aws::Vector< MetricAttribute > &value)
UpdateMetricAttributionRequest & WithMetricAttributionArn(Aws::String &&value)
UpdateMetricAttributionRequest & WithAddMetrics(Aws::Vector< MetricAttribute > &&value)
UpdateMetricAttributionRequest & WithMetricAttributionArn(const char *value)
void SetRemoveMetrics(const Aws::Vector< Aws::String > &value)
UpdateMetricAttributionRequest & WithMetricsOutputConfig(MetricAttributionOutput &&value)
void SetMetricsOutputConfig(const MetricAttributionOutput &value)
UpdateMetricAttributionRequest & AddRemoveMetrics(const char *value)
UpdateMetricAttributionRequest & WithMetricAttributionArn(const Aws::String &value)
UpdateMetricAttributionRequest & WithRemoveMetrics(Aws::Vector< Aws::String > &&value)
UpdateMetricAttributionRequest & WithRemoveMetrics(const Aws::Vector< Aws::String > &value)
UpdateMetricAttributionRequest & AddAddMetrics(const MetricAttribute &value)
UpdateMetricAttributionRequest & AddRemoveMetrics(Aws::String &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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