AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataRepositoryTaskRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/fsx/model/DataRepositoryTaskType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/fsx/model/CompletionReport.h>
13#include <aws/fsx/model/ReleaseConfiguration.h>
14#include <aws/fsx/model/Tag.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 "CreateDataRepositoryTask"; }
37
38 AWS_FSX_API Aws::String SerializePayload() const override;
39
41
42
44
56 inline const DataRepositoryTaskType& GetType() const{ return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(const DataRepositoryTaskType& value) { m_typeHasBeenSet = true; m_type = value; }
59 inline void SetType(DataRepositoryTaskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 inline CreateDataRepositoryTaskRequest& WithType(const DataRepositoryTaskType& value) { SetType(value); return *this;}
61 inline CreateDataRepositoryTaskRequest& WithType(DataRepositoryTaskType&& value) { SetType(std::move(value)); return *this;}
63
65
89 inline const Aws::Vector<Aws::String>& GetPaths() const{ return m_paths; }
90 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
91 inline void SetPaths(const Aws::Vector<Aws::String>& value) { m_pathsHasBeenSet = true; m_paths = value; }
92 inline void SetPaths(Aws::Vector<Aws::String>&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); }
93 inline CreateDataRepositoryTaskRequest& WithPaths(const Aws::Vector<Aws::String>& value) { SetPaths(value); return *this;}
94 inline CreateDataRepositoryTaskRequest& WithPaths(Aws::Vector<Aws::String>&& value) { SetPaths(std::move(value)); return *this;}
95 inline CreateDataRepositoryTaskRequest& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
96 inline CreateDataRepositoryTaskRequest& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; }
97 inline CreateDataRepositoryTaskRequest& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; }
99
101
102 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
103 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
104 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
105 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
106 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
108 inline CreateDataRepositoryTaskRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
109 inline CreateDataRepositoryTaskRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
111
113
121 inline const CompletionReport& GetReport() const{ return m_report; }
122 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
123 inline void SetReport(const CompletionReport& value) { m_reportHasBeenSet = true; m_report = value; }
124 inline void SetReport(CompletionReport&& value) { m_reportHasBeenSet = true; m_report = std::move(value); }
125 inline CreateDataRepositoryTaskRequest& WithReport(const CompletionReport& value) { SetReport(value); return *this;}
126 inline CreateDataRepositoryTaskRequest& WithReport(CompletionReport&& value) { SetReport(std::move(value)); return *this;}
128
130
131 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
132 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
133 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
134 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
135 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
138 inline CreateDataRepositoryTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
140
142
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline CreateDataRepositoryTaskRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateDataRepositoryTaskRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateDataRepositoryTaskRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateDataRepositoryTaskRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152
154
159 inline long long GetCapacityToRelease() const{ return m_capacityToRelease; }
160 inline bool CapacityToReleaseHasBeenSet() const { return m_capacityToReleaseHasBeenSet; }
161 inline void SetCapacityToRelease(long long value) { m_capacityToReleaseHasBeenSet = true; m_capacityToRelease = value; }
162 inline CreateDataRepositoryTaskRequest& WithCapacityToRelease(long long value) { SetCapacityToRelease(value); return *this;}
164
166
170 inline const ReleaseConfiguration& GetReleaseConfiguration() const{ return m_releaseConfiguration; }
171 inline bool ReleaseConfigurationHasBeenSet() const { return m_releaseConfigurationHasBeenSet; }
172 inline void SetReleaseConfiguration(const ReleaseConfiguration& value) { m_releaseConfigurationHasBeenSet = true; m_releaseConfiguration = value; }
173 inline void SetReleaseConfiguration(ReleaseConfiguration&& value) { m_releaseConfigurationHasBeenSet = true; m_releaseConfiguration = std::move(value); }
177 private:
178
180 bool m_typeHasBeenSet = false;
181
183 bool m_pathsHasBeenSet = false;
184
185 Aws::String m_fileSystemId;
186 bool m_fileSystemIdHasBeenSet = false;
187
188 CompletionReport m_report;
189 bool m_reportHasBeenSet = false;
190
191 Aws::String m_clientRequestToken;
192 bool m_clientRequestTokenHasBeenSet = false;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_tagsHasBeenSet = false;
196
197 long long m_capacityToRelease;
198 bool m_capacityToReleaseHasBeenSet = false;
199
200 ReleaseConfiguration m_releaseConfiguration;
201 bool m_releaseConfigurationHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace FSx
206} // namespace Aws
CreateDataRepositoryTaskRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataRepositoryTaskRequest & WithFileSystemId(const Aws::String &value)
CreateDataRepositoryTaskRequest & WithFileSystemId(const char *value)
void SetPaths(const Aws::Vector< Aws::String > &value)
CreateDataRepositoryTaskRequest & WithReleaseConfiguration(ReleaseConfiguration &&value)
CreateDataRepositoryTaskRequest & WithPaths(const Aws::Vector< Aws::String > &value)
CreateDataRepositoryTaskRequest & WithReport(const CompletionReport &value)
CreateDataRepositoryTaskRequest & WithType(const DataRepositoryTaskType &value)
CreateDataRepositoryTaskRequest & WithClientRequestToken(const Aws::String &value)
CreateDataRepositoryTaskRequest & AddPaths(const Aws::String &value)
CreateDataRepositoryTaskRequest & WithFileSystemId(Aws::String &&value)
CreateDataRepositoryTaskRequest & WithType(DataRepositoryTaskType &&value)
CreateDataRepositoryTaskRequest & WithClientRequestToken(Aws::String &&value)
void SetReleaseConfiguration(const ReleaseConfiguration &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDataRepositoryTaskRequest & WithReleaseConfiguration(const ReleaseConfiguration &value)
CreateDataRepositoryTaskRequest & WithReport(CompletionReport &&value)
CreateDataRepositoryTaskRequest & WithPaths(Aws::Vector< Aws::String > &&value)
CreateDataRepositoryTaskRequest & AddTags(const Tag &value)
CreateDataRepositoryTaskRequest & WithCapacityToRelease(long long value)
CreateDataRepositoryTaskRequest & AddPaths(const char *value)
CreateDataRepositoryTaskRequest & AddTags(Tag &&value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateDataRepositoryTaskRequest & WithClientRequestToken(const char *value)
CreateDataRepositoryTaskRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataRepositoryTaskRequest & AddPaths(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