AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GatewayIdT = Aws::String>
50 void SetGatewayId(GatewayIdT&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = std::forward<GatewayIdT>(value); }
51 template<typename GatewayIdT = Aws::String>
52 GatewayInfo& WithGatewayId(GatewayIdT&& value) { SetGatewayId(std::forward<GatewayIdT>(value)); return *this;}
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) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
65 template<typename GatewayARNT = Aws::String>
66 GatewayInfo& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
68
70
78 inline const Aws::String& GetGatewayType() const { return m_gatewayType; }
79 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
80 template<typename GatewayTypeT = Aws::String>
81 void SetGatewayType(GatewayTypeT&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::forward<GatewayTypeT>(value); }
82 template<typename GatewayTypeT = Aws::String>
83 GatewayInfo& WithGatewayType(GatewayTypeT&& value) { SetGatewayType(std::forward<GatewayTypeT>(value)); return *this;}
85
87
91 inline const Aws::String& GetGatewayOperationalState() const { return m_gatewayOperationalState; }
92 inline bool GatewayOperationalStateHasBeenSet() const { return m_gatewayOperationalStateHasBeenSet; }
93 template<typename GatewayOperationalStateT = Aws::String>
94 void SetGatewayOperationalState(GatewayOperationalStateT&& value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState = std::forward<GatewayOperationalStateT>(value); }
95 template<typename GatewayOperationalStateT = Aws::String>
96 GatewayInfo& WithGatewayOperationalState(GatewayOperationalStateT&& value) { SetGatewayOperationalState(std::forward<GatewayOperationalStateT>(value)); return *this;}
98
100
103 inline const Aws::String& GetGatewayName() const { return m_gatewayName; }
104 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
105 template<typename GatewayNameT = Aws::String>
106 void SetGatewayName(GatewayNameT&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::forward<GatewayNameT>(value); }
107 template<typename GatewayNameT = Aws::String>
108 GatewayInfo& WithGatewayName(GatewayNameT&& value) { SetGatewayName(std::forward<GatewayNameT>(value)); return *this;}
110
112
115 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
116 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
117 template<typename Ec2InstanceIdT = Aws::String>
118 void SetEc2InstanceId(Ec2InstanceIdT&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value); }
119 template<typename Ec2InstanceIdT = Aws::String>
120 GatewayInfo& WithEc2InstanceId(Ec2InstanceIdT&& value) { SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value)); return *this;}
122
124
127 inline const Aws::String& GetEc2InstanceRegion() const { return m_ec2InstanceRegion; }
128 inline bool Ec2InstanceRegionHasBeenSet() const { return m_ec2InstanceRegionHasBeenSet; }
129 template<typename Ec2InstanceRegionT = Aws::String>
130 void SetEc2InstanceRegion(Ec2InstanceRegionT&& value) { m_ec2InstanceRegionHasBeenSet = true; m_ec2InstanceRegion = std::forward<Ec2InstanceRegionT>(value); }
131 template<typename Ec2InstanceRegionT = Aws::String>
132 GatewayInfo& WithEc2InstanceRegion(Ec2InstanceRegionT&& value) { SetEc2InstanceRegion(std::forward<Ec2InstanceRegionT>(value)); return *this;}
134
136
141 inline HostEnvironment GetHostEnvironment() const { return m_hostEnvironment; }
142 inline bool HostEnvironmentHasBeenSet() const { return m_hostEnvironmentHasBeenSet; }
143 inline void SetHostEnvironment(HostEnvironment value) { m_hostEnvironmentHasBeenSet = true; m_hostEnvironment = value; }
146
148
153 inline const Aws::String& GetHostEnvironmentId() const { return m_hostEnvironmentId; }
154 inline bool HostEnvironmentIdHasBeenSet() const { return m_hostEnvironmentIdHasBeenSet; }
155 template<typename HostEnvironmentIdT = Aws::String>
156 void SetHostEnvironmentId(HostEnvironmentIdT&& value) { m_hostEnvironmentIdHasBeenSet = true; m_hostEnvironmentId = std::forward<HostEnvironmentIdT>(value); }
157 template<typename HostEnvironmentIdT = Aws::String>
158 GatewayInfo& WithHostEnvironmentId(HostEnvironmentIdT&& value) { SetHostEnvironmentId(std::forward<HostEnvironmentIdT>(value)); return *this;}
160
162
166 inline const Aws::String& GetDeprecationDate() const { return m_deprecationDate; }
167 inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; }
168 template<typename DeprecationDateT = Aws::String>
169 void SetDeprecationDate(DeprecationDateT&& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = std::forward<DeprecationDateT>(value); }
170 template<typename DeprecationDateT = Aws::String>
171 GatewayInfo& WithDeprecationDate(DeprecationDateT&& value) { SetDeprecationDate(std::forward<DeprecationDateT>(value)); return *this;}
173
175
178 inline const Aws::String& GetSoftwareVersion() const { return m_softwareVersion; }
179 inline bool SoftwareVersionHasBeenSet() const { return m_softwareVersionHasBeenSet; }
180 template<typename SoftwareVersionT = Aws::String>
181 void SetSoftwareVersion(SoftwareVersionT&& value) { m_softwareVersionHasBeenSet = true; m_softwareVersion = std::forward<SoftwareVersionT>(value); }
182 template<typename SoftwareVersionT = Aws::String>
183 GatewayInfo& WithSoftwareVersion(SoftwareVersionT&& value) { SetSoftwareVersion(std::forward<SoftwareVersionT>(value)); return *this;}
185 private:
186
187 Aws::String m_gatewayId;
188 bool m_gatewayIdHasBeenSet = false;
189
190 Aws::String m_gatewayARN;
191 bool m_gatewayARNHasBeenSet = false;
192
193 Aws::String m_gatewayType;
194 bool m_gatewayTypeHasBeenSet = false;
195
196 Aws::String m_gatewayOperationalState;
197 bool m_gatewayOperationalStateHasBeenSet = false;
198
199 Aws::String m_gatewayName;
200 bool m_gatewayNameHasBeenSet = false;
201
202 Aws::String m_ec2InstanceId;
203 bool m_ec2InstanceIdHasBeenSet = false;
204
205 Aws::String m_ec2InstanceRegion;
206 bool m_ec2InstanceRegionHasBeenSet = false;
207
208 HostEnvironment m_hostEnvironment{HostEnvironment::NOT_SET};
209 bool m_hostEnvironmentHasBeenSet = false;
210
211 Aws::String m_hostEnvironmentId;
212 bool m_hostEnvironmentIdHasBeenSet = false;
213
214 Aws::String m_deprecationDate;
215 bool m_deprecationDateHasBeenSet = false;
216
217 Aws::String m_softwareVersion;
218 bool m_softwareVersionHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace StorageGateway
223} // 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:47
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:52
const Aws::String & GetGatewayOperationalState() const
Definition GatewayInfo.h:91
void SetGatewayOperationalState(GatewayOperationalStateT &&value)
Definition GatewayInfo.h:94
GatewayInfo & WithGatewayName(GatewayNameT &&value)
void SetGatewayId(GatewayIdT &&value)
Definition GatewayInfo.h:50
AWS_STORAGEGATEWAY_API GatewayInfo()=default
GatewayInfo & WithGatewayOperationalState(GatewayOperationalStateT &&value)
Definition GatewayInfo.h:96
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:66
void SetGatewayType(GatewayTypeT &&value)
Definition GatewayInfo.h:81
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:83
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:78
void SetEc2InstanceRegion(Ec2InstanceRegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue