AWS SDK for C++  1.9.155
AWS SDK for C++
CreateCustomMetricRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
12 #include <aws/iot/model/Tag.h>
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "CreateCustomMetric"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
44  inline const Aws::String& GetMetricName() const{ return m_metricName; }
45 
51  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
52 
58  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
59 
65  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 
72  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
73 
79  inline CreateCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
80 
86  inline CreateCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
87 
93  inline CreateCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
94 
95 
101  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
102 
108  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
109 
115  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
116 
122  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
123 
129  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
130 
136  inline CreateCustomMetricRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
137 
143  inline CreateCustomMetricRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
144 
150  inline CreateCustomMetricRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
151 
152 
158  inline const CustomMetricType& GetMetricType() const{ return m_metricType; }
159 
165  inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
166 
172  inline void SetMetricType(const CustomMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
173 
179  inline void SetMetricType(CustomMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
180 
186  inline CreateCustomMetricRequest& WithMetricType(const CustomMetricType& value) { SetMetricType(value); return *this;}
187 
193  inline CreateCustomMetricRequest& WithMetricType(CustomMetricType&& value) { SetMetricType(std::move(value)); return *this;}
194 
195 
199  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
200 
204  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
205 
209  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
210 
214  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
215 
219  inline CreateCustomMetricRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
220 
224  inline CreateCustomMetricRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
225 
229  inline CreateCustomMetricRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
230 
234  inline CreateCustomMetricRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
235 
236 
243  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
244 
251  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
252 
259  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
260 
267  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
268 
275  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
276 
283  inline CreateCustomMetricRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
284 
291  inline CreateCustomMetricRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
292 
299  inline CreateCustomMetricRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
300 
301  private:
302 
303  Aws::String m_metricName;
304  bool m_metricNameHasBeenSet;
305 
306  Aws::String m_displayName;
307  bool m_displayNameHasBeenSet;
308 
309  CustomMetricType m_metricType;
310  bool m_metricTypeHasBeenSet;
311 
312  Aws::Vector<Tag> m_tags;
313  bool m_tagsHasBeenSet;
314 
315  Aws::String m_clientRequestToken;
316  bool m_clientRequestTokenHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace IoT
321 } // namespace Aws
Aws::IoT::Model::CreateCustomMetricRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateCustomMetricRequest.h:129
Aws::IoT::Model::CreateCustomMetricRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateCustomMetricRequest.h:251
Aws::IoT::Model::CreateCustomMetricRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:115
Aws::IoT::Model::CreateCustomMetricRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateCustomMetricRequest.h:101
Aws::IoT::Model::CreateCustomMetricRequest::WithMetricType
CreateCustomMetricRequest & WithMetricType(CustomMetricType &&value)
Definition: CreateCustomMetricRequest.h:193
Aws::IoT::Model::CreateCustomMetricRequest::WithTags
CreateCustomMetricRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateCustomMetricRequest.h:219
Aws::IoT::Model::CreateCustomMetricRequest::WithMetricName
CreateCustomMetricRequest & WithMetricName(const char *value)
Definition: CreateCustomMetricRequest.h:93
Aws::IoT::Model::CreateCustomMetricRequest::WithMetricName
CreateCustomMetricRequest & WithMetricName(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:86
Aws::IoT::Model::CreateCustomMetricRequest::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: CreateCustomMetricRequest.h:51
Aws::IoT::Model::CreateCustomMetricRequest::WithClientRequestToken
CreateCustomMetricRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:283
Aws::IoT::Model::CreateCustomMetricRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateCustomMetricRequest.h:214
Aws::IoT::Model::CreateCustomMetricRequest::WithClientRequestToken
CreateCustomMetricRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:291
Aws::IoT::Model::CreateCustomMetricRequest
Definition: CreateCustomMetricRequest.h:26
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateCustomMetricRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateCustomMetricRequest.h:243
Aws::IoT::Model::CreateCustomMetricRequest::WithDisplayName
CreateCustomMetricRequest & WithDisplayName(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:136
AWSVector.h
Aws::IoT::Model::CustomMetricType
CustomMetricType
Definition: CustomMetricType.h:17
Aws::IoT::Model::CreateCustomMetricRequest::WithDisplayName
CreateCustomMetricRequest & WithDisplayName(const char *value)
Definition: CreateCustomMetricRequest.h:150
Aws::IoT::Model::CreateCustomMetricRequest::SetMetricType
void SetMetricType(CustomMetricType &&value)
Definition: CreateCustomMetricRequest.h:179
Aws::IoT::Model::CreateCustomMetricRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateCustomMetricRequest.h:108
Aws::IoT::Model::CreateCustomMetricRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateCustomMetricRequest.h:199
Aws::IoT::Model::CreateCustomMetricRequest::SetMetricType
void SetMetricType(const CustomMetricType &value)
Definition: CreateCustomMetricRequest.h:172
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateCustomMetricRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCustomMetricRequest.h:34
Aws::IoT::Model::CreateCustomMetricRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateCustomMetricRequest.h:209
Aws::IoT::Model::CreateCustomMetricRequest::AddTags
CreateCustomMetricRequest & AddTags(Tag &&value)
Definition: CreateCustomMetricRequest.h:234
Aws::IoT::Model::CreateCustomMetricRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCustomMetricRequest.h:204
AWSString.h
Aws::IoT::Model::CreateCustomMetricRequest::WithMetricType
CreateCustomMetricRequest & WithMetricType(const CustomMetricType &value)
Definition: CreateCustomMetricRequest.h:186
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateCustomMetricRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:122
CustomMetricType.h
Aws::IoT::Model::CreateCustomMetricRequest::GetMetricType
const CustomMetricType & GetMetricType() const
Definition: CreateCustomMetricRequest.h:158
Aws::IoT::Model::CreateCustomMetricRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateCustomMetricRequest.h:275
Aws::IoT::Model::CreateCustomMetricRequest::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:65
Aws::IoT::Model::CreateCustomMetricRequest::WithDisplayName
CreateCustomMetricRequest & WithDisplayName(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateCustomMetricRequest::MetricTypeHasBeenSet
bool MetricTypeHasBeenSet() const
Definition: CreateCustomMetricRequest.h:165
Aws::IoT::Model::CreateCustomMetricRequest::WithClientRequestToken
CreateCustomMetricRequest & WithClientRequestToken(const char *value)
Definition: CreateCustomMetricRequest.h:299
Aws::IoT::Model::CreateCustomMetricRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateCustomMetricRequest.h:267
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateCustomMetricRequest::AddTags
CreateCustomMetricRequest & AddTags(const Tag &value)
Definition: CreateCustomMetricRequest.h:229
Aws::IoT::Model::CreateCustomMetricRequest::WithTags
CreateCustomMetricRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateCustomMetricRequest.h:224
Aws::IoT::Model::CreateCustomMetricRequest::SetMetricName
void SetMetricName(const char *value)
Definition: CreateCustomMetricRequest.h:72
Aws::IoT::Model::CreateCustomMetricRequest::CreateCustomMetricRequest
CreateCustomMetricRequest()
Aws::IoT::Model::CreateCustomMetricRequest::GetMetricName
const Aws::String & GetMetricName() const
Definition: CreateCustomMetricRequest.h:44
IoTRequest.h
Aws::IoT::Model::CreateCustomMetricRequest::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:58
Aws::IoT::Model::CreateCustomMetricRequest::SerializePayload
Aws::String SerializePayload() const override
UUID.h
Aws::IoT::Model::CreateCustomMetricRequest::WithMetricName
CreateCustomMetricRequest & WithMetricName(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:79
Aws::IoT::Model::CreateCustomMetricRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateCustomMetricRequest.h:259
Tag.h
IoT_EXPORTS.h