AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateMetricRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/MetricDefinition.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppMonetization {
16namespace Model {
17
27 public:
28 AWS_APPMONETIZATION_API UpdateMetricRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateMetric"; }
35
36 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
50 UpdateMetricRequest& WithAppId(AppIdT&& value) {
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMetricId() const { return m_metricId; }
61 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
62 template <typename MetricIdT = Aws::String>
63 void SetMetricId(MetricIdT&& value) {
64 m_metricIdHasBeenSet = true;
65 m_metricId = std::forward<MetricIdT>(value);
66 }
67 template <typename MetricIdT = Aws::String>
68 UpdateMetricRequest& WithMetricId(MetricIdT&& value) {
69 SetMetricId(std::forward<MetricIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 UpdateMetricRequest& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 UpdateMetricRequest& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetEventType() const { return m_eventType; }
115 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
116 template <typename EventTypeT = Aws::String>
117 void SetEventType(EventTypeT&& value) {
118 m_eventTypeHasBeenSet = true;
119 m_eventType = std::forward<EventTypeT>(value);
120 }
121 template <typename EventTypeT = Aws::String>
122 UpdateMetricRequest& WithEventType(EventTypeT&& value) {
123 SetEventType(std::forward<EventTypeT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetUnitName() const { return m_unitName; }
134 inline bool UnitNameHasBeenSet() const { return m_unitNameHasBeenSet; }
135 template <typename UnitNameT = Aws::String>
136 void SetUnitName(UnitNameT&& value) {
137 m_unitNameHasBeenSet = true;
138 m_unitName = std::forward<UnitNameT>(value);
139 }
140 template <typename UnitNameT = Aws::String>
141 UpdateMetricRequest& WithUnitName(UnitNameT&& value) {
142 SetUnitName(std::forward<UnitNameT>(value));
143 return *this;
144 }
146
148
152 inline const MetricDefinition& GetDefinition() const { return m_definition; }
153 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
154 template <typename DefinitionT = MetricDefinition>
155 void SetDefinition(DefinitionT&& value) {
156 m_definitionHasBeenSet = true;
157 m_definition = std::forward<DefinitionT>(value);
158 }
159 template <typename DefinitionT = MetricDefinition>
160 UpdateMetricRequest& WithDefinition(DefinitionT&& value) {
161 SetDefinition(std::forward<DefinitionT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_appId;
167
168 Aws::String m_metricId;
169
170 Aws::String m_name;
171
172 Aws::String m_description;
173
174 Aws::String m_eventType;
175
176 Aws::String m_unitName;
177
178 MetricDefinition m_definition;
179 bool m_appIdHasBeenSet = false;
180 bool m_metricIdHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_eventTypeHasBeenSet = false;
184 bool m_unitNameHasBeenSet = false;
185 bool m_definitionHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace AppMonetization
190} // namespace Aws
UpdateMetricRequest & WithName(NameT &&value)
UpdateMetricRequest & WithDescription(DescriptionT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
UpdateMetricRequest & WithMetricId(MetricIdT &&value)
UpdateMetricRequest & WithDefinition(DefinitionT &&value)
UpdateMetricRequest & WithEventType(EventTypeT &&value)
virtual const char * GetServiceRequestName() const override
UpdateMetricRequest & WithUnitName(UnitNameT &&value)
UpdateMetricRequest & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API UpdateMetricRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String