AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFileCacheRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/model/FileCacheType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/CreateFileCacheLustreConfiguration.h>
13#include <aws/fsx/model/Tag.h>
14#include <aws/fsx/model/FileCacheDataRepositoryAssociation.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace FSx
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateFileCache"; }
37
38 AWS_FSX_API Aws::String SerializePayload() const override;
39
41
42
44
55 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
56 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
57 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
58 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
59 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
61 inline CreateFileCacheRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
62 inline CreateFileCacheRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
64
66
70 inline const FileCacheType& GetFileCacheType() const{ return m_fileCacheType; }
71 inline bool FileCacheTypeHasBeenSet() const { return m_fileCacheTypeHasBeenSet; }
72 inline void SetFileCacheType(const FileCacheType& value) { m_fileCacheTypeHasBeenSet = true; m_fileCacheType = value; }
73 inline void SetFileCacheType(FileCacheType&& value) { m_fileCacheTypeHasBeenSet = true; m_fileCacheType = std::move(value); }
74 inline CreateFileCacheRequest& WithFileCacheType(const FileCacheType& value) { SetFileCacheType(value); return *this;}
75 inline CreateFileCacheRequest& WithFileCacheType(FileCacheType&& value) { SetFileCacheType(std::move(value)); return *this;}
77
79
83 inline const Aws::String& GetFileCacheTypeVersion() const{ return m_fileCacheTypeVersion; }
84 inline bool FileCacheTypeVersionHasBeenSet() const { return m_fileCacheTypeVersionHasBeenSet; }
85 inline void SetFileCacheTypeVersion(const Aws::String& value) { m_fileCacheTypeVersionHasBeenSet = true; m_fileCacheTypeVersion = value; }
86 inline void SetFileCacheTypeVersion(Aws::String&& value) { m_fileCacheTypeVersionHasBeenSet = true; m_fileCacheTypeVersion = std::move(value); }
87 inline void SetFileCacheTypeVersion(const char* value) { m_fileCacheTypeVersionHasBeenSet = true; m_fileCacheTypeVersion.assign(value); }
89 inline CreateFileCacheRequest& WithFileCacheTypeVersion(Aws::String&& value) { SetFileCacheTypeVersion(std::move(value)); return *this;}
90 inline CreateFileCacheRequest& WithFileCacheTypeVersion(const char* value) { SetFileCacheTypeVersion(value); return *this;}
92
94
98 inline int GetStorageCapacity() const{ return m_storageCapacity; }
99 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
100 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
101 inline CreateFileCacheRequest& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
103
105
106 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
107 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
108 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
109 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
110 inline CreateFileCacheRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
111 inline CreateFileCacheRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
112 inline CreateFileCacheRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
113 inline CreateFileCacheRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
114 inline CreateFileCacheRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
116
118
123 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
124 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
125 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
126 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
129 inline CreateFileCacheRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
130 inline CreateFileCacheRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
131 inline CreateFileCacheRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
133
135
136 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline CreateFileCacheRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline CreateFileCacheRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline CreateFileCacheRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 inline CreateFileCacheRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145
147
151 inline bool GetCopyTagsToDataRepositoryAssociations() const{ return m_copyTagsToDataRepositoryAssociations; }
152 inline bool CopyTagsToDataRepositoryAssociationsHasBeenSet() const { return m_copyTagsToDataRepositoryAssociationsHasBeenSet; }
153 inline void SetCopyTagsToDataRepositoryAssociations(bool value) { m_copyTagsToDataRepositoryAssociationsHasBeenSet = true; m_copyTagsToDataRepositoryAssociations = value; }
156
158
166 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
167 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
168 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
169 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
170 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
171 inline CreateFileCacheRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
172 inline CreateFileCacheRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
173 inline CreateFileCacheRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
175
177
180 inline const CreateFileCacheLustreConfiguration& GetLustreConfiguration() const{ return m_lustreConfiguration; }
181 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
182 inline void SetLustreConfiguration(const CreateFileCacheLustreConfiguration& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = value; }
183 inline void SetLustreConfiguration(CreateFileCacheLustreConfiguration&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::move(value); }
187
189
200 inline const Aws::Vector<FileCacheDataRepositoryAssociation>& GetDataRepositoryAssociations() const{ return m_dataRepositoryAssociations; }
201 inline bool DataRepositoryAssociationsHasBeenSet() const { return m_dataRepositoryAssociationsHasBeenSet; }
202 inline void SetDataRepositoryAssociations(const Aws::Vector<FileCacheDataRepositoryAssociation>& value) { m_dataRepositoryAssociationsHasBeenSet = true; m_dataRepositoryAssociations = value; }
203 inline void SetDataRepositoryAssociations(Aws::Vector<FileCacheDataRepositoryAssociation>&& value) { m_dataRepositoryAssociationsHasBeenSet = true; m_dataRepositoryAssociations = std::move(value); }
206 inline CreateFileCacheRequest& AddDataRepositoryAssociations(const FileCacheDataRepositoryAssociation& value) { m_dataRepositoryAssociationsHasBeenSet = true; m_dataRepositoryAssociations.push_back(value); return *this; }
207 inline CreateFileCacheRequest& AddDataRepositoryAssociations(FileCacheDataRepositoryAssociation&& value) { m_dataRepositoryAssociationsHasBeenSet = true; m_dataRepositoryAssociations.push_back(std::move(value)); return *this; }
209 private:
210
211 Aws::String m_clientRequestToken;
212 bool m_clientRequestTokenHasBeenSet = false;
213
214 FileCacheType m_fileCacheType;
215 bool m_fileCacheTypeHasBeenSet = false;
216
217 Aws::String m_fileCacheTypeVersion;
218 bool m_fileCacheTypeVersionHasBeenSet = false;
219
220 int m_storageCapacity;
221 bool m_storageCapacityHasBeenSet = false;
222
223 Aws::Vector<Aws::String> m_subnetIds;
224 bool m_subnetIdsHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_securityGroupIds;
227 bool m_securityGroupIdsHasBeenSet = false;
228
229 Aws::Vector<Tag> m_tags;
230 bool m_tagsHasBeenSet = false;
231
232 bool m_copyTagsToDataRepositoryAssociations;
233 bool m_copyTagsToDataRepositoryAssociationsHasBeenSet = false;
234
235 Aws::String m_kmsKeyId;
236 bool m_kmsKeyIdHasBeenSet = false;
237
238 CreateFileCacheLustreConfiguration m_lustreConfiguration;
239 bool m_lustreConfigurationHasBeenSet = false;
240
241 Aws::Vector<FileCacheDataRepositoryAssociation> m_dataRepositoryAssociations;
242 bool m_dataRepositoryAssociationsHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace FSx
247} // namespace Aws
CreateFileCacheRequest & AddSecurityGroupIds(const Aws::String &value)
CreateFileCacheRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetFileCacheTypeVersion() const
CreateFileCacheRequest & WithClientRequestToken(const Aws::String &value)
void SetDataRepositoryAssociations(Aws::Vector< FileCacheDataRepositoryAssociation > &&value)
CreateFileCacheRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateFileCacheRequest & WithCopyTagsToDataRepositoryAssociations(bool value)
CreateFileCacheRequest & AddSubnetIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetLustreConfiguration(const CreateFileCacheLustreConfiguration &value)
const Aws::Vector< FileCacheDataRepositoryAssociation > & GetDataRepositoryAssociations() const
virtual const char * GetServiceRequestName() const override
CreateFileCacheRequest & WithFileCacheTypeVersion(const char *value)
const Aws::String & GetClientRequestToken() const
CreateFileCacheRequest & WithFileCacheTypeVersion(const Aws::String &value)
AWS_FSX_API Aws::String SerializePayload() const override
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetFileCacheTypeVersion(const Aws::String &value)
CreateFileCacheRequest & AddSubnetIds(const char *value)
CreateFileCacheRequest & WithFileCacheTypeVersion(Aws::String &&value)
CreateFileCacheRequest & WithFileCacheType(const FileCacheType &value)
const CreateFileCacheLustreConfiguration & GetLustreConfiguration() const
CreateFileCacheRequest & AddTags(const Tag &value)
CreateFileCacheRequest & AddSecurityGroupIds(Aws::String &&value)
CreateFileCacheRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
const FileCacheType & GetFileCacheType() const
CreateFileCacheRequest & WithKmsKeyId(const Aws::String &value)
CreateFileCacheRequest & WithLustreConfiguration(const CreateFileCacheLustreConfiguration &value)
CreateFileCacheRequest & WithDataRepositoryAssociations(const Aws::Vector< FileCacheDataRepositoryAssociation > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateFileCacheRequest & WithKmsKeyId(const char *value)
CreateFileCacheRequest & WithClientRequestToken(Aws::String &&value)
CreateFileCacheRequest & WithKmsKeyId(Aws::String &&value)
void SetClientRequestToken(const Aws::String &value)
CreateFileCacheRequest & AddDataRepositoryAssociations(FileCacheDataRepositoryAssociation &&value)
CreateFileCacheRequest & WithFileCacheType(FileCacheType &&value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateFileCacheRequest & AddDataRepositoryAssociations(const FileCacheDataRepositoryAssociation &value)
void SetDataRepositoryAssociations(const Aws::Vector< FileCacheDataRepositoryAssociation > &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
CreateFileCacheRequest & WithLustreConfiguration(CreateFileCacheLustreConfiguration &&value)
void SetLustreConfiguration(CreateFileCacheLustreConfiguration &&value)
CreateFileCacheRequest & AddTags(Tag &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateFileCacheRequest & WithDataRepositoryAssociations(Aws::Vector< FileCacheDataRepositoryAssociation > &&value)
CreateFileCacheRequest & WithClientRequestToken(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateFileCacheRequest & AddSecurityGroupIds(const char *value)
CreateFileCacheRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateFileCacheRequest & WithTags(const Aws::Vector< Tag > &value)
CreateFileCacheRequest & AddSubnetIds(const Aws::String &value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateFileCacheRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateFileCacheRequest & WithStorageCapacity(int value)
void SetFileCacheType(const FileCacheType &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