AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StorageVirtualMachine.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/LifecycleTransitionReason.h>
12#include <aws/fsx/model/StorageVirtualMachineLifecycle.h>
13#include <aws/fsx/model/StorageVirtualMachineRootVolumeSecurityStyle.h>
14#include <aws/fsx/model/StorageVirtualMachineSubtype.h>
15#include <aws/fsx/model/SvmActiveDirectoryConfiguration.h>
16#include <aws/fsx/model/SvmEndpoints.h>
17#include <aws/fsx/model/Tag.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace FSx {
29namespace Model {
30
38 public:
39 AWS_FSX_API StorageVirtualMachine() = default;
43
45
49 inline const SvmActiveDirectoryConfiguration& GetActiveDirectoryConfiguration() const { return m_activeDirectoryConfiguration; }
50 inline bool ActiveDirectoryConfigurationHasBeenSet() const { return m_activeDirectoryConfigurationHasBeenSet; }
51 template <typename ActiveDirectoryConfigurationT = SvmActiveDirectoryConfiguration>
52 void SetActiveDirectoryConfiguration(ActiveDirectoryConfigurationT&& value) {
53 m_activeDirectoryConfigurationHasBeenSet = true;
54 m_activeDirectoryConfiguration = std::forward<ActiveDirectoryConfigurationT>(value);
55 }
56 template <typename ActiveDirectoryConfigurationT = SvmActiveDirectoryConfiguration>
57 StorageVirtualMachine& WithActiveDirectoryConfiguration(ActiveDirectoryConfigurationT&& value) {
58 SetActiveDirectoryConfiguration(std::forward<ActiveDirectoryConfigurationT>(value));
59 return *this;
60 }
62
64
65 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
66 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
67 template <typename CreationTimeT = Aws::Utils::DateTime>
68 void SetCreationTime(CreationTimeT&& value) {
69 m_creationTimeHasBeenSet = true;
70 m_creationTime = std::forward<CreationTimeT>(value);
71 }
72 template <typename CreationTimeT = Aws::Utils::DateTime>
73 StorageVirtualMachine& WithCreationTime(CreationTimeT&& value) {
74 SetCreationTime(std::forward<CreationTimeT>(value));
75 return *this;
76 }
78
80
86 inline const SvmEndpoints& GetEndpoints() const { return m_endpoints; }
87 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
88 template <typename EndpointsT = SvmEndpoints>
89 void SetEndpoints(EndpointsT&& value) {
90 m_endpointsHasBeenSet = true;
91 m_endpoints = std::forward<EndpointsT>(value);
92 }
93 template <typename EndpointsT = SvmEndpoints>
94 StorageVirtualMachine& WithEndpoints(EndpointsT&& value) {
95 SetEndpoints(std::forward<EndpointsT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
103 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
104 template <typename FileSystemIdT = Aws::String>
105 void SetFileSystemId(FileSystemIdT&& value) {
106 m_fileSystemIdHasBeenSet = true;
107 m_fileSystemId = std::forward<FileSystemIdT>(value);
108 }
109 template <typename FileSystemIdT = Aws::String>
110 StorageVirtualMachine& WithFileSystemId(FileSystemIdT&& value) {
111 SetFileSystemId(std::forward<FileSystemIdT>(value));
112 return *this;
113 }
115
117
127 inline StorageVirtualMachineLifecycle GetLifecycle() const { return m_lifecycle; }
128 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
130 m_lifecycleHasBeenSet = true;
131 m_lifecycle = value;
132 }
134 SetLifecycle(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetName() const { return m_name; }
144 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
145 template <typename NameT = Aws::String>
146 void SetName(NameT&& value) {
147 m_nameHasBeenSet = true;
148 m_name = std::forward<NameT>(value);
149 }
150 template <typename NameT = Aws::String>
152 SetName(std::forward<NameT>(value));
153 return *this;
154 }
156
158
159 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
160 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
161 template <typename ResourceARNT = Aws::String>
162 void SetResourceARN(ResourceARNT&& value) {
163 m_resourceARNHasBeenSet = true;
164 m_resourceARN = std::forward<ResourceARNT>(value);
165 }
166 template <typename ResourceARNT = Aws::String>
167 StorageVirtualMachine& WithResourceARN(ResourceARNT&& value) {
168 SetResourceARN(std::forward<ResourceARNT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetStorageVirtualMachineId() const { return m_storageVirtualMachineId; }
178 inline bool StorageVirtualMachineIdHasBeenSet() const { return m_storageVirtualMachineIdHasBeenSet; }
179 template <typename StorageVirtualMachineIdT = Aws::String>
180 void SetStorageVirtualMachineId(StorageVirtualMachineIdT&& value) {
181 m_storageVirtualMachineIdHasBeenSet = true;
182 m_storageVirtualMachineId = std::forward<StorageVirtualMachineIdT>(value);
183 }
184 template <typename StorageVirtualMachineIdT = Aws::String>
185 StorageVirtualMachine& WithStorageVirtualMachineId(StorageVirtualMachineIdT&& value) {
186 SetStorageVirtualMachineId(std::forward<StorageVirtualMachineIdT>(value));
187 return *this;
188 }
190
192
195 inline StorageVirtualMachineSubtype GetSubtype() const { return m_subtype; }
196 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
198 m_subtypeHasBeenSet = true;
199 m_subtype = value;
200 }
202 SetSubtype(value);
203 return *this;
204 }
206
208
211 inline const Aws::String& GetUUID() const { return m_uUID; }
212 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
213 template <typename UUIDT = Aws::String>
214 void SetUUID(UUIDT&& value) {
215 m_uUIDHasBeenSet = true;
216 m_uUID = std::forward<UUIDT>(value);
217 }
218 template <typename UUIDT = Aws::String>
220 SetUUID(std::forward<UUIDT>(value));
221 return *this;
222 }
224
226
227 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
228 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
229 template <typename TagsT = Aws::Vector<Tag>>
230 void SetTags(TagsT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags = std::forward<TagsT>(value);
233 }
234 template <typename TagsT = Aws::Vector<Tag>>
236 SetTags(std::forward<TagsT>(value));
237 return *this;
238 }
239 template <typename TagsT = Tag>
241 m_tagsHasBeenSet = true;
242 m_tags.emplace_back(std::forward<TagsT>(value));
243 return *this;
244 }
246
248
251 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const { return m_lifecycleTransitionReason; }
252 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
253 template <typename LifecycleTransitionReasonT = LifecycleTransitionReason>
254 void SetLifecycleTransitionReason(LifecycleTransitionReasonT&& value) {
255 m_lifecycleTransitionReasonHasBeenSet = true;
256 m_lifecycleTransitionReason = std::forward<LifecycleTransitionReasonT>(value);
257 }
258 template <typename LifecycleTransitionReasonT = LifecycleTransitionReason>
259 StorageVirtualMachine& WithLifecycleTransitionReason(LifecycleTransitionReasonT&& value) {
260 SetLifecycleTransitionReason(std::forward<LifecycleTransitionReasonT>(value));
261 return *this;
262 }
264
266
269 inline StorageVirtualMachineRootVolumeSecurityStyle GetRootVolumeSecurityStyle() const { return m_rootVolumeSecurityStyle; }
270 inline bool RootVolumeSecurityStyleHasBeenSet() const { return m_rootVolumeSecurityStyleHasBeenSet; }
272 m_rootVolumeSecurityStyleHasBeenSet = true;
273 m_rootVolumeSecurityStyle = value;
274 }
277 return *this;
278 }
280 private:
281 SvmActiveDirectoryConfiguration m_activeDirectoryConfiguration;
282
283 Aws::Utils::DateTime m_creationTime{};
284
285 SvmEndpoints m_endpoints;
286
287 Aws::String m_fileSystemId;
288
290
291 Aws::String m_name;
292
293 Aws::String m_resourceARN;
294
295 Aws::String m_storageVirtualMachineId;
296
298
299 Aws::String m_uUID;
300
301 Aws::Vector<Tag> m_tags;
302
303 LifecycleTransitionReason m_lifecycleTransitionReason;
304
306 bool m_activeDirectoryConfigurationHasBeenSet = false;
307 bool m_creationTimeHasBeenSet = false;
308 bool m_endpointsHasBeenSet = false;
309 bool m_fileSystemIdHasBeenSet = false;
310 bool m_lifecycleHasBeenSet = false;
311 bool m_nameHasBeenSet = false;
312 bool m_resourceARNHasBeenSet = false;
313 bool m_storageVirtualMachineIdHasBeenSet = false;
314 bool m_subtypeHasBeenSet = false;
315 bool m_uUIDHasBeenSet = false;
316 bool m_tagsHasBeenSet = false;
317 bool m_lifecycleTransitionReasonHasBeenSet = false;
318 bool m_rootVolumeSecurityStyleHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace FSx
323} // namespace Aws
AWS_FSX_API StorageVirtualMachine()=default
StorageVirtualMachineSubtype GetSubtype() const
StorageVirtualMachine & WithActiveDirectoryConfiguration(ActiveDirectoryConfigurationT &&value)
void SetStorageVirtualMachineId(StorageVirtualMachineIdT &&value)
const SvmActiveDirectoryConfiguration & GetActiveDirectoryConfiguration() const
const Aws::Vector< Tag > & GetTags() const
StorageVirtualMachine & WithStorageVirtualMachineId(StorageVirtualMachineIdT &&value)
StorageVirtualMachine & WithSubtype(StorageVirtualMachineSubtype value)
AWS_FSX_API StorageVirtualMachine(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStorageVirtualMachineId() const
StorageVirtualMachine & WithTags(TagsT &&value)
StorageVirtualMachine & WithResourceARN(ResourceARNT &&value)
StorageVirtualMachine & WithCreationTime(CreationTimeT &&value)
StorageVirtualMachine & WithFileSystemId(FileSystemIdT &&value)
void SetSubtype(StorageVirtualMachineSubtype value)
StorageVirtualMachine & WithLifecycle(StorageVirtualMachineLifecycle value)
void SetLifecycleTransitionReason(LifecycleTransitionReasonT &&value)
StorageVirtualMachine & WithLifecycleTransitionReason(LifecycleTransitionReasonT &&value)
void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle value)
const SvmEndpoints & GetEndpoints() const
void SetCreationTime(CreationTimeT &&value)
StorageVirtualMachine & WithRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle value)
const Aws::Utils::DateTime & GetCreationTime() const
const LifecycleTransitionReason & GetLifecycleTransitionReason() const
StorageVirtualMachine & WithName(NameT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
StorageVirtualMachine & WithEndpoints(EndpointsT &&value)
AWS_FSX_API StorageVirtualMachine & operator=(Aws::Utils::Json::JsonView jsonValue)
StorageVirtualMachine & AddTags(TagsT &&value)
void SetActiveDirectoryConfiguration(ActiveDirectoryConfigurationT &&value)
StorageVirtualMachine & WithUUID(UUIDT &&value)
void SetLifecycle(StorageVirtualMachineLifecycle value)
StorageVirtualMachineLifecycle GetLifecycle() const
StorageVirtualMachineRootVolumeSecurityStyle GetRootVolumeSecurityStyle() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue