AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
PrivateConnectionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/PrivateConnectionStatus.h>
11#include <aws/devops-agent/model/PrivateConnectionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsAgent {
23namespace Model {
24
31 public:
32 AWS_DEVOPSAGENT_API PrivateConnectionSummary() = default;
35 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline PrivateConnectionType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(PrivateConnectionType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetResourceGatewayId() const { return m_resourceGatewayId; }
77 inline bool ResourceGatewayIdHasBeenSet() const { return m_resourceGatewayIdHasBeenSet; }
78 template <typename ResourceGatewayIdT = Aws::String>
79 void SetResourceGatewayId(ResourceGatewayIdT&& value) {
80 m_resourceGatewayIdHasBeenSet = true;
81 m_resourceGatewayId = std::forward<ResourceGatewayIdT>(value);
82 }
83 template <typename ResourceGatewayIdT = Aws::String>
84 PrivateConnectionSummary& WithResourceGatewayId(ResourceGatewayIdT&& value) {
85 SetResourceGatewayId(std::forward<ResourceGatewayIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetHostAddress() const { return m_hostAddress; }
96 inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
97 template <typename HostAddressT = Aws::String>
98 void SetHostAddress(HostAddressT&& value) {
99 m_hostAddressHasBeenSet = true;
100 m_hostAddress = std::forward<HostAddressT>(value);
101 }
102 template <typename HostAddressT = Aws::String>
104 SetHostAddress(std::forward<HostAddressT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetVpcId() const { return m_vpcId; }
115 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
116 template <typename VpcIdT = Aws::String>
117 void SetVpcId(VpcIdT&& value) {
118 m_vpcIdHasBeenSet = true;
119 m_vpcId = std::forward<VpcIdT>(value);
120 }
121 template <typename VpcIdT = Aws::String>
123 SetVpcId(std::forward<VpcIdT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetResourceConfigurationId() const { return m_resourceConfigurationId; }
134 inline bool ResourceConfigurationIdHasBeenSet() const { return m_resourceConfigurationIdHasBeenSet; }
135 template <typename ResourceConfigurationIdT = Aws::String>
136 void SetResourceConfigurationId(ResourceConfigurationIdT&& value) {
137 m_resourceConfigurationIdHasBeenSet = true;
138 m_resourceConfigurationId = std::forward<ResourceConfigurationIdT>(value);
139 }
140 template <typename ResourceConfigurationIdT = Aws::String>
141 PrivateConnectionSummary& WithResourceConfigurationId(ResourceConfigurationIdT&& value) {
142 SetResourceConfigurationId(std::forward<ResourceConfigurationIdT>(value));
143 return *this;
144 }
146
148
151 inline PrivateConnectionStatus GetStatus() const { return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 m_statusHasBeenSet = true;
155 m_status = value;
156 }
158 SetStatus(value);
159 return *this;
160 }
162
164
168 inline const Aws::Utils::DateTime& GetCertificateExpiryTime() const { return m_certificateExpiryTime; }
169 inline bool CertificateExpiryTimeHasBeenSet() const { return m_certificateExpiryTimeHasBeenSet; }
170 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
171 void SetCertificateExpiryTime(CertificateExpiryTimeT&& value) {
172 m_certificateExpiryTimeHasBeenSet = true;
173 m_certificateExpiryTime = std::forward<CertificateExpiryTimeT>(value);
174 }
175 template <typename CertificateExpiryTimeT = Aws::Utils::DateTime>
176 PrivateConnectionSummary& WithCertificateExpiryTime(CertificateExpiryTimeT&& value) {
177 SetCertificateExpiryTime(std::forward<CertificateExpiryTimeT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_name;
183
185
186 Aws::String m_resourceGatewayId;
187
188 Aws::String m_hostAddress;
189
190 Aws::String m_vpcId;
191
192 Aws::String m_resourceConfigurationId;
193
195
196 Aws::Utils::DateTime m_certificateExpiryTime{};
197 bool m_nameHasBeenSet = false;
198 bool m_typeHasBeenSet = false;
199 bool m_resourceGatewayIdHasBeenSet = false;
200 bool m_hostAddressHasBeenSet = false;
201 bool m_vpcIdHasBeenSet = false;
202 bool m_resourceConfigurationIdHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_certificateExpiryTimeHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace DevOpsAgent
209} // namespace Aws
AWS_DEVOPSAGENT_API PrivateConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateExpiryTime(CertificateExpiryTimeT &&value)
const Aws::Utils::DateTime & GetCertificateExpiryTime() const
void SetResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithType(PrivateConnectionType value)
PrivateConnectionSummary & WithVpcId(VpcIdT &&value)
PrivateConnectionSummary & WithCertificateExpiryTime(CertificateExpiryTimeT &&value)
PrivateConnectionSummary & WithName(NameT &&value)
AWS_DEVOPSAGENT_API PrivateConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API PrivateConnectionSummary()=default
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PrivateConnectionSummary & WithResourceGatewayId(ResourceGatewayIdT &&value)
PrivateConnectionSummary & WithResourceConfigurationId(ResourceConfigurationIdT &&value)
PrivateConnectionSummary & WithStatus(PrivateConnectionStatus value)
PrivateConnectionSummary & WithHostAddress(HostAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue