AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
TransitGatewayClientVpnAttachment.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/TransitGatewayAttachmentStatusType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API TransitGatewayClientVpnAttachment() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetTransitGatewayAttachmentId() const { return m_transitGatewayAttachmentId; }
43 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; }
44 template <typename TransitGatewayAttachmentIdT = Aws::String>
45 void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT&& value) {
46 m_transitGatewayAttachmentIdHasBeenSet = true;
47 m_transitGatewayAttachmentId = std::forward<TransitGatewayAttachmentIdT>(value);
48 }
49 template <typename TransitGatewayAttachmentIdT = Aws::String>
51 SetTransitGatewayAttachmentId(std::forward<TransitGatewayAttachmentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
61 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
62 template <typename TransitGatewayIdT = Aws::String>
63 void SetTransitGatewayId(TransitGatewayIdT&& value) {
64 m_transitGatewayIdHasBeenSet = true;
65 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
66 }
67 template <typename TransitGatewayIdT = Aws::String>
69 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetClientVpnEndpointId() const { return m_clientVpnEndpointId; }
79 inline bool ClientVpnEndpointIdHasBeenSet() const { return m_clientVpnEndpointIdHasBeenSet; }
80 template <typename ClientVpnEndpointIdT = Aws::String>
81 void SetClientVpnEndpointId(ClientVpnEndpointIdT&& value) {
82 m_clientVpnEndpointIdHasBeenSet = true;
83 m_clientVpnEndpointId = std::forward<ClientVpnEndpointIdT>(value);
84 }
85 template <typename ClientVpnEndpointIdT = Aws::String>
87 SetClientVpnEndpointId(std::forward<ClientVpnEndpointIdT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetClientVpnOwnerId() const { return m_clientVpnOwnerId; }
98 inline bool ClientVpnOwnerIdHasBeenSet() const { return m_clientVpnOwnerIdHasBeenSet; }
99 template <typename ClientVpnOwnerIdT = Aws::String>
100 void SetClientVpnOwnerId(ClientVpnOwnerIdT&& value) {
101 m_clientVpnOwnerIdHasBeenSet = true;
102 m_clientVpnOwnerId = std::forward<ClientVpnOwnerIdT>(value);
103 }
104 template <typename ClientVpnOwnerIdT = Aws::String>
106 SetClientVpnOwnerId(std::forward<ClientVpnOwnerIdT>(value));
107 return *this;
108 }
110
112
115 inline TransitGatewayAttachmentStatusType GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 m_stateHasBeenSet = true;
119 m_state = value;
120 }
122 SetState(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
132 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
133 template <typename CreationTimeT = Aws::String>
134 void SetCreationTime(CreationTimeT&& value) {
135 m_creationTimeHasBeenSet = true;
136 m_creationTime = std::forward<CreationTimeT>(value);
137 }
138 template <typename CreationTimeT = Aws::String>
140 SetCreationTime(std::forward<CreationTimeT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_transitGatewayAttachmentId;
146
147 Aws::String m_transitGatewayId;
148
149 Aws::String m_clientVpnEndpointId;
150
151 Aws::String m_clientVpnOwnerId;
152
154
155 Aws::String m_creationTime;
156 bool m_transitGatewayAttachmentIdHasBeenSet = false;
157 bool m_transitGatewayIdHasBeenSet = false;
158 bool m_clientVpnEndpointIdHasBeenSet = false;
159 bool m_clientVpnOwnerIdHasBeenSet = false;
160 bool m_stateHasBeenSet = false;
161 bool m_creationTimeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
TransitGatewayClientVpnAttachment & WithClientVpnEndpointId(ClientVpnEndpointIdT &&value)
TransitGatewayClientVpnAttachment & WithClientVpnOwnerId(ClientVpnOwnerIdT &&value)
void SetState(TransitGatewayAttachmentStatusType value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayClientVpnAttachment & WithTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
TransitGatewayClientVpnAttachment & WithTransitGatewayId(TransitGatewayIdT &&value)
TransitGatewayClientVpnAttachment & WithCreationTime(CreationTimeT &&value)
void SetTransitGatewayAttachmentId(TransitGatewayAttachmentIdT &&value)
AWS_EC2_API TransitGatewayClientVpnAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayClientVpnAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayClientVpnAttachment & WithState(TransitGatewayAttachmentStatusType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream