AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
VmEntitlement.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evs/EVS_EXPORTS.h>
10#include <aws/evs/model/EntitlementStatus.h>
11#include <aws/evs/model/EntitlementType.h>
12#include <aws/evs/model/ErrorDetail.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EVS {
24namespace Model {
25
33 public:
34 AWS_EVS_API VmEntitlement() = default;
38
40
43 inline const Aws::String& GetVmId() const { return m_vmId; }
44 inline bool VmIdHasBeenSet() const { return m_vmIdHasBeenSet; }
45 template <typename VmIdT = Aws::String>
46 void SetVmId(VmIdT&& value) {
47 m_vmIdHasBeenSet = true;
48 m_vmId = std::forward<VmIdT>(value);
49 }
50 template <typename VmIdT = Aws::String>
51 VmEntitlement& WithVmId(VmIdT&& value) {
52 SetVmId(std::forward<VmIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
62 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
63 template <typename EnvironmentIdT = Aws::String>
64 void SetEnvironmentId(EnvironmentIdT&& value) {
65 m_environmentIdHasBeenSet = true;
66 m_environmentId = std::forward<EnvironmentIdT>(value);
67 }
68 template <typename EnvironmentIdT = Aws::String>
69 VmEntitlement& WithEnvironmentId(EnvironmentIdT&& value) {
70 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
80 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
81 template <typename ConnectorIdT = Aws::String>
82 void SetConnectorId(ConnectorIdT&& value) {
83 m_connectorIdHasBeenSet = true;
84 m_connectorId = std::forward<ConnectorIdT>(value);
85 }
86 template <typename ConnectorIdT = Aws::String>
87 VmEntitlement& WithConnectorId(ConnectorIdT&& value) {
88 SetConnectorId(std::forward<ConnectorIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetVmName() const { return m_vmName; }
98 inline bool VmNameHasBeenSet() const { return m_vmNameHasBeenSet; }
99 template <typename VmNameT = Aws::String>
100 void SetVmName(VmNameT&& value) {
101 m_vmNameHasBeenSet = true;
102 m_vmName = std::forward<VmNameT>(value);
103 }
104 template <typename VmNameT = Aws::String>
105 VmEntitlement& WithVmName(VmNameT&& value) {
106 SetVmName(std::forward<VmNameT>(value));
107 return *this;
108 }
110
112
115 inline EntitlementType GetType() const { return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(EntitlementType value) {
118 m_typeHasBeenSet = true;
119 m_type = value;
120 }
122 SetType(value);
123 return *this;
124 }
126
128
131 inline EntitlementStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(EntitlementStatus value) {
134 m_statusHasBeenSet = true;
135 m_status = value;
136 }
138 SetStatus(value);
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastSyncedAt() const { return m_lastSyncedAt; }
148 inline bool LastSyncedAtHasBeenSet() const { return m_lastSyncedAtHasBeenSet; }
149 template <typename LastSyncedAtT = Aws::Utils::DateTime>
150 void SetLastSyncedAt(LastSyncedAtT&& value) {
151 m_lastSyncedAtHasBeenSet = true;
152 m_lastSyncedAt = std::forward<LastSyncedAtT>(value);
153 }
154 template <typename LastSyncedAtT = Aws::Utils::DateTime>
155 VmEntitlement& WithLastSyncedAt(LastSyncedAtT&& value) {
156 SetLastSyncedAt(std::forward<LastSyncedAtT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
166 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
167 template <typename StartedAtT = Aws::Utils::DateTime>
168 void SetStartedAt(StartedAtT&& value) {
169 m_startedAtHasBeenSet = true;
170 m_startedAt = std::forward<StartedAtT>(value);
171 }
172 template <typename StartedAtT = Aws::Utils::DateTime>
173 VmEntitlement& WithStartedAt(StartedAtT&& value) {
174 SetStartedAt(std::forward<StartedAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetStoppedAt() const { return m_stoppedAt; }
184 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
185 template <typename StoppedAtT = Aws::Utils::DateTime>
186 void SetStoppedAt(StoppedAtT&& value) {
187 m_stoppedAtHasBeenSet = true;
188 m_stoppedAt = std::forward<StoppedAtT>(value);
189 }
190 template <typename StoppedAtT = Aws::Utils::DateTime>
191 VmEntitlement& WithStoppedAt(StoppedAtT&& value) {
192 SetStoppedAt(std::forward<StoppedAtT>(value));
193 return *this;
194 }
196
198
201 inline const ErrorDetail& GetErrorDetail() const { return m_errorDetail; }
202 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
203 template <typename ErrorDetailT = ErrorDetail>
204 void SetErrorDetail(ErrorDetailT&& value) {
205 m_errorDetailHasBeenSet = true;
206 m_errorDetail = std::forward<ErrorDetailT>(value);
207 }
208 template <typename ErrorDetailT = ErrorDetail>
209 VmEntitlement& WithErrorDetail(ErrorDetailT&& value) {
210 SetErrorDetail(std::forward<ErrorDetailT>(value));
211 return *this;
212 }
214 private:
215 Aws::String m_vmId;
216
217 Aws::String m_environmentId;
218
219 Aws::String m_connectorId;
220
221 Aws::String m_vmName;
222
224
226
227 Aws::Utils::DateTime m_lastSyncedAt{};
228
229 Aws::Utils::DateTime m_startedAt{};
230
231 Aws::Utils::DateTime m_stoppedAt{};
232
233 ErrorDetail m_errorDetail;
234 bool m_vmIdHasBeenSet = false;
235 bool m_environmentIdHasBeenSet = false;
236 bool m_connectorIdHasBeenSet = false;
237 bool m_vmNameHasBeenSet = false;
238 bool m_typeHasBeenSet = false;
239 bool m_statusHasBeenSet = false;
240 bool m_lastSyncedAtHasBeenSet = false;
241 bool m_startedAtHasBeenSet = false;
242 bool m_stoppedAtHasBeenSet = false;
243 bool m_errorDetailHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace EVS
248} // namespace Aws
VmEntitlement & WithStoppedAt(StoppedAtT &&value)
void SetStartedAt(StartedAtT &&value)
const ErrorDetail & GetErrorDetail() const
AWS_EVS_API VmEntitlement(Aws::Utils::Json::JsonView jsonValue)
VmEntitlement & WithEnvironmentId(EnvironmentIdT &&value)
VmEntitlement & WithVmName(VmNameT &&value)
void SetVmName(VmNameT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetErrorDetail(ErrorDetailT &&value)
void SetType(EntitlementType value)
VmEntitlement & WithVmId(VmIdT &&value)
VmEntitlement & WithStartedAt(StartedAtT &&value)
VmEntitlement & WithStatus(EntitlementStatus value)
const Aws::String & GetConnectorId() const
VmEntitlement & WithConnectorId(ConnectorIdT &&value)
EntitlementStatus GetStatus() const
void SetVmId(VmIdT &&value)
const Aws::String & GetVmId() const
const Aws::String & GetVmName() const
const Aws::Utils::DateTime & GetLastSyncedAt() const
const Aws::String & GetEnvironmentId() const
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStoppedAt(StoppedAtT &&value)
void SetConnectorId(ConnectorIdT &&value)
AWS_EVS_API VmEntitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVS_API VmEntitlement()=default
VmEntitlement & WithType(EntitlementType value)
void SetStatus(EntitlementStatus value)
EntitlementType GetType() const
VmEntitlement & WithLastSyncedAt(LastSyncedAtT &&value)
const Aws::Utils::DateTime & GetStoppedAt() const
void SetLastSyncedAt(LastSyncedAtT &&value)
void SetEnvironmentId(EnvironmentIdT &&value)
VmEntitlement & WithErrorDetail(ErrorDetailT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue