AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetAliasResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AliasType.h>
9#include <aws/amplifygen3/model/GradualRolloutConfig.h>
10#include <aws/amplifygen3/model/GradualRolloutState.h>
11#include <aws/amplifygen3/model/RoutingConfigEntry.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace AmplifyGen3 {
29namespace Model {
31 public:
32 AWS_AMPLIFYGEN3_API GetAliasResult() = default;
35
37
40 inline const Aws::String& GetAliasName() const { return m_aliasName; }
41 template <typename AliasNameT = Aws::String>
42 void SetAliasName(AliasNameT&& value) {
43 m_aliasNameHasBeenSet = true;
44 m_aliasName = std::forward<AliasNameT>(value);
45 }
46 template <typename AliasNameT = Aws::String>
47 GetAliasResult& WithAliasName(AliasNameT&& value) {
48 SetAliasName(std::forward<AliasNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAliasArn() const { return m_aliasArn; }
58 template <typename AliasArnT = Aws::String>
59 void SetAliasArn(AliasArnT&& value) {
60 m_aliasArnHasBeenSet = true;
61 m_aliasArn = std::forward<AliasArnT>(value);
62 }
63 template <typename AliasArnT = Aws::String>
64 GetAliasResult& WithAliasArn(AliasArnT&& value) {
65 SetAliasArn(std::forward<AliasArnT>(value));
66 return *this;
67 }
69
71
74 inline AliasType GetType() const { return m_type; }
75 inline void SetType(AliasType value) {
76 m_typeHasBeenSet = true;
77 m_type = value;
78 }
80 SetType(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetUrl() const { return m_url; }
90 template <typename UrlT = Aws::String>
91 void SetUrl(UrlT&& value) {
92 m_urlHasBeenSet = true;
93 m_url = std::forward<UrlT>(value);
94 }
95 template <typename UrlT = Aws::String>
96 GetAliasResult& WithUrl(UrlT&& value) {
97 SetUrl(std::forward<UrlT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Vector<RoutingConfigEntry>& GetRoutingConfig() const { return m_routingConfig; }
107 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
108 void SetRoutingConfig(RoutingConfigT&& value) {
109 m_routingConfigHasBeenSet = true;
110 m_routingConfig = std::forward<RoutingConfigT>(value);
111 }
112 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
113 GetAliasResult& WithRoutingConfig(RoutingConfigT&& value) {
114 SetRoutingConfig(std::forward<RoutingConfigT>(value));
115 return *this;
116 }
117 template <typename RoutingConfigT = RoutingConfigEntry>
118 GetAliasResult& AddRoutingConfig(RoutingConfigT&& value) {
119 m_routingConfigHasBeenSet = true;
120 m_routingConfig.emplace_back(std::forward<RoutingConfigT>(value));
121 return *this;
122 }
124
126
129 inline const GradualRolloutConfig& GetGradualRolloutConfig() const { return m_gradualRolloutConfig; }
130 template <typename GradualRolloutConfigT = GradualRolloutConfig>
131 void SetGradualRolloutConfig(GradualRolloutConfigT&& value) {
132 m_gradualRolloutConfigHasBeenSet = true;
133 m_gradualRolloutConfig = std::forward<GradualRolloutConfigT>(value);
134 }
135 template <typename GradualRolloutConfigT = GradualRolloutConfig>
136 GetAliasResult& WithGradualRolloutConfig(GradualRolloutConfigT&& value) {
137 SetGradualRolloutConfig(std::forward<GradualRolloutConfigT>(value));
138 return *this;
139 }
141
143
146 inline const GradualRolloutState& GetGradualRolloutState() const { return m_gradualRolloutState; }
147 template <typename GradualRolloutStateT = GradualRolloutState>
148 void SetGradualRolloutState(GradualRolloutStateT&& value) {
149 m_gradualRolloutStateHasBeenSet = true;
150 m_gradualRolloutState = std::forward<GradualRolloutStateT>(value);
151 }
152 template <typename GradualRolloutStateT = GradualRolloutState>
153 GetAliasResult& WithGradualRolloutState(GradualRolloutStateT&& value) {
154 SetGradualRolloutState(std::forward<GradualRolloutStateT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
164 template <typename CreatedAtT = Aws::Utils::DateTime>
165 void SetCreatedAt(CreatedAtT&& value) {
166 m_createdAtHasBeenSet = true;
167 m_createdAt = std::forward<CreatedAtT>(value);
168 }
169 template <typename CreatedAtT = Aws::Utils::DateTime>
170 GetAliasResult& WithCreatedAt(CreatedAtT&& value) {
171 SetCreatedAt(std::forward<CreatedAtT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 void SetUpdatedAt(UpdatedAtT&& value) {
184 m_updatedAtHasBeenSet = true;
185 m_updatedAt = std::forward<UpdatedAtT>(value);
186 }
187 template <typename UpdatedAtT = Aws::Utils::DateTime>
188 GetAliasResult& WithUpdatedAt(UpdatedAtT&& value) {
189 SetUpdatedAt(std::forward<UpdatedAtT>(value));
190 return *this;
191 }
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
203 GetAliasResult& WithRequestId(RequestIdT&& value) {
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
209
210 private:
211 Aws::String m_aliasName;
212
213 Aws::String m_aliasArn;
214
216
217 Aws::String m_url;
218
219 Aws::Vector<RoutingConfigEntry> m_routingConfig;
220
221 GradualRolloutConfig m_gradualRolloutConfig;
222
223 GradualRolloutState m_gradualRolloutState;
224
225 Aws::Utils::DateTime m_createdAt{};
226
227 Aws::Utils::DateTime m_updatedAt{};
228
229 Aws::String m_requestId;
230 Aws::Http::HttpResponseCode m_HttpResponseCode;
231 bool m_aliasNameHasBeenSet = false;
232 bool m_aliasArnHasBeenSet = false;
233 bool m_typeHasBeenSet = false;
234 bool m_urlHasBeenSet = false;
235 bool m_routingConfigHasBeenSet = false;
236 bool m_gradualRolloutConfigHasBeenSet = false;
237 bool m_gradualRolloutStateHasBeenSet = false;
238 bool m_createdAtHasBeenSet = false;
239 bool m_updatedAtHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace AmplifyGen3
245} // namespace Aws
void SetAliasName(AliasNameT &&value)
void SetGradualRolloutState(GradualRolloutStateT &&value)
const GradualRolloutState & GetGradualRolloutState() const
GetAliasResult & AddRoutingConfig(RoutingConfigT &&value)
const Aws::String & GetRequestId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetAliasResult & WithAliasName(AliasNameT &&value)
const Aws::String & GetUrl() const
GetAliasResult & WithGradualRolloutState(GradualRolloutStateT &&value)
GetAliasResult & WithAliasArn(AliasArnT &&value)
GetAliasResult & WithUpdatedAt(UpdatedAtT &&value)
GetAliasResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetAliasName() const
const Aws::String & GetAliasArn() const
GetAliasResult & WithType(AliasType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< RoutingConfigEntry > & GetRoutingConfig() const
void SetRoutingConfig(RoutingConfigT &&value)
GetAliasResult & WithCreatedAt(CreatedAtT &&value)
const GradualRolloutConfig & GetGradualRolloutConfig() const
GetAliasResult & WithGradualRolloutConfig(GradualRolloutConfigT &&value)
GetAliasResult & WithRoutingConfig(RoutingConfigT &&value)
GetAliasResult & WithUrl(UrlT &&value)
void SetGradualRolloutConfig(GradualRolloutConfigT &&value)
AWS_AMPLIFYGEN3_API GetAliasResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_AMPLIFYGEN3_API GetAliasResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_AMPLIFYGEN3_API GetAliasResult()=default
const Aws::Utils::DateTime & GetCreatedAt() 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