AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EgressOnlyInternetGateway.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
24
31 public:
32 AWS_EC2_API EgressOnlyInternetGateway() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::Vector<InternetGatewayAttachment>& GetAttachments() const { return m_attachments; }
44 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
45 template <typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
46 void SetAttachments(AttachmentsT&& value) {
47 m_attachmentsHasBeenSet = true;
48 m_attachments = std::forward<AttachmentsT>(value);
49 }
50 template <typename AttachmentsT = Aws::Vector<InternetGatewayAttachment>>
52 SetAttachments(std::forward<AttachmentsT>(value));
53 return *this;
54 }
55 template <typename AttachmentsT = InternetGatewayAttachment>
57 m_attachmentsHasBeenSet = true;
58 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
68 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
69 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
70 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
71 m_egressOnlyInternetGatewayIdHasBeenSet = true;
72 m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value);
73 }
74 template <typename EgressOnlyInternetGatewayIdT = Aws::String>
75 EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) {
76 SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template <typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsT = Tag>
99 m_tagsHasBeenSet = true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
101 return *this;
102 }
104 private:
106
107 Aws::String m_egressOnlyInternetGatewayId;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_attachmentsHasBeenSet = false;
111 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
112 bool m_tagsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace EC2
117} // namespace Aws
EgressOnlyInternetGateway & WithTags(TagsT &&value)
void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
EgressOnlyInternetGateway & WithAttachments(AttachmentsT &&value)
EgressOnlyInternetGateway & AddTags(TagsT &&value)
AWS_EC2_API EgressOnlyInternetGateway()=default
EgressOnlyInternetGateway & WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT &&value)
AWS_EC2_API EgressOnlyInternetGateway & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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
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