AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
UpdateCustomMetricResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/CustomMetricType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IoT {
25namespace Model {
27 public:
28 AWS_IOT_API UpdateCustomMetricResult() = default;
31
33
36 inline const Aws::String& GetMetricName() const { return m_metricName; }
37 template <typename MetricNameT = Aws::String>
38 void SetMetricName(MetricNameT&& value) {
39 m_metricNameHasBeenSet = true;
40 m_metricName = std::forward<MetricNameT>(value);
41 }
42 template <typename MetricNameT = Aws::String>
44 SetMetricName(std::forward<MetricNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetMetricArn() const { return m_metricArn; }
54 template <typename MetricArnT = Aws::String>
55 void SetMetricArn(MetricArnT&& value) {
56 m_metricArnHasBeenSet = true;
57 m_metricArn = std::forward<MetricArnT>(value);
58 }
59 template <typename MetricArnT = Aws::String>
61 SetMetricArn(std::forward<MetricArnT>(value));
62 return *this;
63 }
65
67
73 inline CustomMetricType GetMetricType() const { return m_metricType; }
74 inline void SetMetricType(CustomMetricType value) {
75 m_metricTypeHasBeenSet = true;
76 m_metricType = value;
77 }
79 SetMetricType(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDisplayName() const { return m_displayName; }
89 template <typename DisplayNameT = Aws::String>
90 void SetDisplayName(DisplayNameT&& value) {
91 m_displayNameHasBeenSet = true;
92 m_displayName = std::forward<DisplayNameT>(value);
93 }
94 template <typename DisplayNameT = Aws::String>
96 SetDisplayName(std::forward<DisplayNameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
106 template <typename CreationDateT = Aws::Utils::DateTime>
107 void SetCreationDate(CreationDateT&& value) {
108 m_creationDateHasBeenSet = true;
109 m_creationDate = std::forward<CreationDateT>(value);
110 }
111 template <typename CreationDateT = Aws::Utils::DateTime>
113 SetCreationDate(std::forward<CreationDateT>(value));
114 return *this;
115 }
117
119
123 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
124 template <typename LastModifiedDateT = Aws::Utils::DateTime>
125 void SetLastModifiedDate(LastModifiedDateT&& value) {
126 m_lastModifiedDateHasBeenSet = true;
127 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
128 }
129 template <typename LastModifiedDateT = Aws::Utils::DateTime>
130 UpdateCustomMetricResult& WithLastModifiedDate(LastModifiedDateT&& value) {
131 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
151
152 private:
153 Aws::String m_metricName;
154
155 Aws::String m_metricArn;
156
158
159 Aws::String m_displayName;
160
161 Aws::Utils::DateTime m_creationDate{};
162
163 Aws::Utils::DateTime m_lastModifiedDate{};
164
165 Aws::String m_requestId;
166 Aws::Http::HttpResponseCode m_HttpResponseCode;
167 bool m_metricNameHasBeenSet = false;
168 bool m_metricArnHasBeenSet = false;
169 bool m_metricTypeHasBeenSet = false;
170 bool m_displayNameHasBeenSet = false;
171 bool m_creationDateHasBeenSet = false;
172 bool m_lastModifiedDateHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace IoT
178} // namespace Aws
UpdateCustomMetricResult & WithMetricName(MetricNameT &&value)
UpdateCustomMetricResult & WithMetricType(CustomMetricType value)
AWS_IOT_API UpdateCustomMetricResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
UpdateCustomMetricResult & WithCreationDate(CreationDateT &&value)
UpdateCustomMetricResult & WithDisplayName(DisplayNameT &&value)
UpdateCustomMetricResult & WithRequestId(RequestIdT &&value)
UpdateCustomMetricResult & WithMetricArn(MetricArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateCustomMetricResult & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API UpdateCustomMetricResult()=default
AWS_IOT_API UpdateCustomMetricResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue