AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InternetGateway.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/InternetGatewayAttachment.h>
12#include <aws/ec2/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API InternetGateway();
38 AWS_EC2_API InternetGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const{ return m_attachments; }
50 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
51 inline void SetAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
52 inline void SetAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
54 inline InternetGateway& WithAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { SetAttachments(std::move(value)); return *this;}
55 inline InternetGateway& AddAttachments(const InternetGatewayAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
56 inline InternetGateway& AddAttachments(InternetGatewayAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::String& GetInternetGatewayId() const{ return m_internetGatewayId; }
64 inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; }
65 inline void SetInternetGatewayId(const Aws::String& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = value; }
66 inline void SetInternetGatewayId(Aws::String&& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = std::move(value); }
67 inline void SetInternetGatewayId(const char* value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId.assign(value); }
68 inline InternetGateway& WithInternetGatewayId(const Aws::String& value) { SetInternetGatewayId(value); return *this;}
69 inline InternetGateway& WithInternetGatewayId(Aws::String&& value) { SetInternetGatewayId(std::move(value)); return *this;}
70 inline InternetGateway& WithInternetGatewayId(const char* value) { SetInternetGatewayId(value); return *this;}
72
74
77 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
78 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
79 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
80 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
81 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
82 inline InternetGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
83 inline InternetGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
84 inline InternetGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
95 inline InternetGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline InternetGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline InternetGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
98 inline InternetGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
100 private:
101
103 bool m_attachmentsHasBeenSet = false;
104
105 Aws::String m_internetGatewayId;
106 bool m_internetGatewayIdHasBeenSet = false;
107
108 Aws::String m_ownerId;
109 bool m_ownerIdHasBeenSet = false;
110
111 Aws::Vector<Tag> m_tags;
112 bool m_tagsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
void SetOwnerId(Aws::String &&value)
void SetOwnerId(const char *value)
InternetGateway & AddTags(const Tag &value)
InternetGateway & AddAttachments(InternetGatewayAttachment &&value)
void SetAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
InternetGateway & WithOwnerId(const char *value)
void SetInternetGatewayId(const Aws::String &value)
const Aws::String & GetInternetGatewayId() const
InternetGateway & WithOwnerId(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InternetGateway & WithTags(const Aws::Vector< Tag > &value)
InternetGateway & WithOwnerId(const Aws::String &value)
void SetInternetGatewayId(Aws::String &&value)
InternetGateway & AddAttachments(const InternetGatewayAttachment &value)
void SetAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_EC2_API InternetGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
InternetGateway & AddTags(Tag &&value)
AWS_EC2_API InternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InternetGateway & WithAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
void SetOwnerId(const Aws::String &value)
const Aws::Vector< InternetGatewayAttachment > & GetAttachments() const
const Aws::String & GetOwnerId() const
InternetGateway & WithInternetGatewayId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
void SetInternetGatewayId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InternetGateway & WithInternetGatewayId(const Aws::String &value)
InternetGateway & WithInternetGatewayId(Aws::String &&value)
InternetGateway & WithTags(Aws::Vector< Tag > &&value)
InternetGateway & WithAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream