AWS SDK for C++  1.9.69
AWS SDK for C++
InternetGateway.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <aws/ec2/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const{ return m_attachments; }
49 
53  inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
54 
58  inline void SetAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
59 
63  inline void SetAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
64 
68  inline InternetGateway& WithAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { SetAttachments(value); return *this;}
69 
73  inline InternetGateway& WithAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { SetAttachments(std::move(value)); return *this;}
74 
78  inline InternetGateway& AddAttachments(const InternetGatewayAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
79 
83  inline InternetGateway& AddAttachments(InternetGatewayAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
84 
85 
89  inline const Aws::String& GetInternetGatewayId() const{ return m_internetGatewayId; }
90 
94  inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; }
95 
99  inline void SetInternetGatewayId(const Aws::String& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = value; }
100 
104  inline void SetInternetGatewayId(Aws::String&& value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId = std::move(value); }
105 
109  inline void SetInternetGatewayId(const char* value) { m_internetGatewayIdHasBeenSet = true; m_internetGatewayId.assign(value); }
110 
114  inline InternetGateway& WithInternetGatewayId(const Aws::String& value) { SetInternetGatewayId(value); return *this;}
115 
119  inline InternetGateway& WithInternetGatewayId(Aws::String&& value) { SetInternetGatewayId(std::move(value)); return *this;}
120 
124  inline InternetGateway& WithInternetGatewayId(const char* value) { SetInternetGatewayId(value); return *this;}
125 
126 
130  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
131 
135  inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
136 
140  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
141 
145  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
146 
150  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
151 
155  inline InternetGateway& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
156 
160  inline InternetGateway& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
161 
165  inline InternetGateway& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
166 
167 
171  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
172 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
181  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 
186  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
191  inline InternetGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 
196  inline InternetGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
197 
201  inline InternetGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
202 
206  inline InternetGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
207 
208  private:
209 
211  bool m_attachmentsHasBeenSet;
212 
213  Aws::String m_internetGatewayId;
214  bool m_internetGatewayIdHasBeenSet;
215 
216  Aws::String m_ownerId;
217  bool m_ownerIdHasBeenSet;
218 
219  Aws::Vector<Tag> m_tags;
220  bool m_tagsHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace EC2
225 } // namespace Aws
Aws::EC2::Model::InternetGateway::GetAttachments
const Aws::Vector< InternetGatewayAttachment > & GetAttachments() const
Definition: InternetGateway.h:48
Aws::EC2::Model::Tag
Definition: Tag.h:32
Aws::EC2::Model::InternetGateway::WithAttachments
InternetGateway & WithAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
Definition: InternetGateway.h:68
Aws::EC2::Model::InternetGateway::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InternetGateway::AddTags
InternetGateway & AddTags(Tag &&value)
Definition: InternetGateway.h:206
Aws::EC2::Model::InternetGateway::WithOwnerId
InternetGateway & WithOwnerId(Aws::String &&value)
Definition: InternetGateway.h:160
Aws::EC2::Model::InternetGateway::AddTags
InternetGateway & AddTags(const Tag &value)
Definition: InternetGateway.h:201
Aws::EC2::Model::InternetGateway::operator=
InternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InternetGateway::OwnerIdHasBeenSet
bool OwnerIdHasBeenSet() const
Definition: InternetGateway.h:135
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InternetGateway::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: InternetGateway.h:130
Aws::EC2::Model::InternetGateway::SetInternetGatewayId
void SetInternetGatewayId(Aws::String &&value)
Definition: InternetGateway.h:104
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::InternetGateway::InternetGateway
InternetGateway()
Aws::EC2::Model::InternetGateway::WithOwnerId
InternetGateway & WithOwnerId(const Aws::String &value)
Definition: InternetGateway.h:155
AWSStreamFwd.h
AWSVector.h
Tag.h
Aws::EC2::Model::InternetGatewayAttachment
Definition: InternetGatewayAttachment.h:34
Aws::EC2::Model::InternetGateway::SetInternetGatewayId
void SetInternetGatewayId(const char *value)
Definition: InternetGateway.h:109
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InternetGateway::InternetGatewayIdHasBeenSet
bool InternetGatewayIdHasBeenSet() const
Definition: InternetGateway.h:94
Aws::EC2::Model::InternetGateway::WithInternetGatewayId
InternetGateway & WithInternetGatewayId(const char *value)
Definition: InternetGateway.h:124
Aws::EC2::Model::InternetGateway::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: InternetGateway.h:145
Aws::EC2::Model::InternetGateway::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: InternetGateway.h:186
Aws::EC2::Model::InternetGateway::WithTags
InternetGateway & WithTags(const Aws::Vector< Tag > &value)
Definition: InternetGateway.h:191
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InternetGateway
Definition: InternetGateway.h:35
InternetGatewayAttachment.h
Aws::EC2::Model::InternetGateway::SetInternetGatewayId
void SetInternetGatewayId(const Aws::String &value)
Definition: InternetGateway.h:99
Aws::EC2::Model::InternetGateway::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: InternetGateway.h:140
Aws::EC2::Model::InternetGateway::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: InternetGateway.h:176
Aws::EC2::Model::InternetGateway::GetInternetGatewayId
const Aws::String & GetInternetGatewayId() const
Definition: InternetGateway.h:89
AWSString.h
Aws::EC2::Model::InternetGateway::InternetGateway
InternetGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InternetGateway::WithInternetGatewayId
InternetGateway & WithInternetGatewayId(const Aws::String &value)
Definition: InternetGateway.h:114
Aws::EC2::Model::InternetGateway::SetAttachments
void SetAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
Definition: InternetGateway.h:58
Aws::EC2::Model::InternetGateway::AttachmentsHasBeenSet
bool AttachmentsHasBeenSet() const
Definition: InternetGateway.h:53
Aws::EC2::Model::InternetGateway::WithOwnerId
InternetGateway & WithOwnerId(const char *value)
Definition: InternetGateway.h:165
Aws::EC2::Model::InternetGateway::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: InternetGateway.h:171
Aws::EC2::Model::InternetGateway::WithTags
InternetGateway & WithTags(Aws::Vector< Tag > &&value)
Definition: InternetGateway.h:196
Aws::EC2::Model::InternetGateway::WithInternetGatewayId
InternetGateway & WithInternetGatewayId(Aws::String &&value)
Definition: InternetGateway.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InternetGateway::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InternetGateway::SetAttachments
void SetAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
Definition: InternetGateway.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InternetGateway::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: InternetGateway.h:181
Aws::EC2::Model::InternetGateway::AddAttachments
InternetGateway & AddAttachments(const InternetGatewayAttachment &value)
Definition: InternetGateway.h:78
Aws::EC2::Model::InternetGateway::WithAttachments
InternetGateway & WithAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
Definition: InternetGateway.h:73
EC2_EXPORTS.h
Aws::EC2::Model::InternetGateway::AddAttachments
InternetGateway & AddAttachments(InternetGatewayAttachment &&value)
Definition: InternetGateway.h:83
Aws::EC2::Model::InternetGateway::SetOwnerId
void SetOwnerId(const char *value)
Definition: InternetGateway.h:150