AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayMulticastDomainAssociation.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/SubnetAssociation.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& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; }
50 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
51 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; }
52 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); }
53 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); }
58
60
63 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
66 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
67 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
69 inline TransitGatewayMulticastDomainAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
70 inline TransitGatewayMulticastDomainAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
72
74
77 inline const TransitGatewayAttachmentResourceType& GetResourceType() const{ return m_resourceType; }
78 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
79 inline void SetResourceType(const TransitGatewayAttachmentResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
80 inline void SetResourceType(TransitGatewayAttachmentResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
84
86
90 inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; }
91 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
92 inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; }
93 inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); }
94 inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); }
97 inline TransitGatewayMulticastDomainAssociation& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;}
99
101
104 inline const SubnetAssociation& GetSubnet() const{ return m_subnet; }
105 inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
106 inline void SetSubnet(const SubnetAssociation& value) { m_subnetHasBeenSet = true; m_subnet = value; }
107 inline void SetSubnet(SubnetAssociation&& value) { m_subnetHasBeenSet = true; m_subnet = std::move(value); }
109 inline TransitGatewayMulticastDomainAssociation& WithSubnet(SubnetAssociation&& value) { SetSubnet(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_transitGatewayAttachmentId;
114 bool m_transitGatewayAttachmentIdHasBeenSet = false;
115
116 Aws::String m_resourceId;
117 bool m_resourceIdHasBeenSet = false;
118
120 bool m_resourceTypeHasBeenSet = false;
121
122 Aws::String m_resourceOwnerId;
123 bool m_resourceOwnerIdHasBeenSet = false;
124
125 SubnetAssociation m_subnet;
126 bool m_subnetHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayMulticastDomainAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(const char *value)
TransitGatewayMulticastDomainAssociation & WithResourceId(const char *value)
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(Aws::String &&value)
TransitGatewayMulticastDomainAssociation & WithResourceId(const Aws::String &value)
void SetResourceType(const TransitGatewayAttachmentResourceType &value)
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(Aws::String &&value)
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(const char *value)
TransitGatewayMulticastDomainAssociation & WithResourceType(const TransitGatewayAttachmentResourceType &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayMulticastDomainAssociation & WithResourceId(Aws::String &&value)
TransitGatewayMulticastDomainAssociation & WithSubnet(const SubnetAssociation &value)
AWS_EC2_API TransitGatewayMulticastDomainAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociation & WithResourceType(TransitGatewayAttachmentResourceType &&value)
TransitGatewayMulticastDomainAssociation & WithSubnet(SubnetAssociation &&value)
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(const Aws::String &value)
TransitGatewayMulticastDomainAssociation & WithTransitGatewayAttachmentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream