AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateStorageVirtualMachineRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/fsx/model/CreateSvmActiveDirectoryConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/StorageVirtualMachineRootVolumeSecurityStyle.h>
13#include <aws/fsx/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace FSx
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateStorageVirtualMachine"; }
36
37 AWS_FSX_API Aws::String SerializePayload() const override;
38
40
41
43
49 inline const CreateSvmActiveDirectoryConfiguration& GetActiveDirectoryConfiguration() const{ return m_activeDirectoryConfiguration; }
50 inline bool ActiveDirectoryConfigurationHasBeenSet() const { return m_activeDirectoryConfigurationHasBeenSet; }
51 inline void SetActiveDirectoryConfiguration(const CreateSvmActiveDirectoryConfiguration& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = value; }
52 inline void SetActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration&& value) { m_activeDirectoryConfigurationHasBeenSet = true; m_activeDirectoryConfiguration = std::move(value); }
56
58
59 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
60 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
61 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
62 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
63 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
66 inline CreateStorageVirtualMachineRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
68
70
71 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
72 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
73 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
74 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
75 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
77 inline CreateStorageVirtualMachineRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
78 inline CreateStorageVirtualMachineRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
80
82
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline CreateStorageVirtualMachineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline CreateStorageVirtualMachineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline CreateStorageVirtualMachineRequest& WithName(const char* value) { SetName(value); return *this;}
94
96
101 inline const Aws::String& GetSvmAdminPassword() const{ return m_svmAdminPassword; }
102 inline bool SvmAdminPasswordHasBeenSet() const { return m_svmAdminPasswordHasBeenSet; }
103 inline void SetSvmAdminPassword(const Aws::String& value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword = value; }
104 inline void SetSvmAdminPassword(Aws::String&& value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword = std::move(value); }
105 inline void SetSvmAdminPassword(const char* value) { m_svmAdminPasswordHasBeenSet = true; m_svmAdminPassword.assign(value); }
108 inline CreateStorageVirtualMachineRequest& WithSvmAdminPassword(const char* value) { SetSvmAdminPassword(value); return *this;}
110
112
113 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateStorageVirtualMachineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
118 inline CreateStorageVirtualMachineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateStorageVirtualMachineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateStorageVirtualMachineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122
124
138 inline const StorageVirtualMachineRootVolumeSecurityStyle& GetRootVolumeSecurityStyle() const{ return m_rootVolumeSecurityStyle; }
139 inline bool RootVolumeSecurityStyleHasBeenSet() const { return m_rootVolumeSecurityStyleHasBeenSet; }
140 inline void SetRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = value; }
141 inline void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle&& value) { m_rootVolumeSecurityStyleHasBeenSet = true; m_rootVolumeSecurityStyle = std::move(value); }
145 private:
146
147 CreateSvmActiveDirectoryConfiguration m_activeDirectoryConfiguration;
148 bool m_activeDirectoryConfigurationHasBeenSet = false;
149
150 Aws::String m_clientRequestToken;
151 bool m_clientRequestTokenHasBeenSet = false;
152
153 Aws::String m_fileSystemId;
154 bool m_fileSystemIdHasBeenSet = false;
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
159 Aws::String m_svmAdminPassword;
160 bool m_svmAdminPasswordHasBeenSet = false;
161
162 Aws::Vector<Tag> m_tags;
163 bool m_tagsHasBeenSet = false;
164
165 StorageVirtualMachineRootVolumeSecurityStyle m_rootVolumeSecurityStyle;
166 bool m_rootVolumeSecurityStyleHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace FSx
171} // namespace Aws
CreateStorageVirtualMachineRequest & WithSvmAdminPassword(const char *value)
CreateStorageVirtualMachineRequest & AddTags(const Tag &value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateStorageVirtualMachineRequest & WithFileSystemId(const Aws::String &value)
CreateStorageVirtualMachineRequest & WithSvmAdminPassword(Aws::String &&value)
CreateStorageVirtualMachineRequest & WithClientRequestToken(const char *value)
CreateStorageVirtualMachineRequest & WithTags(Aws::Vector< Tag > &&value)
CreateStorageVirtualMachineRequest & WithClientRequestToken(const Aws::String &value)
CreateStorageVirtualMachineRequest & WithTags(const Aws::Vector< Tag > &value)
CreateStorageVirtualMachineRequest & WithActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration &&value)
CreateStorageVirtualMachineRequest & AddTags(Tag &&value)
const CreateSvmActiveDirectoryConfiguration & GetActiveDirectoryConfiguration() const
CreateStorageVirtualMachineRequest & WithName(Aws::String &&value)
void SetRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle &&value)
CreateStorageVirtualMachineRequest & WithFileSystemId(const char *value)
CreateStorageVirtualMachineRequest & WithRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle &value)
void SetRootVolumeSecurityStyle(const StorageVirtualMachineRootVolumeSecurityStyle &value)
CreateStorageVirtualMachineRequest & WithFileSystemId(Aws::String &&value)
CreateStorageVirtualMachineRequest & WithName(const Aws::String &value)
CreateStorageVirtualMachineRequest & WithRootVolumeSecurityStyle(StorageVirtualMachineRootVolumeSecurityStyle &&value)
CreateStorageVirtualMachineRequest & WithName(const char *value)
void SetActiveDirectoryConfiguration(const CreateSvmActiveDirectoryConfiguration &value)
CreateStorageVirtualMachineRequest & WithActiveDirectoryConfiguration(const CreateSvmActiveDirectoryConfiguration &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStorageVirtualMachineRequest & WithClientRequestToken(Aws::String &&value)
const StorageVirtualMachineRootVolumeSecurityStyle & GetRootVolumeSecurityStyle() const
void SetActiveDirectoryConfiguration(CreateSvmActiveDirectoryConfiguration &&value)
CreateStorageVirtualMachineRequest & WithSvmAdminPassword(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector