AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayMulticastDomainAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/SubnetAssociation.h>
11#include <aws/ec2/model/TransitGatewayAttachmentResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
44 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
45 template <typename TransitGatewayAttachmentIdT = Aws::String>
46 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
47 m_transitGatewayAttachmentIdHasBeenSet = true;
48 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
49 }
50 template <typename TransitGatewayAttachmentIdT = Aws::String>
52 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
53 return *this;
54 }
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) {
65 m_resourceIdHasBeenSet = true;
66 m_resourceId = std::forward<ResourceIdT>(value);
67 }
68 template <typename ResourceIdT = Aws::String>
70 SetResourceId(std::forward<ResourceIdT>(value));
71 return *this;
72 }
74
76
79 inline TransitGatewayAttachmentResourceType GetResourceType() const { return m_resourceType; }
80 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
82 m_resourceTypeHasBeenSet = true;
83 m_resourceType = value;
84 }
86 SetResourceType(value);
87 return *this;
88 }
90
92
96 inline const Aws::String& GetResourceOwnerId() const { return m_resourceOwnerId; }
97 inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; }
98 template <typename ResourceOwnerIdT = Aws::String>
99 void SetResourceOwnerId(ResourceOwnerIdT&& value) {
100 m_resourceOwnerIdHasBeenSet = true;
101 m_resourceOwnerId = std::forward<ResourceOwnerIdT>(value);
102 }
103 template <typename ResourceOwnerIdT = Aws::String>
105 SetResourceOwnerId(std::forward<ResourceOwnerIdT>(value));
106 return *this;
107 }
109
111
114 inline const SubnetAssociation& GetSubnet() const { return m_subnet; }
115 inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
116 template <typename SubnetT = SubnetAssociation>
117 void SetSubnet(SubnetT&& value) {
118 m_subnetHasBeenSet = true;
119 m_subnet = std::forward<SubnetT>(value);
120 }
121 template <typename SubnetT = SubnetAssociation>
123 SetSubnet(std::forward<SubnetT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_transitGatewayAttachmentId;
129
130 Aws::String m_resourceId;
131
133
134 Aws::String m_resourceOwnerId;
135
136 SubnetAssociation m_subnet;
137 bool m_transitGatewayAttachmentIdHasBeenSet = false;
138 bool m_resourceIdHasBeenSet = false;
139 bool m_resourceTypeHasBeenSet = false;
140 bool m_resourceOwnerIdHasBeenSet = false;
141 bool m_subnetHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace EC2
146} // 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