AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AddMetricsT = Aws::Vector<MetricAttribute>>
47 void SetAddMetrics(AddMetricsT&& value) { m_addMetricsHasBeenSet = true; m_addMetrics = std::forward<AddMetricsT>(value); }
48 template<typename AddMetricsT = Aws::Vector<MetricAttribute>>
49 UpdateMetricAttributionRequest& WithAddMetrics(AddMetricsT&& value) { SetAddMetrics(std::forward<AddMetricsT>(value)); return *this;}
50 template<typename AddMetricsT = MetricAttribute>
51 UpdateMetricAttributionRequest& AddAddMetrics(AddMetricsT&& value) { m_addMetricsHasBeenSet = true; m_addMetrics.emplace_back(std::forward<AddMetricsT>(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 template<typename RemoveMetricsT = Aws::Vector<Aws::String>>
61 void SetRemoveMetrics(RemoveMetricsT&& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics = std::forward<RemoveMetricsT>(value); }
62 template<typename RemoveMetricsT = Aws::Vector<Aws::String>>
63 UpdateMetricAttributionRequest& WithRemoveMetrics(RemoveMetricsT&& value) { SetRemoveMetrics(std::forward<RemoveMetricsT>(value)); return *this;}
64 template<typename RemoveMetricsT = Aws::String>
65 UpdateMetricAttributionRequest& AddRemoveMetrics(RemoveMetricsT&& value) { m_removeMetricsHasBeenSet = true; m_removeMetrics.emplace_back(std::forward<RemoveMetricsT>(value)); return *this; }
67
69
72 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
73 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
74 template<typename MetricsOutputConfigT = MetricAttributionOutput>
75 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value); }
76 template<typename MetricsOutputConfigT = MetricAttributionOutput>
77 UpdateMetricAttributionRequest& WithMetricsOutputConfig(MetricsOutputConfigT&& value) { SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value)); return *this;}
79
81
84 inline const Aws::String& GetMetricAttributionArn() const { return m_metricAttributionArn; }
85 inline bool MetricAttributionArnHasBeenSet() const { return m_metricAttributionArnHasBeenSet; }
86 template<typename MetricAttributionArnT = Aws::String>
87 void SetMetricAttributionArn(MetricAttributionArnT&& value) { m_metricAttributionArnHasBeenSet = true; m_metricAttributionArn = std::forward<MetricAttributionArnT>(value); }
88 template<typename MetricAttributionArnT = Aws::String>
89 UpdateMetricAttributionRequest& WithMetricAttributionArn(MetricAttributionArnT&& value) { SetMetricAttributionArn(std::forward<MetricAttributionArnT>(value)); return *this;}
91 private:
92
94 bool m_addMetricsHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_removeMetrics;
97 bool m_removeMetricsHasBeenSet = false;
98
99 MetricAttributionOutput m_metricsOutputConfig;
100 bool m_metricsOutputConfigHasBeenSet = false;
101
102 Aws::String m_metricAttributionArn;
103 bool m_metricAttributionArnHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Personalize
108} // 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