AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApiIdT = Aws::String>
53 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
54 template<typename ApiIdT = Aws::String>
55 Api& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Api& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetOwnerContact() const { return m_ownerContact; }
75 inline bool OwnerContactHasBeenSet() const { return m_ownerContactHasBeenSet; }
76 template<typename OwnerContactT = Aws::String>
77 void SetOwnerContact(OwnerContactT&& value) { m_ownerContactHasBeenSet = true; m_ownerContact = std::forward<OwnerContactT>(value); }
78 template<typename OwnerContactT = Aws::String>
79 Api& WithOwnerContact(OwnerContactT&& value) { SetOwnerContact(std::forward<OwnerContactT>(value)); return *this;}
81
83
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 Api& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 Api& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
93 }
95
97
101 inline const Aws::Map<Aws::String, Aws::String>& GetDns() const { return m_dns; }
102 inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
103 template<typename DnsT = Aws::Map<Aws::String, Aws::String>>
104 void SetDns(DnsT&& value) { m_dnsHasBeenSet = true; m_dns = std::forward<DnsT>(value); }
105 template<typename DnsT = Aws::Map<Aws::String, Aws::String>>
106 Api& WithDns(DnsT&& value) { SetDns(std::forward<DnsT>(value)); return *this;}
107 template<typename DnsKeyT = Aws::String, typename DnsValueT = Aws::String>
108 Api& AddDns(DnsKeyT&& key, DnsValueT&& value) {
109 m_dnsHasBeenSet = true; m_dns.emplace(std::forward<DnsKeyT>(key), std::forward<DnsValueT>(value)); return *this;
110 }
112
114
117 inline const Aws::String& GetApiArn() const { return m_apiArn; }
118 inline bool ApiArnHasBeenSet() const { return m_apiArnHasBeenSet; }
119 template<typename ApiArnT = Aws::String>
120 void SetApiArn(ApiArnT&& value) { m_apiArnHasBeenSet = true; m_apiArn = std::forward<ApiArnT>(value); }
121 template<typename ApiArnT = Aws::String>
122 Api& WithApiArn(ApiArnT&& value) { SetApiArn(std::forward<ApiArnT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
130 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
131 template<typename CreatedT = Aws::Utils::DateTime>
132 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
133 template<typename CreatedT = Aws::Utils::DateTime>
134 Api& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
136
138
141 inline bool GetXrayEnabled() const { return m_xrayEnabled; }
142 inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
143 inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
144 inline Api& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
146
148
152 inline const Aws::String& GetWafWebAclArn() const { return m_wafWebAclArn; }
153 inline bool WafWebAclArnHasBeenSet() const { return m_wafWebAclArnHasBeenSet; }
154 template<typename WafWebAclArnT = Aws::String>
155 void SetWafWebAclArn(WafWebAclArnT&& value) { m_wafWebAclArnHasBeenSet = true; m_wafWebAclArn = std::forward<WafWebAclArnT>(value); }
156 template<typename WafWebAclArnT = Aws::String>
157 Api& WithWafWebAclArn(WafWebAclArnT&& value) { SetWafWebAclArn(std::forward<WafWebAclArnT>(value)); return *this;}
159
161
165 inline const EventConfig& GetEventConfig() const { return m_eventConfig; }
166 inline bool EventConfigHasBeenSet() const { return m_eventConfigHasBeenSet; }
167 template<typename EventConfigT = EventConfig>
168 void SetEventConfig(EventConfigT&& value) { m_eventConfigHasBeenSet = true; m_eventConfig = std::forward<EventConfigT>(value); }
169 template<typename EventConfigT = EventConfig>
170 Api& WithEventConfig(EventConfigT&& value) { SetEventConfig(std::forward<EventConfigT>(value)); return *this;}
172 private:
173
174 Aws::String m_apiId;
175 bool m_apiIdHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_ownerContact;
181 bool m_ownerContactHasBeenSet = false;
182
184 bool m_tagsHasBeenSet = false;
185
187 bool m_dnsHasBeenSet = false;
188
189 Aws::String m_apiArn;
190 bool m_apiArnHasBeenSet = false;
191
192 Aws::Utils::DateTime m_created{};
193 bool m_createdHasBeenSet = false;
194
195 bool m_xrayEnabled{false};
196 bool m_xrayEnabledHasBeenSet = false;
197
198 Aws::String m_wafWebAclArn;
199 bool m_wafWebAclArnHasBeenSet = false;
200
201 EventConfig m_eventConfig;
202 bool m_eventConfigHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace AppSync
207} // namespace Aws
Api & WithOwnerContact(OwnerContactT &&value)
Definition Api.h:79
bool XrayEnabledHasBeenSet() const
Definition Api.h:142
Api & WithEventConfig(EventConfigT &&value)
Definition Api.h:170
const Aws::String & GetApiId() const
Definition Api.h:50
void SetCreated(CreatedT &&value)
Definition Api.h:132
bool EventConfigHasBeenSet() const
Definition Api.h:166
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Api.h:84
const Aws::String & GetName() const
Definition Api.h:62
Api & WithName(NameT &&value)
Definition Api.h:67
Api & WithDns(DnsT &&value)
Definition Api.h:106
void SetApiId(ApiIdT &&value)
Definition Api.h:53
bool NameHasBeenSet() const
Definition Api.h:63
Api & AddDns(DnsKeyT &&key, DnsValueT &&value)
Definition Api.h:108
const Aws::String & GetOwnerContact() const
Definition Api.h:74
const Aws::String & GetApiArn() const
Definition Api.h:117
Api & WithXrayEnabled(bool value)
Definition Api.h:144
Api & WithCreated(CreatedT &&value)
Definition Api.h:134
bool ApiArnHasBeenSet() const
Definition Api.h:118
void SetName(NameT &&value)
Definition Api.h:65
bool OwnerContactHasBeenSet() const
Definition Api.h:75
void SetWafWebAclArn(WafWebAclArnT &&value)
Definition Api.h:155
bool WafWebAclArnHasBeenSet() const
Definition Api.h:153
AWS_APPSYNC_API Api()=default
Api & WithTags(TagsT &&value)
Definition Api.h:89
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const EventConfig & GetEventConfig() const
Definition Api.h:165
bool ApiIdHasBeenSet() const
Definition Api.h:51
bool DnsHasBeenSet() const
Definition Api.h:102
const Aws::Map< Aws::String, Aws::String > & GetDns() const
Definition Api.h:101
void SetApiArn(ApiArnT &&value)
Definition Api.h:120
Api & WithApiArn(ApiArnT &&value)
Definition Api.h:122
Api & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Api.h:91
Api & WithWafWebAclArn(WafWebAclArnT &&value)
Definition Api.h:157
const Aws::String & GetWafWebAclArn() const
Definition Api.h:152
bool TagsHasBeenSet() const
Definition Api.h:85
bool CreatedHasBeenSet() const
Definition Api.h:130
void SetXrayEnabled(bool value)
Definition Api.h:143
void SetTags(TagsT &&value)
Definition Api.h:87
void SetOwnerContact(OwnerContactT &&value)
Definition Api.h:77
bool GetXrayEnabled() const
Definition Api.h:141
const Aws::Utils::DateTime & GetCreated() const
Definition Api.h:129
void SetEventConfig(EventConfigT &&value)
Definition Api.h:168
Api & WithApiId(ApiIdT &&value)
Definition Api.h:55
AWS_APPSYNC_API Api & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDns(DnsT &&value)
Definition Api.h:104
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