AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GatewayInfo.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/model/HostEnvironment.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace StorageGateway
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_STORAGEGATEWAY_API GatewayInfo();
36 AWS_STORAGEGATEWAY_API GatewayInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_STORAGEGATEWAY_API GatewayInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
48 inline bool GatewayIdHasBeenSet() const { return m_gatewayIdHasBeenSet; }
49 inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
50 inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::move(value); }
51 inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
52 inline GatewayInfo& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
53 inline GatewayInfo& WithGatewayId(Aws::String&& value) { SetGatewayId(std::move(value)); return *this;}
54 inline GatewayInfo& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
56
58
63 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
64 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
65 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
66 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
67 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
68 inline GatewayInfo& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
69 inline GatewayInfo& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
70 inline GatewayInfo& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
72
74
82 inline const Aws::String& GetGatewayType() const{ return m_gatewayType; }
83 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
84 inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
85 inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); }
86 inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); }
87 inline GatewayInfo& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;}
88 inline GatewayInfo& WithGatewayType(Aws::String&& value) { SetGatewayType(std::move(value)); return *this;}
89 inline GatewayInfo& WithGatewayType(const char* value) { SetGatewayType(value); return *this;}
91
93
97 inline const Aws::String& GetGatewayOperationalState() const{ return m_gatewayOperationalState; }
98 inline bool GatewayOperationalStateHasBeenSet() const { return m_gatewayOperationalStateHasBeenSet; }
99 inline void SetGatewayOperationalState(const Aws::String& value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState = value; }
100 inline void SetGatewayOperationalState(Aws::String&& value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState = std::move(value); }
101 inline void SetGatewayOperationalState(const char* value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState.assign(value); }
103 inline GatewayInfo& WithGatewayOperationalState(Aws::String&& value) { SetGatewayOperationalState(std::move(value)); return *this;}
104 inline GatewayInfo& WithGatewayOperationalState(const char* value) { SetGatewayOperationalState(value); return *this;}
106
108
111 inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
112 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
113 inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
114 inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); }
115 inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
116 inline GatewayInfo& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
117 inline GatewayInfo& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;}
118 inline GatewayInfo& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
120
122
125 inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; }
126 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
127 inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; }
128 inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); }
129 inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); }
130 inline GatewayInfo& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;}
131 inline GatewayInfo& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;}
132 inline GatewayInfo& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;}
134
136
139 inline const Aws::String& GetEc2InstanceRegion() const{ return m_ec2InstanceRegion; }
140 inline bool Ec2InstanceRegionHasBeenSet() const { return m_ec2InstanceRegionHasBeenSet; }
141 inline void SetEc2InstanceRegion(const Aws::String& value) { m_ec2InstanceRegionHasBeenSet = true; m_ec2InstanceRegion = value; }
142 inline void SetEc2InstanceRegion(Aws::String&& value) { m_ec2InstanceRegionHasBeenSet = true; m_ec2InstanceRegion = std::move(value); }
143 inline void SetEc2InstanceRegion(const char* value) { m_ec2InstanceRegionHasBeenSet = true; m_ec2InstanceRegion.assign(value); }
144 inline GatewayInfo& WithEc2InstanceRegion(const Aws::String& value) { SetEc2InstanceRegion(value); return *this;}
145 inline GatewayInfo& WithEc2InstanceRegion(Aws::String&& value) { SetEc2InstanceRegion(std::move(value)); return *this;}
146 inline GatewayInfo& WithEc2InstanceRegion(const char* value) { SetEc2InstanceRegion(value); return *this;}
148
150
155 inline const HostEnvironment& GetHostEnvironment() const{ return m_hostEnvironment; }
156 inline bool HostEnvironmentHasBeenSet() const { return m_hostEnvironmentHasBeenSet; }
157 inline void SetHostEnvironment(const HostEnvironment& value) { m_hostEnvironmentHasBeenSet = true; m_hostEnvironment = value; }
158 inline void SetHostEnvironment(HostEnvironment&& value) { m_hostEnvironmentHasBeenSet = true; m_hostEnvironment = std::move(value); }
159 inline GatewayInfo& WithHostEnvironment(const HostEnvironment& value) { SetHostEnvironment(value); return *this;}
160 inline GatewayInfo& WithHostEnvironment(HostEnvironment&& value) { SetHostEnvironment(std::move(value)); return *this;}
162
164
169 inline const Aws::String& GetHostEnvironmentId() const{ return m_hostEnvironmentId; }
170 inline bool HostEnvironmentIdHasBeenSet() const { return m_hostEnvironmentIdHasBeenSet; }
171 inline void SetHostEnvironmentId(const Aws::String& value) { m_hostEnvironmentIdHasBeenSet = true; m_hostEnvironmentId = value; }
172 inline void SetHostEnvironmentId(Aws::String&& value) { m_hostEnvironmentIdHasBeenSet = true; m_hostEnvironmentId = std::move(value); }
173 inline void SetHostEnvironmentId(const char* value) { m_hostEnvironmentIdHasBeenSet = true; m_hostEnvironmentId.assign(value); }
174 inline GatewayInfo& WithHostEnvironmentId(const Aws::String& value) { SetHostEnvironmentId(value); return *this;}
175 inline GatewayInfo& WithHostEnvironmentId(Aws::String&& value) { SetHostEnvironmentId(std::move(value)); return *this;}
176 inline GatewayInfo& WithHostEnvironmentId(const char* value) { SetHostEnvironmentId(value); return *this;}
178
180
184 inline const Aws::String& GetDeprecationDate() const{ return m_deprecationDate; }
185 inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; }
186 inline void SetDeprecationDate(const Aws::String& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = value; }
187 inline void SetDeprecationDate(Aws::String&& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = std::move(value); }
188 inline void SetDeprecationDate(const char* value) { m_deprecationDateHasBeenSet = true; m_deprecationDate.assign(value); }
189 inline GatewayInfo& WithDeprecationDate(const Aws::String& value) { SetDeprecationDate(value); return *this;}
190 inline GatewayInfo& WithDeprecationDate(Aws::String&& value) { SetDeprecationDate(std::move(value)); return *this;}
191 inline GatewayInfo& WithDeprecationDate(const char* value) { SetDeprecationDate(value); return *this;}
193
195
198 inline const Aws::String& GetSoftwareVersion() const{ return m_softwareVersion; }
199 inline bool SoftwareVersionHasBeenSet() const { return m_softwareVersionHasBeenSet; }
200 inline void SetSoftwareVersion(const Aws::String& value) { m_softwareVersionHasBeenSet = true; m_softwareVersion = value; }
201 inline void SetSoftwareVersion(Aws::String&& value) { m_softwareVersionHasBeenSet = true; m_softwareVersion = std::move(value); }
202 inline void SetSoftwareVersion(const char* value) { m_softwareVersionHasBeenSet = true; m_softwareVersion.assign(value); }
203 inline GatewayInfo& WithSoftwareVersion(const Aws::String& value) { SetSoftwareVersion(value); return *this;}
204 inline GatewayInfo& WithSoftwareVersion(Aws::String&& value) { SetSoftwareVersion(std::move(value)); return *this;}
205 inline GatewayInfo& WithSoftwareVersion(const char* value) { SetSoftwareVersion(value); return *this;}
207 private:
208
209 Aws::String m_gatewayId;
210 bool m_gatewayIdHasBeenSet = false;
211
212 Aws::String m_gatewayARN;
213 bool m_gatewayARNHasBeenSet = false;
214
215 Aws::String m_gatewayType;
216 bool m_gatewayTypeHasBeenSet = false;
217
218 Aws::String m_gatewayOperationalState;
219 bool m_gatewayOperationalStateHasBeenSet = false;
220
221 Aws::String m_gatewayName;
222 bool m_gatewayNameHasBeenSet = false;
223
224 Aws::String m_ec2InstanceId;
225 bool m_ec2InstanceIdHasBeenSet = false;
226
227 Aws::String m_ec2InstanceRegion;
228 bool m_ec2InstanceRegionHasBeenSet = false;
229
230 HostEnvironment m_hostEnvironment;
231 bool m_hostEnvironmentHasBeenSet = false;
232
233 Aws::String m_hostEnvironmentId;
234 bool m_hostEnvironmentIdHasBeenSet = false;
235
236 Aws::String m_deprecationDate;
237 bool m_deprecationDateHasBeenSet = false;
238
239 Aws::String m_softwareVersion;
240 bool m_softwareVersionHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace StorageGateway
245} // namespace Aws
void SetEc2InstanceId(const Aws::String &value)
GatewayInfo & WithGatewayARN(const Aws::String &value)
Definition GatewayInfo.h:68
GatewayInfo & WithEc2InstanceId(const Aws::String &value)
void SetEc2InstanceRegion(Aws::String &&value)
const Aws::String & GetHostEnvironmentId() const
GatewayInfo & WithEc2InstanceRegion(Aws::String &&value)
GatewayInfo & WithSoftwareVersion(const Aws::String &value)
void SetSoftwareVersion(const Aws::String &value)
const Aws::String & GetGatewayId() const
Definition GatewayInfo.h:47
GatewayInfo & WithGatewayOperationalState(const Aws::String &value)
void SetEc2InstanceRegion(const Aws::String &value)
GatewayInfo & WithHostEnvironmentId(const Aws::String &value)
const Aws::String & GetDeprecationDate() const
void SetDeprecationDate(const Aws::String &value)
GatewayInfo & WithGatewayName(const char *value)
void SetDeprecationDate(Aws::String &&value)
AWS_STORAGEGATEWAY_API GatewayInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGatewayOperationalState() const
Definition GatewayInfo.h:97
GatewayInfo & WithDeprecationDate(const Aws::String &value)
GatewayInfo & WithEc2InstanceId(const char *value)
GatewayInfo & WithGatewayId(const char *value)
Definition GatewayInfo.h:54
void SetDeprecationDate(const char *value)
GatewayInfo & WithGatewayType(const Aws::String &value)
Definition GatewayInfo.h:87
GatewayInfo & WithGatewayId(const Aws::String &value)
Definition GatewayInfo.h:52
void SetHostEnvironmentId(Aws::String &&value)
void SetGatewayId(const Aws::String &value)
Definition GatewayInfo.h:49
GatewayInfo & WithGatewayOperationalState(const char *value)
GatewayInfo & WithGatewayOperationalState(Aws::String &&value)
GatewayInfo & WithHostEnvironment(const HostEnvironment &value)
void SetGatewayOperationalState(const char *value)
AWS_STORAGEGATEWAY_API GatewayInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGatewayName() const
GatewayInfo & WithHostEnvironment(HostEnvironment &&value)
const HostEnvironment & GetHostEnvironment() const
GatewayInfo & WithHostEnvironmentId(Aws::String &&value)
GatewayInfo & WithGatewayId(Aws::String &&value)
Definition GatewayInfo.h:53
void SetHostEnvironmentId(const char *value)
void SetHostEnvironmentId(const Aws::String &value)
void SetGatewayOperationalState(Aws::String &&value)
GatewayInfo & WithDeprecationDate(const char *value)
void SetGatewayOperationalState(const Aws::String &value)
Definition GatewayInfo.h:99
void SetGatewayType(const Aws::String &value)
Definition GatewayInfo.h:84
void SetHostEnvironment(HostEnvironment &&value)
void SetSoftwareVersion(Aws::String &&value)
GatewayInfo & WithEc2InstanceRegion(const char *value)
GatewayInfo & WithDeprecationDate(Aws::String &&value)
GatewayInfo & WithGatewayARN(Aws::String &&value)
Definition GatewayInfo.h:69
void SetHostEnvironment(const HostEnvironment &value)
GatewayInfo & WithGatewayType(Aws::String &&value)
Definition GatewayInfo.h:88
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayInfo & WithEc2InstanceId(Aws::String &&value)
void SetGatewayARN(const Aws::String &value)
Definition GatewayInfo.h:65
void SetEc2InstanceId(const char *value)
void SetGatewayName(Aws::String &&value)
GatewayInfo & WithGatewayType(const char *value)
Definition GatewayInfo.h:89
GatewayInfo & WithSoftwareVersion(Aws::String &&value)
GatewayInfo & WithEc2InstanceRegion(const Aws::String &value)
void SetGatewayId(Aws::String &&value)
Definition GatewayInfo.h:50
void SetGatewayType(const char *value)
Definition GatewayInfo.h:86
void SetEc2InstanceId(Aws::String &&value)
const Aws::String & GetGatewayARN() const
Definition GatewayInfo.h:63
AWS_STORAGEGATEWAY_API GatewayInfo()
GatewayInfo & WithGatewayName(const Aws::String &value)
void SetSoftwareVersion(const char *value)
void SetGatewayName(const Aws::String &value)
const Aws::String & GetEc2InstanceId() const
void SetGatewayType(Aws::String &&value)
Definition GatewayInfo.h:85
void SetGatewayARN(const char *value)
Definition GatewayInfo.h:67
const Aws::String & GetSoftwareVersion() const
void SetGatewayId(const char *value)
Definition GatewayInfo.h:51
const Aws::String & GetEc2InstanceRegion() const
void SetGatewayName(const char *value)
const Aws::String & GetGatewayType() const
Definition GatewayInfo.h:82
void SetGatewayARN(Aws::String &&value)
Definition GatewayInfo.h:66
GatewayInfo & WithGatewayARN(const char *value)
Definition GatewayInfo.h:70
GatewayInfo & WithHostEnvironmentId(const char *value)
GatewayInfo & WithSoftwareVersion(const char *value)
GatewayInfo & WithGatewayName(Aws::String &&value)
void SetEc2InstanceRegion(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue