AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InternetGateway.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/InternetGatewayAttachment.h>
12#include <aws/ec2/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API InternetGateway() = default;
33 AWS_EC2_API InternetGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const { return m_attachments; }
44 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
45 template <typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
46 void SetAttachments(AttachmentsT&& value) {
47 m_attachmentsHasBeenSet = true;
48 m_attachments = std::forward<AttachmentsT>(value);
49 }
50 template <typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
51 InternetGateway& WithAttachments(AttachmentsT&& value) {
52 SetAttachments(std::forward<AttachmentsT>(value));
53 return *this;
54 }
55 template <typename AttachmentsT = InternetGatewayAttachment>
56 InternetGateway& AddAttachments(AttachmentsT&& value) {
57 m_attachmentsHasBeenSet = true;
58 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetInternetGatewayId() const { return m_internetGatewayId; }
68 inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; }
69 template <typename InternetGatewayIdT = Aws::String>
70 void SetInternetGatewayId(InternetGatewayIdT&& value) {
71 m_internetGatewayIdHasBeenSet = true;
72 m_internetGatewayId = std::forward<InternetGatewayIdT>(value);
73 }
74 template <typename InternetGatewayIdT = Aws::String>
75 InternetGateway& WithInternetGatewayId(InternetGatewayIdT&& value) {
76 SetInternetGatewayId(std::forward<InternetGatewayIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
86 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
87 template <typename OwnerIdT = Aws::String>
88 void SetOwnerId(OwnerIdT&& value) {
89 m_ownerIdHasBeenSet = true;
90 m_ownerId = std::forward<OwnerIdT>(value);
91 }
92 template <typename OwnerIdT = Aws::String>
93 InternetGateway& WithOwnerId(OwnerIdT&& value) {
94 SetOwnerId(std::forward<OwnerIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template <typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags = std::forward<TagsT>(value);
109 }
110 template <typename TagsT = Aws::Vector<Tag>>
111 InternetGateway& WithTags(TagsT&& value) {
112 SetTags(std::forward<TagsT>(value));
113 return *this;
114 }
115 template <typename TagsT = Tag>
116 InternetGateway& AddTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
119 return *this;
120 }
122 private:
124
125 Aws::String m_internetGatewayId;
126
127 Aws::String m_ownerId;
128
129 Aws::Vector<Tag> m_tags;
130 bool m_attachmentsHasBeenSet = false;
131 bool m_internetGatewayIdHasBeenSet = false;
132 bool m_ownerIdHasBeenSet = false;
133 bool m_tagsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace EC2
138} // namespace Aws
void SetOwnerId(OwnerIdT &&value)
const Aws::String & GetInternetGatewayId() const
void SetInternetGatewayId(InternetGatewayIdT &&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 & WithAttachments(AttachmentsT &&value)
InternetGateway & AddTags(TagsT &&value)
InternetGateway & AddAttachments(AttachmentsT &&value)
InternetGateway & WithTags(TagsT &&value)
AWS_EC2_API InternetGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
InternetGateway & WithOwnerId(OwnerIdT &&value)
AWS_EC2_API InternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< InternetGatewayAttachment > & GetAttachments() const
const Aws::String & GetOwnerId() const
AWS_EC2_API InternetGateway()=default
void SetAttachments(AttachmentsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InternetGateway & WithInternetGatewayId(InternetGatewayIdT &&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