AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Api.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/EventConfig.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
24
33class Api {
34 public:
35 AWS_APPSYNC_API Api() = default;
36 AWS_APPSYNC_API Api(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSYNC_API Api& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetApiId() const { return m_apiId; }
45 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
46 template <typename ApiIdT = Aws::String>
47 void SetApiId(ApiIdT&& value) {
48 m_apiIdHasBeenSet = true;
49 m_apiId = std::forward<ApiIdT>(value);
50 }
51 template <typename ApiIdT = Aws::String>
52 Api& WithApiId(ApiIdT&& value) {
53 SetApiId(std::forward<ApiIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Api& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
81 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
82 template <typename OwnerContactT = Aws::String>
83 void SetOwnerContact(OwnerContactT&& value) {
84 m_ownerContactHasBeenSet = true;
85 m_ownerContact = std::forward<OwnerContactT>(value);
86 }
87 template <typename OwnerContactT = Aws::String>
88 Api& WithOwnerContact(OwnerContactT&& value) {
89 SetOwnerContact(std::forward<OwnerContactT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 Api& WithTags(TagsT&& value) {
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
109 Api& AddTags(TagsKeyT&& key, TagsValueT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Map<Aws::String, Aws::String>& GetDns() const { return m_dns; }
122 inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
123 template <typename DnsT = Aws::Map<Aws::String, Aws::String>>
124 void SetDns(DnsT&& value) {
125 m_dnsHasBeenSet = true;
126 m_dns = std::forward<DnsT>(value);
127 }
128 template <typename DnsT = Aws::Map<Aws::String, Aws::String>>
129 Api& WithDns(DnsT&& value) {
130 SetDns(std::forward<DnsT>(value));
131 return *this;
132 }
133 template <typename DnsKeyT = Aws::String, typename DnsValueT = Aws::String>
134 Api& AddDns(DnsKeyT&& key, DnsValueT&& value) {
135 m_dnsHasBeenSet = true;
136 m_dns.emplace(std::forward<DnsKeyT>(key), std::forward<DnsValueT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetApiArn() const { return m_apiArn; }
146 inline bool ApiArnHasBeenSet() const { return m_apiArnHasBeenSet; }
147 template <typename ApiArnT = Aws::String>
148 void SetApiArn(ApiArnT&& value) {
149 m_apiArnHasBeenSet = true;
150 m_apiArn = std::forward<ApiArnT>(value);
151 }
152 template <typename ApiArnT = Aws::String>
153 Api& WithApiArn(ApiArnT&& value) {
154 SetApiArn(std::forward<ApiArnT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
164 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
165 template <typename CreatedT = Aws::Utils::DateTime>
166 void SetCreated(CreatedT&& value) {
167 m_createdHasBeenSet = true;
168 m_created = std::forward<CreatedT>(value);
169 }
170 template <typename CreatedT = Aws::Utils::DateTime>
171 Api& WithCreated(CreatedT&& value) {
172 SetCreated(std::forward<CreatedT>(value));
173 return *this;
174 }
176
178
181 inline bool GetXrayEnabled() const { return m_xrayEnabled; }
182 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
183 inline void SetXrayEnabled(bool value) {
184 m_xrayEnabledHasBeenSet = true;
185 m_xrayEnabled = value;
186 }
187 inline Api& WithXrayEnabled(bool value) {
188 SetXrayEnabled(value);
189 return *this;
190 }
192
194
198 inline const Aws::String& GetWafWebAclArn() const { return m_wafWebAclArn; }
199 inline bool WafWebAclArnHasBeenSet() const { return m_wafWebAclArnHasBeenSet; }
200 template <typename WafWebAclArnT = Aws::String>
201 void SetWafWebAclArn(WafWebAclArnT&& value) {
202 m_wafWebAclArnHasBeenSet = true;
203 m_wafWebAclArn = std::forward<WafWebAclArnT>(value);
204 }
205 template <typename WafWebAclArnT = Aws::String>
206 Api& WithWafWebAclArn(WafWebAclArnT&& value) {
207 SetWafWebAclArn(std::forward<WafWebAclArnT>(value));
208 return *this;
209 }
211
213
217 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
218 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
219 template <typename EventConfigT = EventConfig>
220 void SetEventConfig(EventConfigT&& value) {
221 m_eventConfigHasBeenSet = true;
222 m_eventConfig = std::forward<EventConfigT>(value);
223 }
224 template <typename EventConfigT = EventConfig>
225 Api& WithEventConfig(EventConfigT&& value) {
226 SetEventConfig(std::forward<EventConfigT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_apiId;
232
233 Aws::String m_name;
234
235 Aws::String m_ownerContact;
236
238
240
241 Aws::String m_apiArn;
242
243 Aws::Utils::DateTime m_created{};
244
245 bool m_xrayEnabled{false};
246
247 Aws::String m_wafWebAclArn;
248
249 EventConfig m_eventConfig;
250 bool m_apiIdHasBeenSet = false;
251 bool m_nameHasBeenSet = false;
252 bool m_ownerContactHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254 bool m_dnsHasBeenSet = false;
255 bool m_apiArnHasBeenSet = false;
256 bool m_createdHasBeenSet = false;
257 bool m_xrayEnabledHasBeenSet = false;
258 bool m_wafWebAclArnHasBeenSet = false;
259 bool m_eventConfigHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace AppSync
264} // namespace Aws
Api & WithOwnerContact(OwnerContactT &&value)
Definition Api.h:88
bool XrayEnabledHasBeenSet() const
Definition Api.h:182
Api & WithEventConfig(EventConfigT &&value)
Definition Api.h:225
const Aws::String & GetApiId() const
Definition Api.h:44
void SetCreated(CreatedT &&value)
Definition Api.h:166
bool EventConfigHasBeenSet() const
Definition Api.h:218
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Api.h:96
const Aws::String & GetName() const
Definition Api.h:62
Api & WithName(NameT &&value)
Definition Api.h:70
Api & WithDns(DnsT &&value)
Definition Api.h:129
void SetApiId(ApiIdT &&value)
Definition Api.h:47
bool NameHasBeenSet() const
Definition Api.h:63
Api & AddDns(DnsKeyT &&key, DnsValueT &&value)
Definition Api.h:134
const Aws::String & GetOwnerContact() const
Definition Api.h:80
const Aws::String & GetApiArn() const
Definition Api.h:145
Api & WithXrayEnabled(bool value)
Definition Api.h:187
Api & WithCreated(CreatedT &&value)
Definition Api.h:171
bool ApiArnHasBeenSet() const
Definition Api.h:146
void SetName(NameT &&value)
Definition Api.h:65
bool OwnerContactHasBeenSet() const
Definition Api.h:81
void SetWafWebAclArn(WafWebAclArnT &&value)
Definition Api.h:201
bool WafWebAclArnHasBeenSet() const
Definition Api.h:199
AWS_APPSYNC_API Api()=default
Api & WithTags(TagsT &&value)
Definition Api.h:104
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const EventConfig & GetEventConfig() const
Definition Api.h:217
bool ApiIdHasBeenSet() const
Definition Api.h:45
bool DnsHasBeenSet() const
Definition Api.h:122
const Aws::Map< Aws::String, Aws::String > & GetDns() const
Definition Api.h:121
void SetApiArn(ApiArnT &&value)
Definition Api.h:148
Api & WithApiArn(ApiArnT &&value)
Definition Api.h:153
Api & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Api.h:109
Api & WithWafWebAclArn(WafWebAclArnT &&value)
Definition Api.h:206
const Aws::String & GetWafWebAclArn() const
Definition Api.h:198
bool TagsHasBeenSet() const
Definition Api.h:97
bool CreatedHasBeenSet() const
Definition Api.h:164
void SetXrayEnabled(bool value)
Definition Api.h:183
void SetTags(TagsT &&value)
Definition Api.h:99
void SetOwnerContact(OwnerContactT &&value)
Definition Api.h:83
bool GetXrayEnabled() const
Definition Api.h:181
const Aws::Utils::DateTime & GetCreated() const
Definition Api.h:163
void SetEventConfig(EventConfigT &&value)
Definition Api.h:220
Api & WithApiId(ApiIdT &&value)
Definition Api.h:52
AWS_APPSYNC_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDns(DnsT &&value)
Definition Api.h:124
AWS_APPSYNC_API Api(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue