AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransitGatewayMulticastGroup.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/AWSString.h>
10#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
11#include <aws/ec2/model/MembershipType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API TransitGatewayMulticastGroup() = 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::String& GetGroupIpAddress() const { return m_groupIpAddress; }
50 inline bool GroupIpAddressHasBeenSet() const { return m_groupIpAddressHasBeenSet; }
51 template<typename GroupIpAddressT = Aws::String>
52 void SetGroupIpAddress(GroupIpAddressT&& value) { m_groupIpAddressHasBeenSet = true; m_groupIpAddress = std::forward<GroupIpAddressT>(value); }
53 template<typename GroupIpAddressT = Aws::String>
54 TransitGatewayMulticastGroup& WithGroupIpAddress(GroupIpAddressT&& value) { SetGroupIpAddress(std::forward<GroupIpAddressT>(value)); return *this;}
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) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
65 template<typename TransitGatewayAttachmentIdT = Aws::String>
66 TransitGatewayMulticastGroup& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
74 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
75 template<typename SubnetIdT = Aws::String>
76 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
77 template<typename SubnetIdT = Aws::String>
78 TransitGatewayMulticastGroup& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetResourceId() const { return m_resourceId; }
86 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
87 template<typename ResourceIdT = Aws::String>
88 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
89 template<typename ResourceIdT = Aws::String>
90 TransitGatewayMulticastGroup& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
92
94
97 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
99 inline void SetResourceType(TransitGatewayAttachmentResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
102
104
108 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
109 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
110 template<typename ResourceOwnerIdT = Aws::String>
111 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
112 template<typename ResourceOwnerIdT = Aws::String>
113 TransitGatewayMulticastGroup& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
115
117
120 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
121 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
122 template<typename NetworkInterfaceIdT = Aws::String>
123 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
124 template<typename NetworkInterfaceIdT = Aws::String>
125 TransitGatewayMulticastGroup& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
127
129
132 inline bool GetGroupMember() const { return m_groupMember; }
133 inline bool GroupMemberHasBeenSet() const { return m_groupMemberHasBeenSet; }
134 inline void SetGroupMember(bool value) { m_groupMemberHasBeenSet = true; m_groupMember = value; }
135 inline TransitGatewayMulticastGroup& WithGroupMember(bool value) { SetGroupMember(value); return *this;}
137
139
142 inline bool GetGroupSource() const { return m_groupSource; }
143 inline bool GroupSourceHasBeenSet() const { return m_groupSourceHasBeenSet; }
144 inline void SetGroupSource(bool value) { m_groupSourceHasBeenSet = true; m_groupSource = value; }
145 inline TransitGatewayMulticastGroup& WithGroupSource(bool value) { SetGroupSource(value); return *this;}
147
149
152 inline MembershipType GetMemberType() const { return m_memberType; }
153 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
154 inline void SetMemberType(MembershipType value) { m_memberTypeHasBeenSet = true; m_memberType = value; }
157
159
162 inline MembershipType GetSourceType() const { return m_sourceType; }
163 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
164 inline void SetSourceType(MembershipType value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
167 private:
168
169 Aws::String m_groupIpAddress;
170 bool m_groupIpAddressHasBeenSet = false;
171
172 Aws::String m_transitGatewayAttachmentId;
173 bool m_transitGatewayAttachmentIdHasBeenSet = false;
174
175 Aws::String m_subnetId;
176 bool m_subnetIdHasBeenSet = false;
177
178 Aws::String m_resourceId;
179 bool m_resourceIdHasBeenSet = false;
180
182 bool m_resourceTypeHasBeenSet = false;
183
184 Aws::String m_resourceOwnerId;
185 bool m_resourceOwnerIdHasBeenSet = false;
186
187 Aws::String m_networkInterfaceId;
188 bool m_networkInterfaceIdHasBeenSet = false;
189
190 bool m_groupMember{false};
191 bool m_groupMemberHasBeenSet = false;
192
193 bool m_groupSource{false};
194 bool m_groupSourceHasBeenSet = false;
195
197 bool m_memberTypeHasBeenSet = false;
198
200 bool m_sourceTypeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace EC2
205} // 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