AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
UpdateDimensionResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/DimensionType.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoT {
26namespace Model {
28 public:
29 AWS_IOT_API UpdateDimensionResult() = default;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline DimensionType GetType() const { return m_type; }
72 inline void SetType(DimensionType value) {
73 m_typeHasBeenSet = true;
74 m_type = value;
75 }
77 SetType(value);
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Aws::String>& GetStringValues() const { return m_stringValues; }
88 template <typename StringValuesT = Aws::Vector<Aws::String>>
89 void SetStringValues(StringValuesT&& value) {
90 m_stringValuesHasBeenSet = true;
91 m_stringValues = std::forward<StringValuesT>(value);
92 }
93 template <typename StringValuesT = Aws::Vector<Aws::String>>
94 UpdateDimensionResult& WithStringValues(StringValuesT&& value) {
95 SetStringValues(std::forward<StringValuesT>(value));
96 return *this;
97 }
98 template <typename StringValuesT = Aws::String>
99 UpdateDimensionResult& AddStringValues(StringValuesT&& value) {
100 m_stringValuesHasBeenSet = true;
101 m_stringValues.emplace_back(std::forward<StringValuesT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
112 template <typename CreationDateT = Aws::Utils::DateTime>
113 void SetCreationDate(CreationDateT&& value) {
114 m_creationDateHasBeenSet = true;
115 m_creationDate = std::forward<CreationDateT>(value);
116 }
117 template <typename CreationDateT = Aws::Utils::DateTime>
118 UpdateDimensionResult& WithCreationDate(CreationDateT&& value) {
119 SetCreationDate(std::forward<CreationDateT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
130 template <typename LastModifiedDateT = Aws::Utils::DateTime>
131 void SetLastModifiedDate(LastModifiedDateT&& value) {
132 m_lastModifiedDateHasBeenSet = true;
133 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
134 }
135 template <typename LastModifiedDateT = Aws::Utils::DateTime>
136 UpdateDimensionResult& WithLastModifiedDate(LastModifiedDateT&& value) {
137 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
138 return *this;
139 }
141
143
144 inline const Aws::String& GetRequestId() const { return m_requestId; }
145 template <typename RequestIdT = Aws::String>
146 void SetRequestId(RequestIdT&& value) {
147 m_requestIdHasBeenSet = true;
148 m_requestId = std::forward<RequestIdT>(value);
149 }
150 template <typename RequestIdT = Aws::String>
152 SetRequestId(std::forward<RequestIdT>(value));
153 return *this;
154 }
156 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
157
158 private:
159 Aws::String m_name;
160
161 Aws::String m_arn;
162
164
165 Aws::Vector<Aws::String> m_stringValues;
166
167 Aws::Utils::DateTime m_creationDate{};
168
169 Aws::Utils::DateTime m_lastModifiedDate{};
170
171 Aws::String m_requestId;
172 Aws::Http::HttpResponseCode m_HttpResponseCode;
173 bool m_nameHasBeenSet = false;
174 bool m_arnHasBeenSet = false;
175 bool m_typeHasBeenSet = false;
176 bool m_stringValuesHasBeenSet = false;
177 bool m_creationDateHasBeenSet = false;
178 bool m_lastModifiedDateHasBeenSet = false;
179 bool m_requestIdHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace IoT
184} // namespace Aws
void SetStringValues(StringValuesT &&value)
AWS_IOT_API UpdateDimensionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastModifiedDate(LastModifiedDateT &&value)
UpdateDimensionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
UpdateDimensionResult & WithLastModifiedDate(LastModifiedDateT &&value)
UpdateDimensionResult & WithType(DimensionType value)
UpdateDimensionResult & WithName(NameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_IOT_API UpdateDimensionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetStringValues() const
UpdateDimensionResult & WithArn(ArnT &&value)
UpdateDimensionResult & WithCreationDate(CreationDateT &&value)
UpdateDimensionResult & WithStringValues(StringValuesT &&value)
UpdateDimensionResult & AddStringValues(StringValuesT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API UpdateDimensionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue