AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
GatewayInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGateway_EXPORTS.h>
9#include <aws/storagegateway/model/HostEnvironment.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace StorageGateway {
21namespace Model {
22
29 public:
30 AWS_STORAGEGATEWAY_API GatewayInfo() = default;
31 AWS_STORAGEGATEWAY_API GatewayInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_STORAGEGATEWAY_API GatewayInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetGatewayId() const { return m_gatewayId; }
42 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
43 template <typename GatewayIdT = Aws::String>
44 void SetGatewayId(GatewayIdT&& value) {
45 m_gatewayIdHasBeenSet = true;
46 m_gatewayId = std::forward<GatewayIdT>(value);
47 }
48 template <typename GatewayIdT = Aws::String>
49 GatewayInfo& WithGatewayId(GatewayIdT&& value) {
50 SetGatewayId(std::forward<GatewayIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
62 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
63 template <typename GatewayARNT = Aws::String>
64 void SetGatewayARN(GatewayARNT&& value) {
65 m_gatewayARNHasBeenSet = true;
66 m_gatewayARN = std::forward<GatewayARNT>(value);
67 }
68 template <typename GatewayARNT = Aws::String>
69 GatewayInfo& WithGatewayARN(GatewayARNT&& value) {
70 SetGatewayARN(std::forward<GatewayARNT>(value));
71 return *this;
72 }
74
76
84 inline const Aws::String& GetGatewayType() const { return m_gatewayType; }
85 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
86 template <typename GatewayTypeT = Aws::String>
87 void SetGatewayType(GatewayTypeT&& value) {
88 m_gatewayTypeHasBeenSet = true;
89 m_gatewayType = std::forward<GatewayTypeT>(value);
90 }
91 template <typename GatewayTypeT = Aws::String>
92 GatewayInfo& WithGatewayType(GatewayTypeT&& value) {
93 SetGatewayType(std::forward<GatewayTypeT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetGatewayOperationalState() const { return m_gatewayOperationalState; }
104 inline bool GatewayOperationalStateHasBeenSet() const { return m_gatewayOperationalStateHasBeenSet; }
105 template <typename GatewayOperationalStateT = Aws::String>
106 void SetGatewayOperationalState(GatewayOperationalStateT&& value) {
107 m_gatewayOperationalStateHasBeenSet = true;
108 m_gatewayOperationalState = std::forward<GatewayOperationalStateT>(value);
109 }
110 template <typename GatewayOperationalStateT = Aws::String>
111 GatewayInfo& WithGatewayOperationalState(GatewayOperationalStateT&& value) {
112 SetGatewayOperationalState(std::forward<GatewayOperationalStateT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetGatewayName() const { return m_gatewayName; }
122 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
123 template <typename GatewayNameT = Aws::String>
124 void SetGatewayName(GatewayNameT&& value) {
125 m_gatewayNameHasBeenSet = true;
126 m_gatewayName = std::forward<GatewayNameT>(value);
127 }
128 template <typename GatewayNameT = Aws::String>
129 GatewayInfo& WithGatewayName(GatewayNameT&& value) {
130 SetGatewayName(std::forward<GatewayNameT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
140 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
141 template <typename Ec2InstanceIdT = Aws::String>
142 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
143 m_ec2InstanceIdHasBeenSet = true;
144 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
145 }
146 template <typename Ec2InstanceIdT = Aws::String>
147 GatewayInfo& WithEc2InstanceId(Ec2InstanceIdT&& value) {
148 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetEc2InstanceRegion() const { return m_ec2InstanceRegion; }
158 inline bool Ec2InstanceRegionHasBeenSet() const { return m_ec2InstanceRegionHasBeenSet; }
159 template <typename Ec2InstanceRegionT = Aws::String>
160 void SetEc2InstanceRegion(Ec2InstanceRegionT&& value) {
161 m_ec2InstanceRegionHasBeenSet = true;
162 m_ec2InstanceRegion = std::forward<Ec2InstanceRegionT>(value);
163 }
164 template <typename Ec2InstanceRegionT = Aws::String>
165 GatewayInfo& WithEc2InstanceRegion(Ec2InstanceRegionT&& value) {
166 SetEc2InstanceRegion(std::forward<Ec2InstanceRegionT>(value));
167 return *this;
168 }
170
172
177 inline HostEnvironment GetHostEnvironment() const { return m_hostEnvironment; }
178 inline bool HostEnvironmentHasBeenSet() const { return m_hostEnvironmentHasBeenSet; }
180 m_hostEnvironmentHasBeenSet = true;
181 m_hostEnvironment = value;
182 }
184 SetHostEnvironment(value);
185 return *this;
186 }
188
190
195 inline const Aws::String& GetHostEnvironmentId() const { return m_hostEnvironmentId; }
196 inline bool HostEnvironmentIdHasBeenSet() const { return m_hostEnvironmentIdHasBeenSet; }
197 template <typename HostEnvironmentIdT = Aws::String>
198 void SetHostEnvironmentId(HostEnvironmentIdT&& value) {
199 m_hostEnvironmentIdHasBeenSet = true;
200 m_hostEnvironmentId = std::forward<HostEnvironmentIdT>(value);
201 }
202 template <typename HostEnvironmentIdT = Aws::String>
203 GatewayInfo& WithHostEnvironmentId(HostEnvironmentIdT&& value) {
204 SetHostEnvironmentId(std::forward<HostEnvironmentIdT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetDeprecationDate() const { return m_deprecationDate; }
215 inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; }
216 template <typename DeprecationDateT = Aws::String>
217 void SetDeprecationDate(DeprecationDateT&& value) {
218 m_deprecationDateHasBeenSet = true;
219 m_deprecationDate = std::forward<DeprecationDateT>(value);
220 }
221 template <typename DeprecationDateT = Aws::String>
222 GatewayInfo& WithDeprecationDate(DeprecationDateT&& value) {
223 SetDeprecationDate(std::forward<DeprecationDateT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetSoftwareVersion() const { return m_softwareVersion; }
233 inline bool SoftwareVersionHasBeenSet() const { return m_softwareVersionHasBeenSet; }
234 template <typename SoftwareVersionT = Aws::String>
235 void SetSoftwareVersion(SoftwareVersionT&& value) {
236 m_softwareVersionHasBeenSet = true;
237 m_softwareVersion = std::forward<SoftwareVersionT>(value);
238 }
239 template <typename SoftwareVersionT = Aws::String>
240 GatewayInfo& WithSoftwareVersion(SoftwareVersionT&& value) {
241 SetSoftwareVersion(std::forward<SoftwareVersionT>(value));
242 return *this;
243 }
245 private:
246 Aws::String m_gatewayId;
247
248 Aws::String m_gatewayARN;
249
250 Aws::String m_gatewayType;
251
252 Aws::String m_gatewayOperationalState;
253
254 Aws::String m_gatewayName;
255
256 Aws::String m_ec2InstanceId;
257
258 Aws::String m_ec2InstanceRegion;
259
260 HostEnvironment m_hostEnvironment{HostEnvironment::NOT_SET};
261
262 Aws::String m_hostEnvironmentId;
263
264 Aws::String m_deprecationDate;
265
266 Aws::String m_softwareVersion;
267 bool m_gatewayIdHasBeenSet = false;
268 bool m_gatewayARNHasBeenSet = false;
269 bool m_gatewayTypeHasBeenSet = false;
270 bool m_gatewayOperationalStateHasBeenSet = false;
271 bool m_gatewayNameHasBeenSet = false;
272 bool m_ec2InstanceIdHasBeenSet = false;
273 bool m_ec2InstanceRegionHasBeenSet = false;
274 bool m_hostEnvironmentHasBeenSet = false;
275 bool m_hostEnvironmentIdHasBeenSet = false;
276 bool m_deprecationDateHasBeenSet = false;
277 bool m_softwareVersionHasBeenSet = false;
278};
279
280} // namespace Model
281} // namespace StorageGateway
282} // namespace Aws
void SetGatewayName(GatewayNameT &&value)
GatewayInfo & WithEc2InstanceRegion(Ec2InstanceRegionT &&value)
GatewayInfo & WithEc2InstanceId(Ec2InstanceIdT &&value)
GatewayInfo & WithHostEnvironment(HostEnvironment value)
const Aws::String & GetHostEnvironmentId() const
const Aws::String & GetGatewayId() const
Definition GatewayInfo.h:41
GatewayInfo & WithHostEnvironmentId(HostEnvironmentIdT &&value)
void SetHostEnvironment(HostEnvironment value)
const Aws::String & GetDeprecationDate() const
void SetEc2InstanceId(Ec2InstanceIdT &&value)
AWS_STORAGEGATEWAY_API GatewayInfo(Aws::Utils::Json::JsonView jsonValue)
GatewayInfo & WithGatewayId(GatewayIdT &&value)
Definition GatewayInfo.h:49
const Aws::String & GetGatewayOperationalState() const
void SetGatewayOperationalState(GatewayOperationalStateT &&value)
GatewayInfo & WithGatewayName(GatewayNameT &&value)
void SetGatewayId(GatewayIdT &&value)
Definition GatewayInfo.h:44
AWS_STORAGEGATEWAY_API GatewayInfo()=default
GatewayInfo & WithGatewayOperationalState(GatewayOperationalStateT &&value)
AWS_STORAGEGATEWAY_API GatewayInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayInfo & WithSoftwareVersion(SoftwareVersionT &&value)
HostEnvironment GetHostEnvironment() const
const Aws::String & GetGatewayName() const
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayInfo & WithGatewayARN(GatewayARNT &&value)
Definition GatewayInfo.h:69
void SetGatewayType(GatewayTypeT &&value)
Definition GatewayInfo.h:87
void SetHostEnvironmentId(HostEnvironmentIdT &&value)
void SetDeprecationDate(DeprecationDateT &&value)
void SetSoftwareVersion(SoftwareVersionT &&value)
const Aws::String & GetGatewayARN() const
Definition GatewayInfo.h:61
GatewayInfo & WithDeprecationDate(DeprecationDateT &&value)
GatewayInfo & WithGatewayType(GatewayTypeT &&value)
Definition GatewayInfo.h:92
const Aws::String & GetEc2InstanceId() const
const Aws::String & GetSoftwareVersion() const
void SetGatewayARN(GatewayARNT &&value)
Definition GatewayInfo.h:64
const Aws::String & GetEc2InstanceRegion() const
const Aws::String & GetGatewayType() const
Definition GatewayInfo.h:84
void SetEc2InstanceRegion(Ec2InstanceRegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue