AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransitGatewayMulticastDomainAssociations.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/SubnetAssociation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
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& GetTransitGatewayMulticastDomainId() const { return m_transitGatewayMulticastDomainId; }
50 inline bool TransitGatewayMulticastDomainIdHasBeenSet() const { return m_transitGatewayMulticastDomainIdHasBeenSet; }
51 template<typename TransitGatewayMulticastDomainIdT = Aws::String>
52 void SetTransitGatewayMulticastDomainId(TransitGatewayMulticastDomainIdT&& value) { m_transitGatewayMulticastDomainIdHasBeenSet = true; m_transitGatewayMulticastDomainId = std::forward<TransitGatewayMulticastDomainIdT>(value); }
53 template<typename TransitGatewayMulticastDomainIdT = Aws::String>
54 TransitGatewayMulticastDomainAssociations& WithTransitGatewayMulticastDomainId(TransitGatewayMulticastDomainIdT&& value) { SetTransitGatewayMulticastDomainId(std::forward<TransitGatewayMulticastDomainIdT>(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 TransitGatewayMulticastDomainAssociations& WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) { SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetResourceId() const { return m_resourceId; }
74 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 template<typename ResourceIdT = Aws::String>
76 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
77 template<typename ResourceIdT = Aws::String>
78 TransitGatewayMulticastDomainAssociations& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
80
82
85 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 inline void SetResourceType(TransitGatewayAttachmentResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
90
92
95 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
96 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
97 template<typename ResourceOwnerIdT = Aws::String>
98 void SetResourceOwnerId(ResourceOwnerIdT&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value); }
99 template<typename ResourceOwnerIdT = Aws::String>
100 TransitGatewayMulticastDomainAssociations& WithResourceOwnerId(ResourceOwnerIdT&& value) { SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value)); return *this;}
102
104
107 inline const Aws::Vector<SubnetAssociation>& GetSubnets() const { return m_subnets; }
108 inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
109 template<typename SubnetsT = Aws::Vector<SubnetAssociation>>
110 void SetSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets = std::forward<SubnetsT>(value); }
111 template<typename SubnetsT = Aws::Vector<SubnetAssociation>>
112 TransitGatewayMulticastDomainAssociations& WithSubnets(SubnetsT&& value) { SetSubnets(std::forward<SubnetsT>(value)); return *this;}
113 template<typename SubnetsT = SubnetAssociation>
114 TransitGatewayMulticastDomainAssociations& AddSubnets(SubnetsT&& value) { m_subnetsHasBeenSet = true; m_subnets.emplace_back(std::forward<SubnetsT>(value)); return *this; }
116 private:
117
118 Aws::String m_transitGatewayMulticastDomainId;
119 bool m_transitGatewayMulticastDomainIdHasBeenSet = false;
120
121 Aws::String m_transitGatewayAttachmentId;
122 bool m_transitGatewayAttachmentIdHasBeenSet = false;
123
124 Aws::String m_resourceId;
125 bool m_resourceIdHasBeenSet = false;
126
128 bool m_resourceTypeHasBeenSet = false;
129
130 Aws::String m_resourceOwnerId;
131 bool m_resourceOwnerIdHasBeenSet = false;
132
134 bool m_subnetsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EC2
139} // namespace Aws
AWS_EC2_API TransitGatewayMulticastDomainAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociations & WithResourceOwnerId(ResourceOwnerIdT &&value)
TransitGatewayMulticastDomainAssociations & WithTransitGatewayMulticastDomainId(TransitGatewayMulticastDomainIdT &&value)
AWS_EC2_API TransitGatewayMulticastDomainAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayMulticastDomainAssociations & WithSubnets(SubnetsT &&value)
TransitGatewayMulticastDomainAssociations & WithResourceType(TransitGatewayAttachmentResourceType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayMulticastDomainAssociations & AddSubnets(SubnetsT &&value)
TransitGatewayMulticastDomainAssociations & WithResourceId(ResourceIdT &&value)
TransitGatewayMulticastDomainAssociations & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream