AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayMulticastGroup.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/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/MembershipType.h>
11#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API TransitGatewayMulticastGroup() = 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::String& GetGroupIpAddress() const { return m_groupIpAddress; }
44 inline bool GroupIpAddressHasBeenSet() const { return m_groupIpAddressHasBeenSet; }
45 template <typename GroupIpAddressT = Aws::String>
46 void SetGroupIpAddress(GroupIpAddressT&& value) {
47 m_groupIpAddressHasBeenSet = true;
48 m_groupIpAddress = std::forward<GroupIpAddressT>(value);
49 }
50 template <typename GroupIpAddressT = Aws::String>
52 SetGroupIpAddress(std::forward<GroupIpAddressT>(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>
69 TransitGatewayMulticastGroup& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
70 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
80 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
81 template <typename SubnetIdT = Aws::String>
82 void SetSubnetId(SubnetIdT&& value) {
83 m_subnetIdHasBeenSet = true;
84 m_subnetId = std::forward<SubnetIdT>(value);
85 }
86 template <typename SubnetIdT = Aws::String>
88 SetSubnetId(std::forward<SubnetIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetResourceId() const { return m_resourceId; }
98 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
99 template <typename ResourceIdT = Aws::String>
100 void SetResourceId(ResourceIdT&& value) {
101 m_resourceIdHasBeenSet = true;
102 m_resourceId = std::forward<ResourceIdT>(value);
103 }
104 template <typename ResourceIdT = Aws::String>
106 SetResourceId(std::forward<ResourceIdT>(value));
107 return *this;
108 }
110
112
115 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
116 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
118 m_resourceTypeHasBeenSet = true;
119 m_resourceType = value;
120 }
122 SetResourceType(value);
123 return *this;
124 }
126
128
132 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
133 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
134 template <typename ResourceOwnerIdT = Aws::String>
135 void SetResourceOwnerId(ResourceOwnerIdT&& value) {
136 m_resourceOwnerIdHasBeenSet = true;
137 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
138 }
139 template <typename ResourceOwnerIdT = Aws::String>
141 SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
151 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
152 template <typename NetworkInterfaceIdT = Aws::String>
153 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) {
154 m_networkInterfaceIdHasBeenSet = true;
155 m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value);
156 }
157 template <typename NetworkInterfaceIdT = Aws::String>
159 SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value));
160 return *this;
161 }
163
165
168 inline bool GetGroupMember() const { return m_groupMember; }
169 inline bool GroupMemberHasBeenSet() const { return m_groupMemberHasBeenSet; }
170 inline void SetGroupMember(bool value) {
171 m_groupMemberHasBeenSet = true;
172 m_groupMember = value;
173 }
175 SetGroupMember(value);
176 return *this;
177 }
179
181
184 inline bool GetGroupSource() const { return m_groupSource; }
185 inline bool GroupSourceHasBeenSet() const { return m_groupSourceHasBeenSet; }
186 inline void SetGroupSource(bool value) {
187 m_groupSourceHasBeenSet = true;
188 m_groupSource = value;
189 }
191 SetGroupSource(value);
192 return *this;
193 }
195
197
200 inline MembershipType GetMemberType() const { return m_memberType; }
201 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
202 inline void SetMemberType(MembershipType value) {
203 m_memberTypeHasBeenSet = true;
204 m_memberType = value;
205 }
207 SetMemberType(value);
208 return *this;
209 }
211
213
216 inline MembershipType GetSourceType() const { return m_sourceType; }
217 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
218 inline void SetSourceType(MembershipType value) {
219 m_sourceTypeHasBeenSet = true;
220 m_sourceType = value;
221 }
223 SetSourceType(value);
224 return *this;
225 }
227 private:
228 Aws::String m_groupIpAddress;
229
230 Aws::String m_transitGatewayAttachmentId;
231
232 Aws::String m_subnetId;
233
234 Aws::String m_resourceId;
235
237
238 Aws::String m_resourceOwnerId;
239
240 Aws::String m_networkInterfaceId;
241
242 bool m_groupMember{false};
243
244 bool m_groupSource{false};
245
247
249 bool m_groupIpAddressHasBeenSet = false;
250 bool m_transitGatewayAttachmentIdHasBeenSet = false;
251 bool m_subnetIdHasBeenSet = false;
252 bool m_resourceIdHasBeenSet = false;
253 bool m_resourceTypeHasBeenSet = false;
254 bool m_resourceOwnerIdHasBeenSet = false;
255 bool m_networkInterfaceIdHasBeenSet = false;
256 bool m_groupMemberHasBeenSet = false;
257 bool m_groupSourceHasBeenSet = false;
258 bool m_memberTypeHasBeenSet = false;
259 bool m_sourceTypeHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace EC2
264} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayMulticastGroup & WithSourceType(MembershipType value)
TransitGatewayMulticastGroup & WithSubnetId(SubnetIdT &&value)
TransitGatewayMulticastGroup & WithResourceId(ResourceIdT &&value)
TransitGatewayMulticastGroup & WithGroupMember(bool value)
AWS_EC2_API TransitGatewayMulticastGroup()=default
AWS_EC2_API TransitGatewayMulticastGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAttachmentResourceType GetResourceType() const
TransitGatewayMulticastGroup & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayMulticastGroup & WithGroupSource(bool value)
TransitGatewayMulticastGroup & WithGroupIpAddress(GroupIpAddressT &&value)
TransitGatewayMulticastGroup & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
TransitGatewayMulticastGroup & WithResourceOwnerId(ResourceOwnerIdT &&value)
TransitGatewayMulticastGroup & WithMemberType(MembershipType value)
TransitGatewayMulticastGroup & WithResourceType(TransitGatewayAttachmentResourceType value)
AWS_EC2_API TransitGatewayMulticastGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceType(TransitGatewayAttachmentResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream