AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayMulticastDomainAssociations.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/SubnetAssociation.h>
12#include <aws/ec2/model/TransitGatewayAttachmentResourceType.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:
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::String& GetTransitGatewayMulticastDomainId() const { return m_transitGatewayMulticastDomainId; }
44 inline bool TransitGatewayMulticastDomainIdHasBeenSet() const { return m_transitGatewayMulticastDomainIdHasBeenSet; }
45 template <typename TransitGatewayMulticastDomainIdT = Aws::String>
46 void SetTransitGatewayMulticastDomainId(TransitGatewayMulticastDomainIdT&& value) {
47 m_transitGatewayMulticastDomainIdHasBeenSet = true;
48 m_transitGatewayMulticastDomainId = std::forward<TransitGatewayMulticastDomainIdT>(value);
49 }
50 template <typename TransitGatewayMulticastDomainIdT = Aws::String>
52 SetTransitGatewayMulticastDomainId(std::forward<TransitGatewayMulticastDomainIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
62 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
63 template <typename TransitGatewayAttachmentIdT = Aws::String>
64 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
65 m_transitGatewayAttachmentIdHasBeenSet = true;
66 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
67 }
68 template <typename TransitGatewayAttachmentIdT = Aws::String>
70 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetResourceId() const { return m_resourceId; }
80 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
81 template <typename ResourceIdT = Aws::String>
82 void SetResourceId(ResourceIdT&& value) {
83 m_resourceIdHasBeenSet = true;
84 m_resourceId = std::forward<ResourceIdT>(value);
85 }
86 template <typename ResourceIdT = Aws::String>
88 SetResourceId(std::forward<ResourceIdT>(value));
89 return *this;
90 }
92
94
97 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
100 m_resourceTypeHasBeenSet = true;
101 m_resourceType = value;
102 }
104 SetResourceType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
114 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
115 template <typename ResourceOwnerIdT = Aws::String>
116 void SetResourceOwnerId(ResourceOwnerIdT&& value) {
117 m_resourceOwnerIdHasBeenSet = true;
118 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
119 }
120 template <typename ResourceOwnerIdT = Aws::String>
122 SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<SubnetAssociation>& GetSubnets() const { return m_subnets; }
132 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
133 template <typename SubnetsT = Aws::Vector<SubnetAssociation>>
134 void SetSubnets(SubnetsT&& value) {
135 m_subnetsHasBeenSet = true;
136 m_subnets = std::forward<SubnetsT>(value);
137 }
138 template <typename SubnetsT = Aws::Vector<SubnetAssociation>>
140 SetSubnets(std::forward<SubnetsT>(value));
141 return *this;
142 }
143 template <typename SubnetsT = SubnetAssociation>
145 m_subnetsHasBeenSet = true;
146 m_subnets.emplace_back(std::forward<SubnetsT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_transitGatewayMulticastDomainId;
152
153 Aws::String m_transitGatewayAttachmentId;
154
155 Aws::String m_resourceId;
156
158
159 Aws::String m_resourceOwnerId;
160
162 bool m_transitGatewayMulticastDomainIdHasBeenSet = false;
163 bool m_transitGatewayAttachmentIdHasBeenSet = false;
164 bool m_resourceIdHasBeenSet = false;
165 bool m_resourceTypeHasBeenSet = false;
166 bool m_resourceOwnerIdHasBeenSet = false;
167 bool m_subnetsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
AWS_EC2_API TransitGatewayMulticastDomainAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociations & WithResourceOwnerId(ResourceOwnerIdT &&value)
TransitGatewayMulticastDomainAssociations & WithTransitGatewayMulticastDomainId(TransitGatewayMulticastDomainIdT &&value)
AWS_EC2_API TransitGatewayMulticastDomainAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociations & WithSubnets(SubnetsT &&value)
TransitGatewayMulticastDomainAssociations & WithResourceType(TransitGatewayAttachmentResourceType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayMulticastDomainAssociations & AddSubnets(SubnetsT &&value)
TransitGatewayMulticastDomainAssociations & WithResourceId(ResourceIdT &&value)
TransitGatewayMulticastDomainAssociations & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&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