AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataRepositoryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/AutoImportPolicyType.h>
10#include <aws/fsx/model/DataRepositoryFailureDetails.h>
11#include <aws/fsx/model/DataRepositoryLifecycle.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FSx {
23namespace Model {
24
35 public:
36 AWS_FSX_API DataRepositoryConfiguration() = default;
40
42
58 inline DataRepositoryLifecycle GetLifecycle() const { return m_lifecycle; }
59 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
61 m_lifecycleHasBeenSet = true;
62 m_lifecycle = value;
63 }
65 SetLifecycle(value);
66 return *this;
67 }
69
71
78 inline const Aws::String& GetImportPath() const { return m_importPath; }
79 inline bool ImportPathHasBeenSet() const { return m_importPathHasBeenSet; }
80 template <typename ImportPathT = Aws::String>
81 void SetImportPath(ImportPathT&& value) {
82 m_importPathHasBeenSet = true;
83 m_importPath = std::forward<ImportPathT>(value);
84 }
85 template <typename ImportPathT = Aws::String>
87 SetImportPath(std::forward<ImportPathT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetExportPath() const { return m_exportPath; }
98 inline bool ExportPathHasBeenSet() const { return m_exportPathHasBeenSet; }
99 template <typename ExportPathT = Aws::String>
100 void SetExportPath(ExportPathT&& value) {
101 m_exportPathHasBeenSet = true;
102 m_exportPath = std::forward<ExportPathT>(value);
103 }
104 template <typename ExportPathT = Aws::String>
106 SetExportPath(std::forward<ExportPathT>(value));
107 return *this;
108 }
110
112
120 inline int GetImportedFileChunkSize() const { return m_importedFileChunkSize; }
121 inline bool ImportedFileChunkSizeHasBeenSet() const { return m_importedFileChunkSizeHasBeenSet; }
122 inline void SetImportedFileChunkSize(int value) {
123 m_importedFileChunkSizeHasBeenSet = true;
124 m_importedFileChunkSize = value;
125 }
128 return *this;
129 }
131
133
153 inline AutoImportPolicyType GetAutoImportPolicy() const { return m_autoImportPolicy; }
154 inline bool AutoImportPolicyHasBeenSet() const { return m_autoImportPolicyHasBeenSet; }
156 m_autoImportPolicyHasBeenSet = true;
157 m_autoImportPolicy = value;
158 }
160 SetAutoImportPolicy(value);
161 return *this;
162 }
164
166
167 inline const DataRepositoryFailureDetails& GetFailureDetails() const { return m_failureDetails; }
168 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
169 template <typename FailureDetailsT = DataRepositoryFailureDetails>
170 void SetFailureDetails(FailureDetailsT&& value) {
171 m_failureDetailsHasBeenSet = true;
172 m_failureDetails = std::forward<FailureDetailsT>(value);
173 }
174 template <typename FailureDetailsT = DataRepositoryFailureDetails>
176 SetFailureDetails(std::forward<FailureDetailsT>(value));
177 return *this;
178 }
180 private:
182
183 Aws::String m_importPath;
184
185 Aws::String m_exportPath;
186
187 int m_importedFileChunkSize{0};
188
190
191 DataRepositoryFailureDetails m_failureDetails;
192 bool m_lifecycleHasBeenSet = false;
193 bool m_importPathHasBeenSet = false;
194 bool m_exportPathHasBeenSet = false;
195 bool m_importedFileChunkSizeHasBeenSet = false;
196 bool m_autoImportPolicyHasBeenSet = false;
197 bool m_failureDetailsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace FSx
202} // namespace Aws
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
DataRepositoryConfiguration & WithFailureDetails(FailureDetailsT &&value)
AWS_FSX_API DataRepositoryConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API DataRepositoryConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API DataRepositoryConfiguration()=default
DataRepositoryConfiguration & WithImportedFileChunkSize(int value)
DataRepositoryConfiguration & WithImportPath(ImportPathT &&value)
DataRepositoryConfiguration & WithExportPath(ExportPathT &&value)
const DataRepositoryFailureDetails & GetFailureDetails() const
DataRepositoryConfiguration & WithLifecycle(DataRepositoryLifecycle value)
DataRepositoryConfiguration & WithAutoImportPolicy(AutoImportPolicyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue