AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename TransitGatewayAttachmentIdT = Aws::String>
52 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value); }
53 template<typename TransitGatewayAttachmentIdT = Aws::String>
54 TransitGatewayMulticastDomainAssociation& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetResourceId() const { return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 template<typename ResourceIdT = Aws::String>
64 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
65 template<typename ResourceIdT = Aws::String>
66 TransitGatewayMulticastDomainAssociation& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
68
70
73 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 inline void SetResourceType(TransitGatewayAttachmentResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
78
80
84 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
85 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
86 template<typename ResourceOwnerIdT = Aws::String>
87 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
88 template<typename ResourceOwnerIdT = Aws::String>
89 TransitGatewayMulticastDomainAssociation& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
91
93
96 inline const SubnetAssociation& GetSubnet() const { return m_subnet; }
97 inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
98 template<typename SubnetT = SubnetAssociation>
99 void SetSubnet(SubnetT&& value) { m_subnetHasBeenSet = true; m_subnet = std::forward<SubnetT>(value); }
100 template<typename SubnetT = SubnetAssociation>
101 TransitGatewayMulticastDomainAssociation& WithSubnet(SubnetT&& value) { SetSubnet(std::forward<SubnetT>(value)); return *this;}
103 private:
104
105 Aws::String m_transitGatewayAttachmentId;
106 bool m_transitGatewayAttachmentIdHasBeenSet = false;
107
108 Aws::String m_resourceId;
109 bool m_resourceIdHasBeenSet = false;
110
112 bool m_resourceTypeHasBeenSet = false;
113
114 Aws::String m_resourceOwnerId;
115 bool m_resourceOwnerIdHasBeenSet = false;
116
117 SubnetAssociation m_subnet;
118 bool m_subnetHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace EC2
123} // 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 & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayMulticastDomainAssociation & WithSubnet(SubnetT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayMulticastDomainAssociation & WithResourceOwnerId(ResourceOwnerIdT &&value)
AWS_EC2_API TransitGatewayMulticastDomainAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociation & WithResourceId(ResourceIdT &&value)
TransitGatewayMulticastDomainAssociation & WithResourceType(TransitGatewayAttachmentResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream