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>
45 template <
typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
47 m_attachmentsHasBeenSet =
true;
48 m_attachments = std::forward<AttachmentsT>(value);
50 template <
typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
55 template <
typename AttachmentsT = InternetGatewayAttachment>
57 m_attachmentsHasBeenSet =
true;
58 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
69 template <
typename InternetGatewayIdT = Aws::String>
71 m_internetGatewayIdHasBeenSet =
true;
72 m_internetGatewayId = std::forward<InternetGatewayIdT>(value);
74 template <
typename InternetGatewayIdT = Aws::String>
87 template <
typename OwnerIdT = Aws::String>
89 m_ownerIdHasBeenSet =
true;
90 m_ownerId = std::forward<OwnerIdT>(value);
92 template <
typename OwnerIdT = Aws::String>
105 template <
typename TagsT = Aws::Vector<Tag>>
107 m_tagsHasBeenSet =
true;
108 m_tags = std::forward<TagsT>(value);
110 template <
typename TagsT = Aws::Vector<Tag>>
112 SetTags(std::forward<TagsT>(value));
115 template <
typename TagsT = Tag>
117 m_tagsHasBeenSet =
true;
118 m_tags.emplace_back(std::forward<TagsT>(value));
130 bool m_attachmentsHasBeenSet =
false;
131 bool m_internetGatewayIdHasBeenSet =
false;
132 bool m_ownerIdHasBeenSet =
false;
133 bool m_tagsHasBeenSet =
false;
bool InternetGatewayIdHasBeenSet() const
bool AttachmentsHasBeenSet() const
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
bool OwnerIdHasBeenSet() const
void SetTags(TagsT &&value)
const Aws::String & GetOwnerId() const
AWS_EC2_API InternetGateway()=default
void SetAttachments(AttachmentsT &&value)
bool TagsHasBeenSet() const
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