AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCustomMetricRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/CustomMetricType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iot/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace 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_IOT_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetMetricName() const{ return m_metricName; }
46 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
47 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
48 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
49 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
50 inline CreateCustomMetricRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
51 inline CreateCustomMetricRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
52 inline CreateCustomMetricRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
54
56
61 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
64 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
65 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
66 inline CreateCustomMetricRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
67 inline CreateCustomMetricRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
68 inline CreateCustomMetricRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
70
72
78 inline const CustomMetricType& GetMetricType() const{ return m_metricType; }
79 inline bool MetricTypeHasBeenSet() const { return m_metricTypeHasBeenSet; }
80 inline void SetMetricType(const CustomMetricType& value) { m_metricTypeHasBeenSet = true; m_metricType = value; }
81 inline void SetMetricType(CustomMetricType&& value) { m_metricTypeHasBeenSet = true; m_metricType = std::move(value); }
82 inline CreateCustomMetricRequest& WithMetricType(const CustomMetricType& value) { SetMetricType(value); return *this;}
83 inline CreateCustomMetricRequest& WithMetricType(CustomMetricType&& value) { SetMetricType(std::move(value)); return *this;}
85
87
90 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateCustomMetricRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
95 inline CreateCustomMetricRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateCustomMetricRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline CreateCustomMetricRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99
101
107 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
108 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
109 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
110 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
111 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
113 inline CreateCustomMetricRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
114 inline CreateCustomMetricRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
116 private:
117
118 Aws::String m_metricName;
119 bool m_metricNameHasBeenSet = false;
120
121 Aws::String m_displayName;
122 bool m_displayNameHasBeenSet = false;
123
124 CustomMetricType m_metricType;
125 bool m_metricTypeHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129
130 Aws::String m_clientRequestToken;
131 bool m_clientRequestTokenHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace IoT
136} // namespace Aws
CreateCustomMetricRequest & AddTags(Tag &&value)
CreateCustomMetricRequest & WithDisplayName(const Aws::String &value)
CreateCustomMetricRequest & WithMetricType(CustomMetricType &&value)
CreateCustomMetricRequest & WithDisplayName(Aws::String &&value)
CreateCustomMetricRequest & WithMetricName(const Aws::String &value)
CreateCustomMetricRequest & WithClientRequestToken(const char *value)
CreateCustomMetricRequest & WithClientRequestToken(Aws::String &&value)
CreateCustomMetricRequest & WithClientRequestToken(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetMetricType(const CustomMetricType &value)
CreateCustomMetricRequest & WithMetricType(const CustomMetricType &value)
CreateCustomMetricRequest & WithMetricName(Aws::String &&value)
CreateCustomMetricRequest & WithDisplayName(const char *value)
CreateCustomMetricRequest & AddTags(const Tag &value)
CreateCustomMetricRequest & WithTags(Aws::Vector< Tag > &&value)
CreateCustomMetricRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateCustomMetricRequest & WithMetricName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector