AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetGroupIpAddress(const Aws::String& value) { m_groupIpAddressHasBeenSet = true; m_groupIpAddress = value; }
52 inline void SetGroupIpAddress(Aws::String&& value) { m_groupIpAddressHasBeenSet = true; m_groupIpAddress = std::move(value); }
53 inline void SetGroupIpAddress(const char* value) { m_groupIpAddressHasBeenSet = true; m_groupIpAddress.assign(value); }
55 inline TransitGatewayMulticastGroup& WithGroupIpAddress(Aws::String&& value) { SetGroupIpAddress(std::move(value)); return *this;}
56 inline TransitGatewayMulticastGroup& WithGroupIpAddress(const char* value) { SetGroupIpAddress(value); return *this;}
58
60
63 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
64 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
65 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
66 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
67 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
72
74
77 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
78 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
79 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
80 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
81 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
82 inline TransitGatewayMulticastGroup& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
83 inline TransitGatewayMulticastGroup& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
84 inline TransitGatewayMulticastGroup& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
86
88
91 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
92 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
93 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
94 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
95 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
96 inline TransitGatewayMulticastGroup& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 inline TransitGatewayMulticastGroup& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
98 inline TransitGatewayMulticastGroup& WithResourceId(const char* value) { SetResourceId(value); return *this;}
100
102
105 inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
106 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
107 inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
108 inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
112
114
118 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
119 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
120 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
121 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
122 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
124 inline TransitGatewayMulticastGroup& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
125 inline TransitGatewayMulticastGroup& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
127
129
132 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
133 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
134 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
135 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
136 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
139 inline TransitGatewayMulticastGroup& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
141
143
146 inline bool GetGroupMember() const{ return m_groupMember; }
147 inline bool GroupMemberHasBeenSet() const { return m_groupMemberHasBeenSet; }
148 inline void SetGroupMember(bool value) { m_groupMemberHasBeenSet = true; m_groupMember = value; }
149 inline TransitGatewayMulticastGroup& WithGroupMember(bool value) { SetGroupMember(value); return *this;}
151
153
156 inline bool GetGroupSource() const{ return m_groupSource; }
157 inline bool GroupSourceHasBeenSet() const { return m_groupSourceHasBeenSet; }
158 inline void SetGroupSource(bool value) { m_groupSourceHasBeenSet = true; m_groupSource = value; }
159 inline TransitGatewayMulticastGroup& WithGroupSource(bool value) { SetGroupSource(value); return *this;}
161
163
166 inline const MembershipType& GetMemberType() const{ return m_memberType; }
167 inline bool MemberTypeHasBeenSet() const { return m_memberTypeHasBeenSet; }
168 inline void SetMemberType(const MembershipType& value) { m_memberTypeHasBeenSet = true; m_memberType = value; }
169 inline void SetMemberType(MembershipType&& value) { m_memberTypeHasBeenSet = true; m_memberType = std::move(value); }
170 inline TransitGatewayMulticastGroup& WithMemberType(const MembershipType& value) { SetMemberType(value); return *this;}
171 inline TransitGatewayMulticastGroup& WithMemberType(MembershipType&& value) { SetMemberType(std::move(value)); return *this;}
173
175
178 inline const MembershipType& GetSourceType() const{ return m_sourceType; }
179 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
180 inline void SetSourceType(const MembershipType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
181 inline void SetSourceType(MembershipType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
182 inline TransitGatewayMulticastGroup& WithSourceType(const MembershipType& value) { SetSourceType(value); return *this;}
183 inline TransitGatewayMulticastGroup& WithSourceType(MembershipType&& value) { SetSourceType(std::move(value)); return *this;}
185 private:
186
187 Aws::String m_groupIpAddress;
188 bool m_groupIpAddressHasBeenSet = false;
189
190 Aws::String m_transitGatewayAttachmentId;
191 bool m_transitGatewayAttachmentIdHasBeenSet = false;
192
193 Aws::String m_subnetId;
194 bool m_subnetIdHasBeenSet = false;
195
196 Aws::String m_resourceId;
197 bool m_resourceIdHasBeenSet = false;
198
200 bool m_resourceTypeHasBeenSet = false;
201
202 Aws::String m_resourceOwnerId;
203 bool m_resourceOwnerIdHasBeenSet = false;
204
205 Aws::String m_networkInterfaceId;
206 bool m_networkInterfaceIdHasBeenSet = false;
207
208 bool m_groupMember;
209 bool m_groupMemberHasBeenSet = false;
210
211 bool m_groupSource;
212 bool m_groupSourceHasBeenSet = false;
213
214 MembershipType m_memberType;
215 bool m_memberTypeHasBeenSet = false;
216
217 MembershipType m_sourceType;
218 bool m_sourceTypeHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace EC2
223} // namespace Aws
TransitGatewayMulticastGroup & WithResourceOwnerId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayMulticastGroup & WithGroupIpAddress(const Aws::String &value)
TransitGatewayMulticastGroup & WithSourceType(MembershipType &&value)
TransitGatewayMulticastGroup & WithNetworkInterfaceId(Aws::String &&value)
TransitGatewayMulticastGroup & WithResourceOwnerId(Aws::String &&value)
TransitGatewayMulticastGroup & WithGroupMember(bool value)
AWS_EC2_API TransitGatewayMulticastGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastGroup & WithSubnetId(const Aws::String &value)
TransitGatewayMulticastGroup & WithResourceId(const Aws::String &value)
TransitGatewayMulticastGroup & WithNetworkInterfaceId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
TransitGatewayMulticastGroup & WithTransitGatewayAttachmentId(Aws::String &&value)
const TransitGatewayAttachmentResourceType & GetResourceType() const
TransitGatewayMulticastGroup & WithMemberType(const MembershipType &value)
TransitGatewayMulticastGroup & WithResourceType(const TransitGatewayAttachmentResourceType &value)
TransitGatewayMulticastGroup & WithGroupSource(bool value)
TransitGatewayMulticastGroup & WithNetworkInterfaceId(const char *value)
TransitGatewayMulticastGroup & WithMemberType(MembershipType &&value)
TransitGatewayMulticastGroup & WithResourceId(Aws::String &&value)
TransitGatewayMulticastGroup & WithGroupIpAddress(Aws::String &&value)
TransitGatewayMulticastGroup & WithTransitGatewayAttachmentId(const Aws::String &value)
TransitGatewayMulticastGroup & WithSourceType(const MembershipType &value)
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayMulticastGroup & WithResourceId(const char *value)
TransitGatewayMulticastGroup & WithSubnetId(Aws::String &&value)
TransitGatewayMulticastGroup & WithResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayMulticastGroup & WithResourceOwnerId(const char *value)
TransitGatewayMulticastGroup & WithTransitGatewayAttachmentId(const char *value)
AWS_EC2_API TransitGatewayMulticastGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastGroup & WithGroupIpAddress(const char *value)
TransitGatewayMulticastGroup & WithSubnetId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream