AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
VpcLink.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/VpcLinkStatus.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway {
23namespace Model {
24
31class VpcLink {
32 public:
33 AWS_APIGATEWAY_API VpcLink() = default;
34 AWS_APIGATEWAY_API VpcLink(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAY_API VpcLink& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 VpcLink& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 VpcLink& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 VpcLink& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<Aws::String>& GetTargetArns() const { return m_targetArns; }
100 inline bool TargetArnsHasBeenSet() const { return m_targetArnsHasBeenSet; }
101 template <typename TargetArnsT = Aws::Vector<Aws::String>>
102 void SetTargetArns(TargetArnsT&& value) {
103 m_targetArnsHasBeenSet = true;
104 m_targetArns = std::forward<TargetArnsT>(value);
105 }
106 template <typename TargetArnsT = Aws::Vector<Aws::String>>
107 VpcLink& WithTargetArns(TargetArnsT&& value) {
108 SetTargetArns(std::forward<TargetArnsT>(value));
109 return *this;
110 }
111 template <typename TargetArnsT = Aws::String>
112 VpcLink& AddTargetArns(TargetArnsT&& value) {
113 m_targetArnsHasBeenSet = true;
114 m_targetArns.emplace_back(std::forward<TargetArnsT>(value));
115 return *this;
116 }
118
120
126 inline VpcLinkStatus GetStatus() const { return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(VpcLinkStatus value) {
129 m_statusHasBeenSet = true;
130 m_status = value;
131 }
133 SetStatus(value);
134 return *this;
135 }
137
139
142 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
143 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
144 template <typename StatusMessageT = Aws::String>
145 void SetStatusMessage(StatusMessageT&& value) {
146 m_statusMessageHasBeenSet = true;
147 m_statusMessage = std::forward<StatusMessageT>(value);
148 }
149 template <typename StatusMessageT = Aws::String>
150 VpcLink& WithStatusMessage(StatusMessageT&& value) {
151 SetStatusMessage(std::forward<StatusMessageT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 VpcLink& WithTags(TagsT&& value) {
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 VpcLink& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
177 return *this;
178 }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
185 template <typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) {
187 m_requestIdHasBeenSet = true;
188 m_requestId = std::forward<RequestIdT>(value);
189 }
190 template <typename RequestIdT = Aws::String>
191 VpcLink& WithRequestId(RequestIdT&& value) {
192 SetRequestId(std::forward<RequestIdT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_id;
198
199 Aws::String m_name;
200
201 Aws::String m_description;
202
203 Aws::Vector<Aws::String> m_targetArns;
204
206
207 Aws::String m_statusMessage;
208
210
211 Aws::String m_requestId;
212 bool m_idHasBeenSet = false;
213 bool m_nameHasBeenSet = false;
214 bool m_descriptionHasBeenSet = false;
215 bool m_targetArnsHasBeenSet = false;
216 bool m_statusHasBeenSet = false;
217 bool m_statusMessageHasBeenSet = false;
218 bool m_tagsHasBeenSet = false;
219 bool m_requestIdHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace APIGateway
224} // namespace Aws
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue