AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
37 AWS_EC2_API EgressOnlyInternetGateway() = default;
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 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>>
54 EgressOnlyInternetGateway& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
55 template<typename AttachmentsT = InternetGatewayAttachment>
56 EgressOnlyInternetGateway& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
58
60
63 inline const Aws::String& GetEgressOnlyInternetGatewayId() const { return m_egressOnlyInternetGatewayId; }
64 inline bool EgressOnlyInternetGatewayIdHasBeenSet() const { return m_egressOnlyInternetGatewayIdHasBeenSet; }
65 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
66 void SetEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { m_egressOnlyInternetGatewayIdHasBeenSet = true; m_egressOnlyInternetGatewayId = std::forward<EgressOnlyInternetGatewayIdT>(value); }
67 template<typename EgressOnlyInternetGatewayIdT = Aws::String>
68 EgressOnlyInternetGateway& WithEgressOnlyInternetGatewayId(EgressOnlyInternetGatewayIdT&& value) { SetEgressOnlyInternetGatewayId(std::forward<EgressOnlyInternetGatewayIdT>(value)); return *this;}
70
72
75 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template<typename TagsT = Aws::Vector<Tag>>
78 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
79 template<typename TagsT = Aws::Vector<Tag>>
80 EgressOnlyInternetGateway& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
81 template<typename TagsT = Tag>
82 EgressOnlyInternetGateway& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
84 private:
85
87 bool m_attachmentsHasBeenSet = false;
88
89 Aws::String m_egressOnlyInternetGatewayId;
90 bool m_egressOnlyInternetGatewayIdHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EC2
98} // 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