AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Api.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/appsync/model/EventConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppSync
25{
26namespace Model
27{
28
37 class Api
38 {
39 public:
40 AWS_APPSYNC_API Api();
41 AWS_APPSYNC_API Api(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSYNC_API Api& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetApiId() const{ return m_apiId; }
51 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
52 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
53 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
54 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
55 inline Api& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
56 inline Api& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
57 inline Api& WithApiId(const char* value) { SetApiId(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Api& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Api& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Api& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetOwnerContact() const{ return m_ownerContact; }
79 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
80 inline void SetOwnerContact(const Aws::String& value) { m_ownerContactHasBeenSet = true; m_ownerContact = value; }
81 inline void SetOwnerContact(Aws::String&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::move(value); }
82 inline void SetOwnerContact(const char* value) { m_ownerContactHasBeenSet = true; m_ownerContact.assign(value); }
83 inline Api& WithOwnerContact(const Aws::String& value) { SetOwnerContact(value); return *this;}
84 inline Api& WithOwnerContact(Aws::String&& value) { SetOwnerContact(std::move(value)); return *this;}
85 inline Api& WithOwnerContact(const char* value) { SetOwnerContact(value); return *this;}
87
89
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline Api& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
95 inline Api& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
96 inline Api& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 inline Api& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
98 inline Api& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline Api& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
100 inline Api& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline Api& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
102 inline Api& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetDns() const{ return m_dns; }
111 inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
112 inline void SetDns(const Aws::Map<Aws::String, Aws::String>& value) { m_dnsHasBeenSet = true; m_dns = value; }
113 inline void SetDns(Aws::Map<Aws::String, Aws::String>&& value) { m_dnsHasBeenSet = true; m_dns = std::move(value); }
114 inline Api& WithDns(const Aws::Map<Aws::String, Aws::String>& value) { SetDns(value); return *this;}
115 inline Api& WithDns(Aws::Map<Aws::String, Aws::String>&& value) { SetDns(std::move(value)); return *this;}
116 inline Api& AddDns(const Aws::String& key, const Aws::String& value) { m_dnsHasBeenSet = true; m_dns.emplace(key, value); return *this; }
117 inline Api& AddDns(Aws::String&& key, const Aws::String& value) { m_dnsHasBeenSet = true; m_dns.emplace(std::move(key), value); return *this; }
118 inline Api& AddDns(const Aws::String& key, Aws::String&& value) { m_dnsHasBeenSet = true; m_dns.emplace(key, std::move(value)); return *this; }
119 inline Api& AddDns(Aws::String&& key, Aws::String&& value) { m_dnsHasBeenSet = true; m_dns.emplace(std::move(key), std::move(value)); return *this; }
120 inline Api& AddDns(const char* key, Aws::String&& value) { m_dnsHasBeenSet = true; m_dns.emplace(key, std::move(value)); return *this; }
121 inline Api& AddDns(Aws::String&& key, const char* value) { m_dnsHasBeenSet = true; m_dns.emplace(std::move(key), value); return *this; }
122 inline Api& AddDns(const char* key, const char* value) { m_dnsHasBeenSet = true; m_dns.emplace(key, value); return *this; }
124
126
129 inline const Aws::String& GetApiArn() const{ return m_apiArn; }
130 inline bool ApiArnHasBeenSet() const { return m_apiArnHasBeenSet; }
131 inline void SetApiArn(const Aws::String& value) { m_apiArnHasBeenSet = true; m_apiArn = value; }
132 inline void SetApiArn(Aws::String&& value) { m_apiArnHasBeenSet = true; m_apiArn = std::move(value); }
133 inline void SetApiArn(const char* value) { m_apiArnHasBeenSet = true; m_apiArn.assign(value); }
134 inline Api& WithApiArn(const Aws::String& value) { SetApiArn(value); return *this;}
135 inline Api& WithApiArn(Aws::String&& value) { SetApiArn(std::move(value)); return *this;}
136 inline Api& WithApiArn(const char* value) { SetApiArn(value); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
144 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
145 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
146 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
147 inline Api& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
148 inline Api& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
150
152
155 inline bool GetXrayEnabled() const{ return m_xrayEnabled; }
156 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
157 inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
158 inline Api& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
160
162
166 inline const Aws::String& GetWafWebAclArn() const{ return m_wafWebAclArn; }
167 inline bool WafWebAclArnHasBeenSet() const { return m_wafWebAclArnHasBeenSet; }
168 inline void SetWafWebAclArn(const Aws::String& value) { m_wafWebAclArnHasBeenSet = true; m_wafWebAclArn = value; }
169 inline void SetWafWebAclArn(Aws::String&& value) { m_wafWebAclArnHasBeenSet = true; m_wafWebAclArn = std::move(value); }
170 inline void SetWafWebAclArn(const char* value) { m_wafWebAclArnHasBeenSet = true; m_wafWebAclArn.assign(value); }
171 inline Api& WithWafWebAclArn(const Aws::String& value) { SetWafWebAclArn(value); return *this;}
172 inline Api& WithWafWebAclArn(Aws::String&& value) { SetWafWebAclArn(std::move(value)); return *this;}
173 inline Api& WithWafWebAclArn(const char* value) { SetWafWebAclArn(value); return *this;}
175
177
181 inline const EventConfig& GetEventConfig() const{ return m_eventConfig; }
182 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
183 inline void SetEventConfig(const EventConfig& value) { m_eventConfigHasBeenSet = true; m_eventConfig = value; }
184 inline void SetEventConfig(EventConfig&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::move(value); }
185 inline Api& WithEventConfig(const EventConfig& value) { SetEventConfig(value); return *this;}
186 inline Api& WithEventConfig(EventConfig&& value) { SetEventConfig(std::move(value)); return *this;}
188 private:
189
190 Aws::String m_apiId;
191 bool m_apiIdHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_ownerContact;
197 bool m_ownerContactHasBeenSet = false;
198
200 bool m_tagsHasBeenSet = false;
201
203 bool m_dnsHasBeenSet = false;
204
205 Aws::String m_apiArn;
206 bool m_apiArnHasBeenSet = false;
207
208 Aws::Utils::DateTime m_created;
209 bool m_createdHasBeenSet = false;
210
211 bool m_xrayEnabled;
212 bool m_xrayEnabledHasBeenSet = false;
213
214 Aws::String m_wafWebAclArn;
215 bool m_wafWebAclArnHasBeenSet = false;
216
217 EventConfig m_eventConfig;
218 bool m_eventConfigHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace AppSync
223} // namespace Aws
bool XrayEnabledHasBeenSet() const
Definition Api.h:156
Api & AddDns(const Aws::String &key, const Aws::String &value)
Definition Api.h:116
void SetCreated(const Aws::Utils::DateTime &value)
Definition Api.h:145
Api & WithDns(Aws::Map< Aws::String, Aws::String > &&value)
Definition Api.h:115
const Aws::String & GetApiId() const
Definition Api.h:50
void SetApiId(Aws::String &&value)
Definition Api.h:53
Api & AddDns(Aws::String &&key, Aws::String &&value)
Definition Api.h:119
Api & WithEventConfig(const EventConfig &value)
Definition Api.h:185
Api & AddDns(Aws::String &&key, const char *value)
Definition Api.h:121
Api & WithWafWebAclArn(Aws::String &&value)
Definition Api.h:172
Api & AddTags(const char *key, const char *value)
Definition Api.h:102
void SetDns(const Aws::Map< Aws::String, Aws::String > &value)
Definition Api.h:112
bool EventConfigHasBeenSet() const
Definition Api.h:182
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Api.h:90
Api & AddTags(const char *key, Aws::String &&value)
Definition Api.h:100
void SetApiId(const Aws::String &value)
Definition Api.h:52
const Aws::String & GetName() const
Definition Api.h:64
void SetDns(Aws::Map< Aws::String, Aws::String > &&value)
Definition Api.h:113
void SetApiArn(Aws::String &&value)
Definition Api.h:132
Api & WithName(const char *value)
Definition Api.h:71
void SetApiArn(const char *value)
Definition Api.h:133
void SetName(Aws::String &&value)
Definition Api.h:67
Api & WithName(const Aws::String &value)
Definition Api.h:69
void SetOwnerContact(const Aws::String &value)
Definition Api.h:80
bool NameHasBeenSet() const
Definition Api.h:65
const Aws::String & GetOwnerContact() const
Definition Api.h:78
const Aws::String & GetApiArn() const
Definition Api.h:129
Api & WithXrayEnabled(bool value)
Definition Api.h:158
Api & WithEventConfig(EventConfig &&value)
Definition Api.h:186
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Api.h:92
Api & WithOwnerContact(const Aws::String &value)
Definition Api.h:83
Api & WithCreated(Aws::Utils::DateTime &&value)
Definition Api.h:148
Api & AddTags(Aws::String &&key, const Aws::String &value)
Definition Api.h:97
bool ApiArnHasBeenSet() const
Definition Api.h:130
void SetName(const char *value)
Definition Api.h:68
bool OwnerContactHasBeenSet() const
Definition Api.h:79
Api & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Api.h:94
void SetCreated(Aws::Utils::DateTime &&value)
Definition Api.h:146
Api & WithApiArn(const Aws::String &value)
Definition Api.h:134
Api & AddDns(const Aws::String &key, Aws::String &&value)
Definition Api.h:118
Api & WithCreated(const Aws::Utils::DateTime &value)
Definition Api.h:147
Api & WithName(Aws::String &&value)
Definition Api.h:70
bool WafWebAclArnHasBeenSet() const
Definition Api.h:167
Api & WithOwnerContact(Aws::String &&value)
Definition Api.h:84
Api & WithWafWebAclArn(const char *value)
Definition Api.h:173
Api & WithApiArn(Aws::String &&value)
Definition Api.h:135
Api & WithApiId(Aws::String &&value)
Definition Api.h:56
Api & AddDns(const char *key, Aws::String &&value)
Definition Api.h:120
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
Api & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Api.h:95
Api & AddDns(const char *key, const char *value)
Definition Api.h:122
const EventConfig & GetEventConfig() const
Definition Api.h:181
bool ApiIdHasBeenSet() const
Definition Api.h:51
bool DnsHasBeenSet() const
Definition Api.h:111
void SetEventConfig(const EventConfig &value)
Definition Api.h:183
const Aws::Map< Aws::String, Aws::String > & GetDns() const
Definition Api.h:110
Api & WithApiId(const Aws::String &value)
Definition Api.h:55
void SetWafWebAclArn(Aws::String &&value)
Definition Api.h:169
void SetName(const Aws::String &value)
Definition Api.h:66
Api & AddTags(Aws::String &&key, Aws::String &&value)
Definition Api.h:99
const Aws::String & GetWafWebAclArn() const
Definition Api.h:166
void SetApiArn(const Aws::String &value)
Definition Api.h:131
void SetApiId(const char *value)
Definition Api.h:54
bool TagsHasBeenSet() const
Definition Api.h:91
void SetWafWebAclArn(const char *value)
Definition Api.h:170
bool CreatedHasBeenSet() const
Definition Api.h:144
Api & WithWafWebAclArn(const Aws::String &value)
Definition Api.h:171
Api & AddTags(Aws::String &&key, const char *value)
Definition Api.h:101
void SetWafWebAclArn(const Aws::String &value)
Definition Api.h:168
void SetOwnerContact(Aws::String &&value)
Definition Api.h:81
AWS_APPSYNC_API Api()
void SetXrayEnabled(bool value)
Definition Api.h:157
void SetEventConfig(EventConfig &&value)
Definition Api.h:184
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Api.h:93
void SetOwnerContact(const char *value)
Definition Api.h:82
Api & WithOwnerContact(const char *value)
Definition Api.h:85
bool GetXrayEnabled() const
Definition Api.h:155
Api & AddDns(Aws::String &&key, const Aws::String &value)
Definition Api.h:117
const Aws::Utils::DateTime & GetCreated() const
Definition Api.h:143
Api & WithApiArn(const char *value)
Definition Api.h:136
Api & WithApiId(const char *value)
Definition Api.h:57
AWS_APPSYNC_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
Api & WithDns(const Aws::Map< Aws::String, Aws::String > &value)
Definition Api.h:114
Api & AddTags(const Aws::String &key, const Aws::String &value)
Definition Api.h:96
Api & AddTags(const Aws::String &key, Aws::String &&value)
Definition Api.h:98
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