AWS SDK for C++  1.9.74
AWS SDK for C++
TransitGatewayMulticastDomainAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
49 
53  inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
54 
58  inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
59 
63  inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
64 
68  inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
69 
73  inline TransitGatewayMulticastDomainAssociation& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;}
74 
78  inline TransitGatewayMulticastDomainAssociation& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;}
79 
83  inline TransitGatewayMulticastDomainAssociation& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;}
84 
85 
89  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
90 
94  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
95 
99  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
100 
104  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
105 
109  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
110 
114  inline TransitGatewayMulticastDomainAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
115 
119  inline TransitGatewayMulticastDomainAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
120 
124  inline TransitGatewayMulticastDomainAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
125 
126 
130  inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
131 
135  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
136 
140  inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
141 
145  inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
146 
150  inline TransitGatewayMulticastDomainAssociation& WithResourceType(const TransitGatewayAttachmentResourceType& value) { SetResourceType(value); return *this;}
151 
155  inline TransitGatewayMulticastDomainAssociation& WithResourceType(TransitGatewayAttachmentResourceType&& value) { SetResourceType(std::move(value)); return *this;}
156 
157 
162  inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
163 
168  inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
169 
174  inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
175 
180  inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
181 
186  inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
187 
192  inline TransitGatewayMulticastDomainAssociation& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;}
193 
198  inline TransitGatewayMulticastDomainAssociation& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;}
199 
204  inline TransitGatewayMulticastDomainAssociation& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
205 
206 
210  inline const SubnetAssociation& GetSubnet() const{ return m_subnet; }
211 
215  inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
216 
220  inline void SetSubnet(const SubnetAssociation& value) { m_subnetHasBeenSet = true; m_subnet = value; }
221 
225  inline void SetSubnet(SubnetAssociation&& value) { m_subnetHasBeenSet = true; m_subnet = std::move(value); }
226 
230  inline TransitGatewayMulticastDomainAssociation& WithSubnet(const SubnetAssociation& value) { SetSubnet(value); return *this;}
231 
235  inline TransitGatewayMulticastDomainAssociation& WithSubnet(SubnetAssociation&& value) { SetSubnet(std::move(value)); return *this;}
236 
237  private:
238 
239  Aws::String m_transitGatewayAttachmentId;
240  bool m_transitGatewayAttachmentIdHasBeenSet;
241 
242  Aws::String m_resourceId;
243  bool m_resourceIdHasBeenSet;
244 
246  bool m_resourceTypeHasBeenSet;
247 
248  Aws::String m_resourceOwnerId;
249  bool m_resourceOwnerIdHasBeenSet;
250 
251  SubnetAssociation m_subnet;
252  bool m_subnetHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace EC2
257 } // namespace Aws
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithSubnet
TransitGatewayMulticastDomainAssociation & WithSubnet(SubnetAssociation &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:235
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceOwnerId
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:204
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceOwnerId
void SetResourceOwnerId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:180
SubnetAssociation.h
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:68
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::TransitGatewayMulticastDomainAssociation
TransitGatewayMulticastDomainAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::GetSubnet
const SubnetAssociation & GetSubnet() const
Definition: TransitGatewayMulticastDomainAssociation.h:210
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::GetResourceId
const Aws::String & GetResourceId() const
Definition: TransitGatewayMulticastDomainAssociation.h:89
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::operator=
TransitGatewayMulticastDomainAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SubnetAssociation
Definition: SubnetAssociation.h:34
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithTransitGatewayAttachmentId
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:73
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::GetTransitGatewayAttachmentId
const Aws::String & GetTransitGatewayAttachmentId() const
Definition: TransitGatewayMulticastDomainAssociation.h:48
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::TransitGatewayAttachmentIdHasBeenSet
bool TransitGatewayAttachmentIdHasBeenSet() const
Definition: TransitGatewayMulticastDomainAssociation.h:53
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceOwnerId
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:192
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::ResourceOwnerIdHasBeenSet
bool ResourceOwnerIdHasBeenSet() const
Definition: TransitGatewayMulticastDomainAssociation.h:168
Aws::EC2::Model::TransitGatewayAttachmentResourceType
TransitGatewayAttachmentResourceType
Definition: TransitGatewayAttachmentResourceType.h:17
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithSubnet
TransitGatewayMulticastDomainAssociation & WithSubnet(const SubnetAssociation &value)
Definition: TransitGatewayMulticastDomainAssociation.h:230
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetSubnet
void SetSubnet(SubnetAssociation &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:225
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceType
TransitGatewayMulticastDomainAssociation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:155
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SubnetHasBeenSet
bool SubnetHasBeenSet() const
Definition: TransitGatewayMulticastDomainAssociation.h:215
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceOwnerId
void SetResourceOwnerId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:186
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
TransitGatewayAttachmentResourceType.h
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceType
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayMulticastDomainAssociation.h:140
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceOwnerId
void SetResourceOwnerId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:174
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceId
TransitGatewayMulticastDomainAssociation & WithResourceId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:119
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceId
TransitGatewayMulticastDomainAssociation & WithResourceId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:124
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:58
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: TransitGatewayMulticastDomainAssociation.h:135
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::GetResourceType
const TransitGatewayAttachmentResourceType & GetResourceType() const
Definition: TransitGatewayMulticastDomainAssociation.h:130
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetSubnet
void SetSubnet(const SubnetAssociation &value)
Definition: TransitGatewayMulticastDomainAssociation.h:220
AWSString.h
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:104
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::GetResourceOwnerId
const Aws::String & GetResourceOwnerId() const
Definition: TransitGatewayMulticastDomainAssociation.h:162
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceType
void SetResourceType(TransitGatewayAttachmentResourceType &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:145
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceOwnerId
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:198
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithTransitGatewayAttachmentId
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:83
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceType
TransitGatewayMulticastDomainAssociation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
Definition: TransitGatewayMulticastDomainAssociation.h:150
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithResourceId
TransitGatewayMulticastDomainAssociation & WithResourceId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:114
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceId
void SetResourceId(const char *value)
Definition: TransitGatewayMulticastDomainAssociation.h:109
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation
Definition: TransitGatewayMulticastDomainAssociation.h:35
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::TransitGatewayMulticastDomainAssociation
TransitGatewayMulticastDomainAssociation()
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::WithTransitGatewayAttachmentId
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:78
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: TransitGatewayMulticastDomainAssociation.h:99
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: TransitGatewayMulticastDomainAssociation.h:94
Aws::EC2::Model::TransitGatewayMulticastDomainAssociation::SetTransitGatewayAttachmentId
void SetTransitGatewayAttachmentId(Aws::String &&value)
Definition: TransitGatewayMulticastDomainAssociation.h:63