AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GatewayDetails.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/model/GatewayType.h>
9#include <aws/backup-gateway/model/MaintenanceStartTime.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BackupGateway {
23namespace Model {
24
31 public:
32 AWS_BACKUPGATEWAY_API GatewayDetails() = default;
33 AWS_BACKUPGATEWAY_API GatewayDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BACKUPGATEWAY_API GatewayDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetGatewayArn() const { return m_gatewayArn; }
44 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
45 template <typename GatewayArnT = Aws::String>
46 void SetGatewayArn(GatewayArnT&& value) {
47 m_gatewayArnHasBeenSet = true;
48 m_gatewayArn = std::forward<GatewayArnT>(value);
49 }
50 template <typename GatewayArnT = Aws::String>
51 GatewayDetails& WithGatewayArn(GatewayArnT&& value) {
52 SetGatewayArn(std::forward<GatewayArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetGatewayDisplayName() const { return m_gatewayDisplayName; }
62 inline bool GatewayDisplayNameHasBeenSet() const { return m_gatewayDisplayNameHasBeenSet; }
63 template <typename GatewayDisplayNameT = Aws::String>
64 void SetGatewayDisplayName(GatewayDisplayNameT&& value) {
65 m_gatewayDisplayNameHasBeenSet = true;
66 m_gatewayDisplayName = std::forward<GatewayDisplayNameT>(value);
67 }
68 template <typename GatewayDisplayNameT = Aws::String>
69 GatewayDetails& WithGatewayDisplayName(GatewayDisplayNameT&& value) {
70 SetGatewayDisplayName(std::forward<GatewayDisplayNameT>(value));
71 return *this;
72 }
74
76
79 inline GatewayType GetGatewayType() const { return m_gatewayType; }
80 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
81 inline void SetGatewayType(GatewayType value) {
82 m_gatewayTypeHasBeenSet = true;
83 m_gatewayType = value;
84 }
86 SetGatewayType(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetHypervisorId() const { return m_hypervisorId; }
96 inline bool HypervisorIdHasBeenSet() const { return m_hypervisorIdHasBeenSet; }
97 template <typename HypervisorIdT = Aws::String>
98 void SetHypervisorId(HypervisorIdT&& value) {
99 m_hypervisorIdHasBeenSet = true;
100 m_hypervisorId = std::forward<HypervisorIdT>(value);
101 }
102 template <typename HypervisorIdT = Aws::String>
103 GatewayDetails& WithHypervisorId(HypervisorIdT&& value) {
104 SetHypervisorId(std::forward<HypervisorIdT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetLastSeenTime() const { return m_lastSeenTime; }
115 inline bool LastSeenTimeHasBeenSet() const { return m_lastSeenTimeHasBeenSet; }
116 template <typename LastSeenTimeT = Aws::Utils::DateTime>
117 void SetLastSeenTime(LastSeenTimeT&& value) {
118 m_lastSeenTimeHasBeenSet = true;
119 m_lastSeenTime = std::forward<LastSeenTimeT>(value);
120 }
121 template <typename LastSeenTimeT = Aws::Utils::DateTime>
122 GatewayDetails& WithLastSeenTime(LastSeenTimeT&& value) {
123 SetLastSeenTime(std::forward<LastSeenTimeT>(value));
124 return *this;
125 }
127
129
134 inline const MaintenanceStartTime& GetMaintenanceStartTime() const { return m_maintenanceStartTime; }
135 inline bool MaintenanceStartTimeHasBeenSet() const { return m_maintenanceStartTimeHasBeenSet; }
136 template <typename MaintenanceStartTimeT = MaintenanceStartTime>
137 void SetMaintenanceStartTime(MaintenanceStartTimeT&& value) {
138 m_maintenanceStartTimeHasBeenSet = true;
139 m_maintenanceStartTime = std::forward<MaintenanceStartTimeT>(value);
140 }
141 template <typename MaintenanceStartTimeT = MaintenanceStartTime>
142 GatewayDetails& WithMaintenanceStartTime(MaintenanceStartTimeT&& value) {
143 SetMaintenanceStartTime(std::forward<MaintenanceStartTimeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetNextUpdateAvailabilityTime() const { return m_nextUpdateAvailabilityTime; }
153 inline bool NextUpdateAvailabilityTimeHasBeenSet() const { return m_nextUpdateAvailabilityTimeHasBeenSet; }
154 template <typename NextUpdateAvailabilityTimeT = Aws::Utils::DateTime>
155 void SetNextUpdateAvailabilityTime(NextUpdateAvailabilityTimeT&& value) {
156 m_nextUpdateAvailabilityTimeHasBeenSet = true;
157 m_nextUpdateAvailabilityTime = std::forward<NextUpdateAvailabilityTimeT>(value);
158 }
159 template <typename NextUpdateAvailabilityTimeT = Aws::Utils::DateTime>
160 GatewayDetails& WithNextUpdateAvailabilityTime(NextUpdateAvailabilityTimeT&& value) {
161 SetNextUpdateAvailabilityTime(std::forward<NextUpdateAvailabilityTimeT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetVpcEndpoint() const { return m_vpcEndpoint; }
172 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
173 template <typename VpcEndpointT = Aws::String>
174 void SetVpcEndpoint(VpcEndpointT&& value) {
175 m_vpcEndpointHasBeenSet = true;
176 m_vpcEndpoint = std::forward<VpcEndpointT>(value);
177 }
178 template <typename VpcEndpointT = Aws::String>
179 GatewayDetails& WithVpcEndpoint(VpcEndpointT&& value) {
180 SetVpcEndpoint(std::forward<VpcEndpointT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_gatewayArn;
186
187 Aws::String m_gatewayDisplayName;
188
189 GatewayType m_gatewayType{GatewayType::NOT_SET};
190
191 Aws::String m_hypervisorId;
192
193 Aws::Utils::DateTime m_lastSeenTime{};
194
195 MaintenanceStartTime m_maintenanceStartTime;
196
197 Aws::Utils::DateTime m_nextUpdateAvailabilityTime{};
198
199 Aws::String m_vpcEndpoint;
200 bool m_gatewayArnHasBeenSet = false;
201 bool m_gatewayDisplayNameHasBeenSet = false;
202 bool m_gatewayTypeHasBeenSet = false;
203 bool m_hypervisorIdHasBeenSet = false;
204 bool m_lastSeenTimeHasBeenSet = false;
205 bool m_maintenanceStartTimeHasBeenSet = false;
206 bool m_nextUpdateAvailabilityTimeHasBeenSet = false;
207 bool m_vpcEndpointHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace BackupGateway
212} // namespace Aws
GatewayDetails & WithGatewayType(GatewayType value)
GatewayDetails & WithNextUpdateAvailabilityTime(NextUpdateAvailabilityTimeT &&value)
void SetLastSeenTime(LastSeenTimeT &&value)
GatewayDetails & WithVpcEndpoint(VpcEndpointT &&value)
const Aws::String & GetGatewayDisplayName() const
GatewayDetails & WithLastSeenTime(LastSeenTimeT &&value)
AWS_BACKUPGATEWAY_API GatewayDetails()=default
AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
GatewayDetails & WithGatewayArn(GatewayArnT &&value)
GatewayDetails & WithGatewayDisplayName(GatewayDisplayNameT &&value)
const Aws::String & GetGatewayArn() const
AWS_BACKUPGATEWAY_API GatewayDetails(Aws::Utils::Json::JsonView jsonValue)
void SetGatewayArn(GatewayArnT &&value)
GatewayDetails & WithMaintenanceStartTime(MaintenanceStartTimeT &&value)
void SetHypervisorId(HypervisorIdT &&value)
const MaintenanceStartTime & GetMaintenanceStartTime() const
void SetMaintenanceStartTime(MaintenanceStartTimeT &&value)
const Aws::Utils::DateTime & GetLastSeenTime() const
void SetNextUpdateAvailabilityTime(NextUpdateAvailabilityTimeT &&value)
const Aws::String & GetVpcEndpoint() const
void SetVpcEndpoint(VpcEndpointT &&value)
const Aws::String & GetHypervisorId() const
void SetGatewayDisplayName(GatewayDisplayNameT &&value)
AWS_BACKUPGATEWAY_API GatewayDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNextUpdateAvailabilityTime() const
GatewayDetails & WithHypervisorId(HypervisorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue