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>
51 template<
typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
52 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments = std::forward<AttachmentsT>(value); }
53 template<
typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
55 template<
typename AttachmentsT = InternetGatewayAttachment>
56 InternetGateway&
AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet =
true; m_attachments.emplace_back(std::forward<AttachmentsT>(value));
return *
this; }
65 template<
typename InternetGatewayIdT = Aws::String>
66 void SetInternetGatewayId(InternetGatewayIdT&& value) { m_internetGatewayIdHasBeenSet =
true; m_internetGatewayId = std::forward<InternetGatewayIdT>(value); }
67 template<
typename InternetGatewayIdT = Aws::String>
77 template<
typename OwnerIdT = Aws::String>
78 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
79 template<
typename OwnerIdT = Aws::String>
89 template<
typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
91 template<
typename TagsT = Aws::Vector<Tag>>
93 template<
typename TagsT = Tag>
94 InternetGateway&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
99 bool m_attachmentsHasBeenSet =
false;
102 bool m_internetGatewayIdHasBeenSet =
false;
105 bool m_ownerIdHasBeenSet =
false;
108 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