AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DescribeCustomMetricResult.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 DescribeCustomMetricResult() = 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
90 inline const Aws::String& GetDisplayName() const { return m_displayName; }
91 template <typename DisplayNameT = Aws::String>
92 void SetDisplayName(DisplayNameT&& value) {
93 m_displayNameHasBeenSet = true;
94 m_displayName = std::forward<DisplayNameT>(value);
95 }
96 template <typename DisplayNameT = Aws::String>
98 SetDisplayName(std::forward<DisplayNameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
108 template <typename CreationDateT = Aws::Utils::DateTime>
109 void SetCreationDate(CreationDateT&& value) {
110 m_creationDateHasBeenSet = true;
111 m_creationDate = std::forward<CreationDateT>(value);
112 }
113 template <typename CreationDateT = Aws::Utils::DateTime>
115 SetCreationDate(std::forward<CreationDateT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
126 template <typename LastModifiedDateT = Aws::Utils::DateTime>
127 void SetLastModifiedDate(LastModifiedDateT&& value) {
128 m_lastModifiedDateHasBeenSet = true;
129 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
130 }
131 template <typename LastModifiedDateT = Aws::Utils::DateTime>
133 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
134 return *this;
135 }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template <typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) {
143 m_requestIdHasBeenSet = true;
144 m_requestId = std::forward<RequestIdT>(value);
145 }
146 template <typename RequestIdT = Aws::String>
148 SetRequestId(std::forward<RequestIdT>(value));
149 return *this;
150 }
152 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
153
154 private:
155 Aws::String m_metricName;
156
157 Aws::String m_metricArn;
158
160
161 Aws::String m_displayName;
162
163 Aws::Utils::DateTime m_creationDate{};
164
165 Aws::Utils::DateTime m_lastModifiedDate{};
166
167 Aws::String m_requestId;
168 Aws::Http::HttpResponseCode m_HttpResponseCode;
169 bool m_metricNameHasBeenSet = false;
170 bool m_metricArnHasBeenSet = false;
171 bool m_metricTypeHasBeenSet = false;
172 bool m_displayNameHasBeenSet = false;
173 bool m_creationDateHasBeenSet = false;
174 bool m_lastModifiedDateHasBeenSet = false;
175 bool m_requestIdHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace IoT
180} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeCustomMetricResult & WithRequestId(RequestIdT &&value)
DescribeCustomMetricResult & WithLastModifiedDate(LastModifiedDateT &&value)
DescribeCustomMetricResult & WithMetricType(CustomMetricType value)
AWS_IOT_API DescribeCustomMetricResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCustomMetricResult & WithDisplayName(DisplayNameT &&value)
DescribeCustomMetricResult & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API DescribeCustomMetricResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCustomMetricResult & WithMetricName(MetricNameT &&value)
DescribeCustomMetricResult & WithMetricArn(MetricArnT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_IOT_API DescribeCustomMetricResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue