AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StorageVirtualMachine.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/model/SvmActiveDirectoryConfiguration.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/fsx/model/SvmEndpoints.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/fsx/model/StorageVirtualMachineLifecycle.h>
13#include <aws/fsx/model/StorageVirtualMachineSubtype.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/fsx/model/LifecycleTransitionReason.h>
16#include <aws/fsx/model/StorageVirtualMachineRootVolumeSecurityStyle.h>
17#include <aws/fsx/model/Tag.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace FSx
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_FSX_API StorageVirtualMachine();
48
49
51
55 inline const SvmActiveDirectoryConfiguration& GetActiveDirectoryConfiguration() const{ return m_activeDirectoryConfiguration; }
56 inline bool ActiveDirectoryConfigurationHasBeenSet() const { return m_activeDirectoryConfigurationHasBeenSet; }
57 inline void SetActiveDirectoryConfiguration(const SvmActiveDirectoryConfiguration& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = value; }
58 inline void SetActiveDirectoryConfiguration(SvmActiveDirectoryConfiguration&& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = std::move(value); }
62
64
65 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
66 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
67 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
68 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
69 inline StorageVirtualMachine& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
70 inline StorageVirtualMachine& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
72
74
80 inline const SvmEndpoints& GetEndpoints() const{ return m_endpoints; }
81 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
82 inline void SetEndpoints(const SvmEndpoints& value) { m_endpointsHasBeenSet = true; m_endpoints = value; }
83 inline void SetEndpoints(SvmEndpoints&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::move(value); }
84 inline StorageVirtualMachine& WithEndpoints(const SvmEndpoints& value) { SetEndpoints(value); return *this;}
85 inline StorageVirtualMachine& WithEndpoints(SvmEndpoints&& value) { SetEndpoints(std::move(value)); return *this;}
87
89
90 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
91 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
92 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
93 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
94 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
95 inline StorageVirtualMachine& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
96 inline StorageVirtualMachine& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
97 inline StorageVirtualMachine& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
99
101
111 inline const StorageVirtualMachineLifecycle& GetLifecycle() const{ return m_lifecycle; }
112 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
113 inline void SetLifecycle(const StorageVirtualMachineLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
114 inline void SetLifecycle(StorageVirtualMachineLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
116 inline StorageVirtualMachine& WithLifecycle(StorageVirtualMachineLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
118
120
123 inline const Aws::String& GetName() const{ return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
126 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
127 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 inline StorageVirtualMachine& WithName(const Aws::String& value) { SetName(value); return *this;}
129 inline StorageVirtualMachine& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
130 inline StorageVirtualMachine& WithName(const char* value) { SetName(value); return *this;}
132
134
135 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
136 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
137 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
138 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
139 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
140 inline StorageVirtualMachine& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
141 inline StorageVirtualMachine& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
142 inline StorageVirtualMachine& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
144
146
149 inline const Aws::String& GetStorageVirtualMachineId() const{ return m_storageVirtualMachineId; }
150 inline bool StorageVirtualMachineIdHasBeenSet() const { return m_storageVirtualMachineIdHasBeenSet; }
151 inline void SetStorageVirtualMachineId(const Aws::String& value) { m_storageVirtualMachineIdHasBeenSet = true; m_storageVirtualMachineId = value; }
152 inline void SetStorageVirtualMachineId(Aws::String&& value) { m_storageVirtualMachineIdHasBeenSet = true; m_storageVirtualMachineId = std::move(value); }
153 inline void SetStorageVirtualMachineId(const char* value) { m_storageVirtualMachineIdHasBeenSet = true; m_storageVirtualMachineId.assign(value); }
156 inline StorageVirtualMachine& WithStorageVirtualMachineId(const char* value) { SetStorageVirtualMachineId(value); return *this;}
158
160
163 inline const StorageVirtualMachineSubtype& GetSubtype() const{ return m_subtype; }
164 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
165 inline void SetSubtype(const StorageVirtualMachineSubtype& value) { m_subtypeHasBeenSet = true; m_subtype = value; }
166 inline void SetSubtype(StorageVirtualMachineSubtype&& value) { m_subtypeHasBeenSet = true; m_subtype = std::move(value); }
167 inline StorageVirtualMachine& WithSubtype(const StorageVirtualMachineSubtype& value) { SetSubtype(value); return *this;}
168 inline StorageVirtualMachine& WithSubtype(StorageVirtualMachineSubtype&& value) { SetSubtype(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetUUID() const{ return m_uUID; }
176 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
177 inline void SetUUID(const Aws::String& value) { m_uUIDHasBeenSet = true; m_uUID = value; }
178 inline void SetUUID(Aws::String&& value) { m_uUIDHasBeenSet = true; m_uUID = std::move(value); }
179 inline void SetUUID(const char* value) { m_uUIDHasBeenSet = true; m_uUID.assign(value); }
180 inline StorageVirtualMachine& WithUUID(const Aws::String& value) { SetUUID(value); return *this;}
181 inline StorageVirtualMachine& WithUUID(Aws::String&& value) { SetUUID(std::move(value)); return *this;}
182 inline StorageVirtualMachine& WithUUID(const char* value) { SetUUID(value); return *this;}
184
186
187 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
190 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 inline StorageVirtualMachine& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 inline StorageVirtualMachine& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
193 inline StorageVirtualMachine& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 inline StorageVirtualMachine& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
196
198
201 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const{ return m_lifecycleTransitionReason; }
202 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
203 inline void SetLifecycleTransitionReason(const LifecycleTransitionReason& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = value; }
204 inline void SetLifecycleTransitionReason(LifecycleTransitionReason&& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = std::move(value); }
208
210
213 inline const StorageVirtualMachineRootVolumeSecurityStyle& GetRootVolumeSecurityStyle() const{ return m_rootVolumeSecurityStyle; }
214 inline bool RootVolumeSecurityStyleHasBeenSet() const { return m_rootVolumeSecurityStyleHasBeenSet; }
215 inline void SetRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = value; }
216 inline void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle&& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = std::move(value); }
220 private:
221
222 SvmActiveDirectoryConfiguration m_activeDirectoryConfiguration;
223 bool m_activeDirectoryConfigurationHasBeenSet = false;
224
225 Aws::Utils::DateTime m_creationTime;
226 bool m_creationTimeHasBeenSet = false;
227
228 SvmEndpoints m_endpoints;
229 bool m_endpointsHasBeenSet = false;
230
231 Aws::String m_fileSystemId;
232 bool m_fileSystemIdHasBeenSet = false;
233
235 bool m_lifecycleHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_resourceARN;
241 bool m_resourceARNHasBeenSet = false;
242
243 Aws::String m_storageVirtualMachineId;
244 bool m_storageVirtualMachineIdHasBeenSet = false;
245
247 bool m_subtypeHasBeenSet = false;
248
249 Aws::String m_uUID;
250 bool m_uUIDHasBeenSet = false;
251
252 Aws::Vector<Tag> m_tags;
253 bool m_tagsHasBeenSet = false;
254
255 LifecycleTransitionReason m_lifecycleTransitionReason;
256 bool m_lifecycleTransitionReasonHasBeenSet = false;
257
258 StorageVirtualMachineRootVolumeSecurityStyle m_rootVolumeSecurityStyle;
259 bool m_rootVolumeSecurityStyleHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace FSx
264} // namespace Aws
StorageVirtualMachine & WithStorageVirtualMachineId(Aws::String &&value)
StorageVirtualMachine & AddTags(const Tag &value)
StorageVirtualMachine & WithName(const Aws::String &value)
void SetFileSystemId(const Aws::String &value)
StorageVirtualMachine & WithFileSystemId(const char *value)
StorageVirtualMachine & WithResourceARN(Aws::String &&value)
void SetActiveDirectoryConfiguration(const SvmActiveDirectoryConfiguration &value)
StorageVirtualMachine & WithResourceARN(const Aws::String &value)
StorageVirtualMachine & AddTags(Tag &&value)
const SvmActiveDirectoryConfiguration & GetActiveDirectoryConfiguration() const
StorageVirtualMachine & WithActiveDirectoryConfiguration(SvmActiveDirectoryConfiguration &&value)
const Aws::Vector< Tag > & GetTags() const
void SetSubtype(StorageVirtualMachineSubtype &&value)
StorageVirtualMachine & WithCreationTime(Aws::Utils::DateTime &&value)
StorageVirtualMachine & WithFileSystemId(const Aws::String &value)
StorageVirtualMachine & WithRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle &&value)
AWS_FSX_API StorageVirtualMachine(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStorageVirtualMachineId() const
StorageVirtualMachine & WithStorageVirtualMachineId(const char *value)
void SetResourceARN(const Aws::String &value)
StorageVirtualMachine & WithSubtype(StorageVirtualMachineSubtype &&value)
void SetRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle &value)
const StorageVirtualMachineLifecycle & GetLifecycle() const
void SetTags(Aws::Vector< Tag > &&value)
void SetSubtype(const StorageVirtualMachineSubtype &value)
StorageVirtualMachine & WithActiveDirectoryConfiguration(const SvmActiveDirectoryConfiguration &value)
StorageVirtualMachine & WithTags(const Aws::Vector< Tag > &value)
void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle &&value)
StorageVirtualMachine & WithStorageVirtualMachineId(const Aws::String &value)
const StorageVirtualMachineRootVolumeSecurityStyle & GetRootVolumeSecurityStyle() const
const SvmEndpoints & GetEndpoints() const
StorageVirtualMachine & WithCreationTime(const Aws::Utils::DateTime &value)
StorageVirtualMachine & WithSubtype(const StorageVirtualMachineSubtype &value)
StorageVirtualMachine & WithEndpoints(const SvmEndpoints &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
StorageVirtualMachine & WithName(const char *value)
void SetActiveDirectoryConfiguration(SvmActiveDirectoryConfiguration &&value)
void SetLifecycle(StorageVirtualMachineLifecycle &&value)
StorageVirtualMachine & WithFileSystemId(Aws::String &&value)
void SetLifecycle(const StorageVirtualMachineLifecycle &value)
StorageVirtualMachine & WithRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTags(const Aws::Vector< Tag > &value)
const StorageVirtualMachineSubtype & GetSubtype() const
const LifecycleTransitionReason & GetLifecycleTransitionReason() const
void SetStorageVirtualMachineId(Aws::String &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
StorageVirtualMachine & WithUUID(Aws::String &&value)
StorageVirtualMachine & WithLifecycleTransitionReason(LifecycleTransitionReason &&value)
AWS_FSX_API StorageVirtualMachine & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleTransitionReason(const LifecycleTransitionReason &value)
StorageVirtualMachine & WithName(Aws::String &&value)
void SetLifecycleTransitionReason(LifecycleTransitionReason &&value)
StorageVirtualMachine & WithLifecycle(StorageVirtualMachineLifecycle &&value)
StorageVirtualMachine & WithUUID(const Aws::String &value)
StorageVirtualMachine & WithResourceARN(const char *value)
void SetStorageVirtualMachineId(const Aws::String &value)
const Aws::String & GetFileSystemId() const
void SetEndpoints(const SvmEndpoints &value)
StorageVirtualMachine & WithLifecycleTransitionReason(const LifecycleTransitionReason &value)
StorageVirtualMachine & WithTags(Aws::Vector< Tag > &&value)
StorageVirtualMachine & WithUUID(const char *value)
StorageVirtualMachine & WithEndpoints(SvmEndpoints &&value)
StorageVirtualMachine & WithLifecycle(const StorageVirtualMachineLifecycle &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue