AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
48
49
51
55 inline const SvmActiveDirectoryConfiguration& GetActiveDirectoryConfiguration() const { return m_activeDirectoryConfiguration; }
56 inline bool ActiveDirectoryConfigurationHasBeenSet() const { return m_activeDirectoryConfigurationHasBeenSet; }
57 template<typename ActiveDirectoryConfigurationT = SvmActiveDirectoryConfiguration>
58 void SetActiveDirectoryConfiguration(ActiveDirectoryConfigurationT&& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = std::forward<ActiveDirectoryConfigurationT>(value); }
59 template<typename ActiveDirectoryConfigurationT = SvmActiveDirectoryConfiguration>
60 StorageVirtualMachine& WithActiveDirectoryConfiguration(ActiveDirectoryConfigurationT&& value) { SetActiveDirectoryConfiguration(std::forward<ActiveDirectoryConfigurationT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
69 template<typename CreationTimeT = Aws::Utils::DateTime>
70 StorageVirtualMachine& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
72
74
80 inline const SvmEndpoints& GetEndpoints() const { return m_endpoints; }
81 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
82 template<typename EndpointsT = SvmEndpoints>
83 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::forward<EndpointsT>(value); }
84 template<typename EndpointsT = SvmEndpoints>
85 StorageVirtualMachine& WithEndpoints(EndpointsT&& value) { SetEndpoints(std::forward<EndpointsT>(value)); return *this;}
87
89
90 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
91 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
92 template<typename FileSystemIdT = Aws::String>
93 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
94 template<typename FileSystemIdT = Aws::String>
95 StorageVirtualMachine& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
97
99
109 inline StorageVirtualMachineLifecycle GetLifecycle() const { return m_lifecycle; }
110 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
111 inline void SetLifecycle(StorageVirtualMachineLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 template<typename NameT = Aws::String>
122 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
123 template<typename NameT = Aws::String>
124 StorageVirtualMachine& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
126
128
129 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
130 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
131 template<typename ResourceARNT = Aws::String>
132 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
133 template<typename ResourceARNT = Aws::String>
134 StorageVirtualMachine& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
136
138
141 inline const Aws::String& GetStorageVirtualMachineId() const { return m_storageVirtualMachineId; }
142 inline bool StorageVirtualMachineIdHasBeenSet() const { return m_storageVirtualMachineIdHasBeenSet; }
143 template<typename StorageVirtualMachineIdT = Aws::String>
144 void SetStorageVirtualMachineId(StorageVirtualMachineIdT&& value) { m_storageVirtualMachineIdHasBeenSet = true; m_storageVirtualMachineId = std::forward<StorageVirtualMachineIdT>(value); }
145 template<typename StorageVirtualMachineIdT = Aws::String>
146 StorageVirtualMachine& WithStorageVirtualMachineId(StorageVirtualMachineIdT&& value) { SetStorageVirtualMachineId(std::forward<StorageVirtualMachineIdT>(value)); return *this;}
148
150
153 inline StorageVirtualMachineSubtype GetSubtype() const { return m_subtype; }
154 inline bool SubtypeHasBeenSet() const { return m_subtypeHasBeenSet; }
155 inline void SetSubtype(StorageVirtualMachineSubtype value) { m_subtypeHasBeenSet = true; m_subtype = value; }
158
160
163 inline const Aws::String& GetUUID() const { return m_uUID; }
164 inline bool UUIDHasBeenSet() const { return m_uUIDHasBeenSet; }
165 template<typename UUIDT = Aws::String>
166 void SetUUID(UUIDT&& value) { m_uUIDHasBeenSet = true; m_uUID = std::forward<UUIDT>(value); }
167 template<typename UUIDT = Aws::String>
168 StorageVirtualMachine& WithUUID(UUIDT&& value) { SetUUID(std::forward<UUIDT>(value)); return *this;}
170
172
173 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template<typename TagsT = Aws::Vector<Tag>>
176 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
177 template<typename TagsT = Aws::Vector<Tag>>
178 StorageVirtualMachine& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
179 template<typename TagsT = Tag>
180 StorageVirtualMachine& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
182
184
187 inline const LifecycleTransitionReason& GetLifecycleTransitionReason() const { return m_lifecycleTransitionReason; }
188 inline bool LifecycleTransitionReasonHasBeenSet() const { return m_lifecycleTransitionReasonHasBeenSet; }
189 template<typename LifecycleTransitionReasonT = LifecycleTransitionReason>
190 void SetLifecycleTransitionReason(LifecycleTransitionReasonT&& value) { m_lifecycleTransitionReasonHasBeenSet = true; m_lifecycleTransitionReason = std::forward<LifecycleTransitionReasonT>(value); }
191 template<typename LifecycleTransitionReasonT = LifecycleTransitionReason>
192 StorageVirtualMachine& WithLifecycleTransitionReason(LifecycleTransitionReasonT&& value) { SetLifecycleTransitionReason(std::forward<LifecycleTransitionReasonT>(value)); return *this;}
194
196
199 inline StorageVirtualMachineRootVolumeSecurityStyle GetRootVolumeSecurityStyle() const { return m_rootVolumeSecurityStyle; }
200 inline bool RootVolumeSecurityStyleHasBeenSet() const { return m_rootVolumeSecurityStyleHasBeenSet; }
201 inline void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = value; }
204 private:
205
206 SvmActiveDirectoryConfiguration m_activeDirectoryConfiguration;
207 bool m_activeDirectoryConfigurationHasBeenSet = false;
208
209 Aws::Utils::DateTime m_creationTime{};
210 bool m_creationTimeHasBeenSet = false;
211
212 SvmEndpoints m_endpoints;
213 bool m_endpointsHasBeenSet = false;
214
215 Aws::String m_fileSystemId;
216 bool m_fileSystemIdHasBeenSet = false;
217
219 bool m_lifecycleHasBeenSet = false;
220
221 Aws::String m_name;
222 bool m_nameHasBeenSet = false;
223
224 Aws::String m_resourceARN;
225 bool m_resourceARNHasBeenSet = false;
226
227 Aws::String m_storageVirtualMachineId;
228 bool m_storageVirtualMachineIdHasBeenSet = false;
229
231 bool m_subtypeHasBeenSet = false;
232
233 Aws::String m_uUID;
234 bool m_uUIDHasBeenSet = false;
235
236 Aws::Vector<Tag> m_tags;
237 bool m_tagsHasBeenSet = false;
238
239 LifecycleTransitionReason m_lifecycleTransitionReason;
240 bool m_lifecycleTransitionReasonHasBeenSet = false;
241
243 bool m_rootVolumeSecurityStyleHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace FSx
248} // 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 SetFileSystemId(FileSystemIdT &&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)
const Aws::String & GetFileSystemId() const
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