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 EgressOnlyInternetGatewayIdT = Aws::String>
71 m_egressOnlyInternetGatewayIdHasBeenSet =
true;
72 m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value);
74 template <
typename EgressOnlyInternetGatewayIdT = Aws::String>
87 template <
typename TagsT = Aws::Vector<Tag>>
89 m_tagsHasBeenSet =
true;
90 m_tags = std::forward<TagsT>(value);
92 template <
typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
97 template <
typename TagsT = Tag>
99 m_tagsHasBeenSet =
true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
110 bool m_attachmentsHasBeenSet =
false;
111 bool m_egressOnlyInternetGatewayIdHasBeenSet =
false;
112 bool m_tagsHasBeenSet =
false;
EgressOnlyInternetGateway & WithTags(TagsT &&value)
void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
EgressOnlyInternetGateway & WithAttachments(AttachmentsT &&value)
EgressOnlyInternetGateway & AddTags(TagsT &&value)
AWS_EC2_API EgressOnlyInternetGateway()=default
bool TagsHasBeenSet() const
EgressOnlyInternetGateway & WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
AWS_EC2_API EgressOnlyInternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AttachmentsHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetEgressOnlyInternetGatewayId() const
AWS_EC2_API EgressOnlyInternetGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
EgressOnlyInternetGateway & AddAttachments(AttachmentsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTags(TagsT &&value)
void SetAttachments(AttachmentsT &&value)
bool EgressOnlyInternetGatewayIdHasBeenSet() const
const Aws::Vector< InternetGatewayAttachment > & GetAttachments() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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