AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateConfigurationResult.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/mq/MQ_EXPORTS.h>
12#include <aws/mq/model/ConfigurationRevision.h>
13#include <aws/mq/model/SanitizationWarning.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MQ {
27namespace Model {
29 public:
30 AWS_MQ_API UpdateConfigurationResult() = default;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
56 template <typename CreatedT = Aws::Utils::DateTime>
57 void SetCreated(CreatedT&& value) {
58 m_createdHasBeenSet = true;
59 m_created = std::forward<CreatedT>(value);
60 }
61 template <typename CreatedT = Aws::Utils::DateTime>
63 SetCreated(std::forward<CreatedT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetId() const { return m_id; }
73 template <typename IdT = Aws::String>
74 void SetId(IdT&& value) {
75 m_idHasBeenSet = true;
76 m_id = std::forward<IdT>(value);
77 }
78 template <typename IdT = Aws::String>
80 SetId(std::forward<IdT>(value));
81 return *this;
82 }
84
86
89 inline const ConfigurationRevision& GetLatestRevision() const { return m_latestRevision; }
90 template <typename LatestRevisionT = ConfigurationRevision>
91 void SetLatestRevision(LatestRevisionT&& value) {
92 m_latestRevisionHasBeenSet = true;
93 m_latestRevision = std::forward<LatestRevisionT>(value);
94 }
95 template <typename LatestRevisionT = ConfigurationRevision>
97 SetLatestRevision(std::forward<LatestRevisionT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetName() const { return m_name; }
109 template <typename NameT = Aws::String>
110 void SetName(NameT&& value) {
111 m_nameHasBeenSet = true;
112 m_name = std::forward<NameT>(value);
113 }
114 template <typename NameT = Aws::String>
116 SetName(std::forward<NameT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<SanitizationWarning>& GetWarnings() const { return m_warnings; }
127 template <typename WarningsT = Aws::Vector<SanitizationWarning>>
128 void SetWarnings(WarningsT&& value) {
129 m_warningsHasBeenSet = true;
130 m_warnings = std::forward<WarningsT>(value);
131 }
132 template <typename WarningsT = Aws::Vector<SanitizationWarning>>
134 SetWarnings(std::forward<WarningsT>(value));
135 return *this;
136 }
137 template <typename WarningsT = SanitizationWarning>
139 m_warningsHasBeenSet = true;
140 m_warnings.emplace_back(std::forward<WarningsT>(value));
141 return *this;
142 }
144
146
147 inline const Aws::String& GetRequestId() const { return m_requestId; }
148 template <typename RequestIdT = Aws::String>
149 void SetRequestId(RequestIdT&& value) {
150 m_requestIdHasBeenSet = true;
151 m_requestId = std::forward<RequestIdT>(value);
152 }
153 template <typename RequestIdT = Aws::String>
155 SetRequestId(std::forward<RequestIdT>(value));
156 return *this;
157 }
159 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
160
161 private:
162 Aws::String m_arn;
163
164 Aws::Utils::DateTime m_created{};
165
166 Aws::String m_id;
167
168 ConfigurationRevision m_latestRevision;
169
170 Aws::String m_name;
171
173
174 Aws::String m_requestId;
175 Aws::Http::HttpResponseCode m_HttpResponseCode;
176 bool m_arnHasBeenSet = false;
177 bool m_createdHasBeenSet = false;
178 bool m_idHasBeenSet = false;
179 bool m_latestRevisionHasBeenSet = false;
180 bool m_nameHasBeenSet = false;
181 bool m_warningsHasBeenSet = false;
182 bool m_requestIdHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace MQ
187} // namespace Aws
UpdateConfigurationResult & WithCreated(CreatedT &&value)
const ConfigurationRevision & GetLatestRevision() const
UpdateConfigurationResult & WithId(IdT &&value)
UpdateConfigurationResult & AddWarnings(WarningsT &&value)
UpdateConfigurationResult & WithLatestRevision(LatestRevisionT &&value)
UpdateConfigurationResult & WithArn(ArnT &&value)
UpdateConfigurationResult & WithRequestId(RequestIdT &&value)
AWS_MQ_API UpdateConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MQ_API UpdateConfigurationResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateConfigurationResult & WithWarnings(WarningsT &&value)
const Aws::Vector< SanitizationWarning > & GetWarnings() const
UpdateConfigurationResult & WithName(NameT &&value)
AWS_MQ_API UpdateConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreated() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue