AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InternetGateway.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 InternetGateway() = default;
38 AWS_EC2_API InternetGateway(const Aws::Utils::Xml::XmlNode& xmlNode);
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 InternetGateway& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
55 template<typename AttachmentsT = InternetGatewayAttachment>
56 InternetGateway& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
58
60
63 inline const Aws::String& GetInternetGatewayId() const { return m_internetGatewayId; }
64 inline bool InternetGatewayIdHasBeenSet() const { return m_internetGatewayIdHasBeenSet; }
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>
68 InternetGateway& WithInternetGatewayId(InternetGatewayIdT&& value) { SetInternetGatewayId(std::forward<InternetGatewayIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
76 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
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>
80 InternetGateway& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
82
84
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
92 InternetGateway& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 InternetGateway& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
99 bool m_attachmentsHasBeenSet = false;
100
101 Aws::String m_internetGatewayId;
102 bool m_internetGatewayIdHasBeenSet = false;
103
104 Aws::String m_ownerId;
105 bool m_ownerIdHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace EC2
113} // namespace Aws
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
const Aws::String & GetOwnerId() const
AWS_EC2_API InternetGateway()=default
void SetAttachments(AttachmentsT &&value)
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