AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EgressOnlyInternetGateway.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const{ return m_attachments; }
50 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
51 inline void SetAttachments(const Aws::Vector<InternetGatewayAttachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
52 inline void SetAttachments(Aws::Vector<InternetGatewayAttachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
55 inline EgressOnlyInternetGateway& AddAttachments(const InternetGatewayAttachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
56 inline EgressOnlyInternetGateway& AddAttachments(InternetGatewayAttachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::String& GetEgressOnlyInternetGatewayId() const{ return m_egressOnlyInternetGatewayId; }
64 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
65 inline void SetEgressOnlyInternetGatewayId(const Aws::String& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = value; }
66 inline void SetEgressOnlyInternetGatewayId(Aws::String&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::move(value); }
67 inline void SetEgressOnlyInternetGatewayId(const char* value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId.assign(value); }
72
74
77 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
80 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
81 inline EgressOnlyInternetGateway& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
82 inline EgressOnlyInternetGateway& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
83 inline EgressOnlyInternetGateway& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
84 inline EgressOnlyInternetGateway& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
86 private:
87
89 bool m_attachmentsHasBeenSet = false;
90
91 Aws::String m_egressOnlyInternetGatewayId;
92 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
93
94 Aws::Vector<Tag> m_tags;
95 bool m_tagsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
void SetAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
EgressOnlyInternetGateway & WithEgressOnlyInternetGatewayId(Aws::String &&value)
EgressOnlyInternetGateway & WithEgressOnlyInternetGatewayId(const Aws::String &value)
void SetAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
AWS_EC2_API EgressOnlyInternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EgressOnlyInternetGateway & AddAttachments(InternetGatewayAttachment &&value)
void SetEgressOnlyInternetGatewayId(const Aws::String &value)
EgressOnlyInternetGateway & AddTags(Tag &&value)
AWS_EC2_API EgressOnlyInternetGateway(const Aws::Utils::Xml::XmlNode &xmlNode)
EgressOnlyInternetGateway & WithTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EgressOnlyInternetGateway & AddTags(const Tag &value)
EgressOnlyInternetGateway & WithEgressOnlyInternetGatewayId(const char *value)
EgressOnlyInternetGateway & WithAttachments(const Aws::Vector< InternetGatewayAttachment > &value)
EgressOnlyInternetGateway & WithAttachments(Aws::Vector< InternetGatewayAttachment > &&value)
EgressOnlyInternetGateway & WithTags(Aws::Vector< Tag > &&value)
EgressOnlyInternetGateway & AddAttachments(const InternetGatewayAttachment &value)
const Aws::Vector< InternetGatewayAttachment > & GetAttachments() const
void SetTags(const Aws::Vector< Tag > &value)
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