AWS SDK for C++  1.9.16
AWS SDK for C++
VpcLink.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace APIGateway
25 {
26 namespace Model
27 {
28 
44  {
45  public:
50 
51 
56  inline const Aws::String& GetId() const{ return m_id; }
57 
62  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 
68  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 
74  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
75 
80  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
81 
86  inline VpcLink& WithId(const Aws::String& value) { SetId(value); return *this;}
87 
92  inline VpcLink& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
93 
98  inline VpcLink& WithId(const char* value) { SetId(value); return *this;}
99 
100 
104  inline const Aws::String& GetName() const{ return m_name; }
105 
109  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
110 
114  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
115 
119  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
120 
124  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
125 
129  inline VpcLink& WithName(const Aws::String& value) { SetName(value); return *this;}
130 
134  inline VpcLink& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 
139  inline VpcLink& WithName(const char* value) { SetName(value); return *this;}
140 
141 
145  inline const Aws::String& GetDescription() const{ return m_description; }
146 
150  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 
155  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
156 
160  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
161 
165  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
166 
170  inline VpcLink& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
171 
175  inline VpcLink& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
176 
180  inline VpcLink& WithDescription(const char* value) { SetDescription(value); return *this;}
181 
182 
188  inline const Aws::Vector<Aws::String>& GetTargetArns() const{ return m_targetArns; }
189 
195  inline bool TargetArnsHasBeenSet() const { return m_targetArnsHasBeenSet; }
196 
202  inline void SetTargetArns(const Aws::Vector<Aws::String>& value) { m_targetArnsHasBeenSet = true; m_targetArns = value; }
203 
209  inline void SetTargetArns(Aws::Vector<Aws::String>&& value) { m_targetArnsHasBeenSet = true; m_targetArns = std::move(value); }
210 
216  inline VpcLink& WithTargetArns(const Aws::Vector<Aws::String>& value) { SetTargetArns(value); return *this;}
217 
223  inline VpcLink& WithTargetArns(Aws::Vector<Aws::String>&& value) { SetTargetArns(std::move(value)); return *this;}
224 
230  inline VpcLink& AddTargetArns(const Aws::String& value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(value); return *this; }
231 
237  inline VpcLink& AddTargetArns(Aws::String&& value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(std::move(value)); return *this; }
238 
244  inline VpcLink& AddTargetArns(const char* value) { m_targetArnsHasBeenSet = true; m_targetArns.push_back(value); return *this; }
245 
246 
253  inline const VpcLinkStatus& GetStatus() const{ return m_status; }
254 
261  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
262 
269  inline void SetStatus(const VpcLinkStatus& value) { m_statusHasBeenSet = true; m_status = value; }
270 
277  inline void SetStatus(VpcLinkStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
278 
285  inline VpcLink& WithStatus(const VpcLinkStatus& value) { SetStatus(value); return *this;}
286 
293  inline VpcLink& WithStatus(VpcLinkStatus&& value) { SetStatus(std::move(value)); return *this;}
294 
295 
299  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
300 
304  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
305 
309  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
310 
314  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
315 
319  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
320 
324  inline VpcLink& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
325 
329  inline VpcLink& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
330 
334  inline VpcLink& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
335 
336 
341  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
342 
347  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
348 
353  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
354 
359  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
360 
365  inline VpcLink& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
366 
371  inline VpcLink& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
372 
377  inline VpcLink& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
378 
383  inline VpcLink& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
384 
389  inline VpcLink& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
390 
395  inline VpcLink& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
396 
401  inline VpcLink& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
402 
407  inline VpcLink& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
408 
413  inline VpcLink& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
414 
415  private:
416 
417  Aws::String m_id;
418  bool m_idHasBeenSet;
419 
420  Aws::String m_name;
421  bool m_nameHasBeenSet;
422 
423  Aws::String m_description;
424  bool m_descriptionHasBeenSet;
425 
426  Aws::Vector<Aws::String> m_targetArns;
427  bool m_targetArnsHasBeenSet;
428 
429  VpcLinkStatus m_status;
430  bool m_statusHasBeenSet;
431 
432  Aws::String m_statusMessage;
433  bool m_statusMessageHasBeenSet;
434 
436  bool m_tagsHasBeenSet;
437  };
438 
439 } // namespace Model
440 } // namespace APIGateway
441 } // namespace Aws
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::APIGateway::Model::VpcLinkStatus
VpcLinkStatus
Definition: VpcLinkStatus.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19