AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AliasSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AliasType.h>
9#include <aws/amplifygen3/model/RoutingConfigEntry.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyGen3 {
24namespace Model {
25
32 public:
33 AWS_AMPLIFYGEN3_API AliasSummary() = default;
34 AWS_AMPLIFYGEN3_API AliasSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYGEN3_API AliasSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAliasName() const { return m_aliasName; }
43 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
44 template <typename AliasNameT = Aws::String>
45 void SetAliasName(AliasNameT&& value) {
46 m_aliasNameHasBeenSet = true;
47 m_aliasName = std::forward<AliasNameT>(value);
48 }
49 template <typename AliasNameT = Aws::String>
50 AliasSummary& WithAliasName(AliasNameT&& value) {
51 SetAliasName(std::forward<AliasNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAliasArn() const { return m_aliasArn; }
61 inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
62 template <typename AliasArnT = Aws::String>
63 void SetAliasArn(AliasArnT&& value) {
64 m_aliasArnHasBeenSet = true;
65 m_aliasArn = std::forward<AliasArnT>(value);
66 }
67 template <typename AliasArnT = Aws::String>
68 AliasSummary& WithAliasArn(AliasArnT&& value) {
69 SetAliasArn(std::forward<AliasArnT>(value));
70 return *this;
71 }
73
75
78 inline AliasType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(AliasType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
85 SetType(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetUrl() const { return m_url; }
95 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
96 template <typename UrlT = Aws::String>
97 void SetUrl(UrlT&& value) {
98 m_urlHasBeenSet = true;
99 m_url = std::forward<UrlT>(value);
100 }
101 template <typename UrlT = Aws::String>
102 AliasSummary& WithUrl(UrlT&& value) {
103 SetUrl(std::forward<UrlT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<RoutingConfigEntry>& GetRoutingConfig() const { return m_routingConfig; }
113 inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; }
114 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
115 void SetRoutingConfig(RoutingConfigT&& value) {
116 m_routingConfigHasBeenSet = true;
117 m_routingConfig = std::forward<RoutingConfigT>(value);
118 }
119 template <typename RoutingConfigT = Aws::Vector<RoutingConfigEntry>>
120 AliasSummary& WithRoutingConfig(RoutingConfigT&& value) {
121 SetRoutingConfig(std::forward<RoutingConfigT>(value));
122 return *this;
123 }
124 template <typename RoutingConfigT = RoutingConfigEntry>
125 AliasSummary& AddRoutingConfig(RoutingConfigT&& value) {
126 m_routingConfigHasBeenSet = true;
127 m_routingConfig.emplace_back(std::forward<RoutingConfigT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
137 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 void SetCreatedAt(CreatedAtT&& value) {
140 m_createdAtHasBeenSet = true;
141 m_createdAt = std::forward<CreatedAtT>(value);
142 }
143 template <typename CreatedAtT = Aws::Utils::DateTime>
144 AliasSummary& WithCreatedAt(CreatedAtT&& value) {
145 SetCreatedAt(std::forward<CreatedAtT>(value));
146 return *this;
147 }
149
151
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
156 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
157 template <typename UpdatedAtT = Aws::Utils::DateTime>
158 void SetUpdatedAt(UpdatedAtT&& value) {
159 m_updatedAtHasBeenSet = true;
160 m_updatedAt = std::forward<UpdatedAtT>(value);
161 }
162 template <typename UpdatedAtT = Aws::Utils::DateTime>
163 AliasSummary& WithUpdatedAt(UpdatedAtT&& value) {
164 SetUpdatedAt(std::forward<UpdatedAtT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_aliasName;
170
171 Aws::String m_aliasArn;
172
174
175 Aws::String m_url;
176
177 Aws::Vector<RoutingConfigEntry> m_routingConfig;
178
179 Aws::Utils::DateTime m_createdAt{};
180
181 Aws::Utils::DateTime m_updatedAt{};
182 bool m_aliasNameHasBeenSet = false;
183 bool m_aliasArnHasBeenSet = false;
184 bool m_typeHasBeenSet = false;
185 bool m_urlHasBeenSet = false;
186 bool m_routingConfigHasBeenSet = false;
187 bool m_createdAtHasBeenSet = false;
188 bool m_updatedAtHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace AmplifyGen3
193} // namespace Aws
AliasSummary & AddRoutingConfig(RoutingConfigT &&value)
AliasSummary & WithRoutingConfig(RoutingConfigT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdatedAt(UpdatedAtT &&value)
AliasSummary & WithAliasName(AliasNameT &&value)
const Aws::String & GetAliasName() const
AWS_AMPLIFYGEN3_API AliasSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAliasName(AliasNameT &&value)
void SetAliasArn(AliasArnT &&value)
AWS_AMPLIFYGEN3_API AliasSummary()=default
AliasSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetAliasArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AliasSummary & WithUrl(UrlT &&value)
AWS_AMPLIFYGEN3_API AliasSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRoutingConfig(RoutingConfigT &&value)
const Aws::String & GetUrl() const
AliasSummary & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
AliasSummary & WithType(AliasType value)
const Aws::Vector< RoutingConfigEntry > & GetRoutingConfig() const
AliasSummary & WithAliasArn(AliasArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue