AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateMetricAttributionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
58 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
59 template<typename DatasetGroupArnT = Aws::String>
60 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
61 template<typename DatasetGroupArnT = Aws::String>
62 CreateMetricAttributionRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
64
66
73 inline const Aws::Vector<MetricAttribute>& GetMetrics() const { return m_metrics; }
74 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
75 template<typename MetricsT = Aws::Vector<MetricAttribute>>
76 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
77 template<typename MetricsT = Aws::Vector<MetricAttribute>>
78 CreateMetricAttributionRequest& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
79 template<typename MetricsT = MetricAttribute>
80 CreateMetricAttributionRequest& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
82
84
87 inline const MetricAttributionOutput& GetMetricsOutputConfig() const { return m_metricsOutputConfig; }
88 inline bool MetricsOutputConfigHasBeenSet() const { return m_metricsOutputConfigHasBeenSet; }
89 template<typename MetricsOutputConfigT = MetricAttributionOutput>
90 void SetMetricsOutputConfig(MetricsOutputConfigT&& value) { m_metricsOutputConfigHasBeenSet = true; m_metricsOutputConfig = std::forward<MetricsOutputConfigT>(value); }
91 template<typename MetricsOutputConfigT = MetricAttributionOutput>
92 CreateMetricAttributionRequest& WithMetricsOutputConfig(MetricsOutputConfigT&& value) { SetMetricsOutputConfig(std::forward<MetricsOutputConfigT>(value)); return *this;}
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_datasetGroupArn;
100 bool m_datasetGroupArnHasBeenSet = false;
101
103 bool m_metricsHasBeenSet = false;
104
105 MetricAttributionOutput m_metricsOutputConfig;
106 bool m_metricsOutputConfigHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Personalize
111} // 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