AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeExportResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/ExportResourceSpecification.h>
12#include <aws/lexv2-models/model/ExportStatus.h>
13#include <aws/lexv2-models/model/ImportExportFileFormat.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2 {
27namespace Model {
29 public:
30 AWS_LEXMODELSV2_API DescribeExportResult() = default;
33
35
38 inline const Aws::String& GetExportId() const { return m_exportId; }
39 template <typename ExportIdT = Aws::String>
40 void SetExportId(ExportIdT&& value) {
41 m_exportIdHasBeenSet = true;
42 m_exportId = std::forward<ExportIdT>(value);
43 }
44 template <typename ExportIdT = Aws::String>
45 DescribeExportResult& WithExportId(ExportIdT&& value) {
46 SetExportId(std::forward<ExportIdT>(value));
47 return *this;
48 }
50
52
56 inline const ExportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
57 template <typename ResourceSpecificationT = ExportResourceSpecification>
58 void SetResourceSpecification(ResourceSpecificationT&& value) {
59 m_resourceSpecificationHasBeenSet = true;
60 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
61 }
62 template <typename ResourceSpecificationT = ExportResourceSpecification>
63 DescribeExportResult& WithResourceSpecification(ResourceSpecificationT&& value) {
64 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
65 return *this;
66 }
68
70
73 inline ImportExportFileFormat GetFileFormat() const { return m_fileFormat; }
75 m_fileFormatHasBeenSet = true;
76 m_fileFormat = value;
77 }
79 SetFileFormat(value);
80 return *this;
81 }
83
85
89 inline ExportStatus GetExportStatus() const { return m_exportStatus; }
90 inline void SetExportStatus(ExportStatus value) {
91 m_exportStatusHasBeenSet = true;
92 m_exportStatus = value;
93 }
95 SetExportStatus(value);
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
106 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
107 void SetFailureReasons(FailureReasonsT&& value) {
108 m_failureReasonsHasBeenSet = true;
109 m_failureReasons = std::forward<FailureReasonsT>(value);
110 }
111 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
112 DescribeExportResult& WithFailureReasons(FailureReasonsT&& value) {
113 SetFailureReasons(std::forward<FailureReasonsT>(value));
114 return *this;
115 }
116 template <typename FailureReasonsT = Aws::String>
117 DescribeExportResult& AddFailureReasons(FailureReasonsT&& value) {
118 m_failureReasonsHasBeenSet = true;
119 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::String& GetDownloadUrl() const { return m_downloadUrl; }
131 template <typename DownloadUrlT = Aws::String>
132 void SetDownloadUrl(DownloadUrlT&& value) {
133 m_downloadUrlHasBeenSet = true;
134 m_downloadUrl = std::forward<DownloadUrlT>(value);
135 }
136 template <typename DownloadUrlT = Aws::String>
137 DescribeExportResult& WithDownloadUrl(DownloadUrlT&& value) {
138 SetDownloadUrl(std::forward<DownloadUrlT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
148 template <typename CreationDateTimeT = Aws::Utils::DateTime>
149 void SetCreationDateTime(CreationDateTimeT&& value) {
150 m_creationDateTimeHasBeenSet = true;
151 m_creationDateTime = std::forward<CreationDateTimeT>(value);
152 }
153 template <typename CreationDateTimeT = Aws::Utils::DateTime>
154 DescribeExportResult& WithCreationDateTime(CreationDateTimeT&& value) {
155 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
165 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
166 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
167 m_lastUpdatedDateTimeHasBeenSet = true;
168 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
169 }
170 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
171 DescribeExportResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
172 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
173 return *this;
174 }
176
178
179 inline const Aws::String& GetRequestId() const { return m_requestId; }
180 template <typename RequestIdT = Aws::String>
181 void SetRequestId(RequestIdT&& value) {
182 m_requestIdHasBeenSet = true;
183 m_requestId = std::forward<RequestIdT>(value);
184 }
185 template <typename RequestIdT = Aws::String>
186 DescribeExportResult& WithRequestId(RequestIdT&& value) {
187 SetRequestId(std::forward<RequestIdT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_exportId;
193
194 ExportResourceSpecification m_resourceSpecification;
195
197
198 ExportStatus m_exportStatus{ExportStatus::NOT_SET};
199
200 Aws::Vector<Aws::String> m_failureReasons;
201
202 Aws::String m_downloadUrl;
203
204 Aws::Utils::DateTime m_creationDateTime{};
205
206 Aws::Utils::DateTime m_lastUpdatedDateTime{};
207
208 Aws::String m_requestId;
209 bool m_exportIdHasBeenSet = false;
210 bool m_resourceSpecificationHasBeenSet = false;
211 bool m_fileFormatHasBeenSet = false;
212 bool m_exportStatusHasBeenSet = false;
213 bool m_failureReasonsHasBeenSet = false;
214 bool m_downloadUrlHasBeenSet = false;
215 bool m_creationDateTimeHasBeenSet = false;
216 bool m_lastUpdatedDateTimeHasBeenSet = false;
217 bool m_requestIdHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace LexModelsV2
222} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
AWS_LEXMODELSV2_API DescribeExportResult()=default
const Aws::Vector< Aws::String > & GetFailureReasons() const
void SetCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API DescribeExportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeExportResult & WithDownloadUrl(DownloadUrlT &&value)
AWS_LEXMODELSV2_API DescribeExportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ExportResourceSpecification & GetResourceSpecification() const
DescribeExportResult & AddFailureReasons(FailureReasonsT &&value)
DescribeExportResult & WithRequestId(RequestIdT &&value)
void SetResourceSpecification(ResourceSpecificationT &&value)
DescribeExportResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeExportResult & WithCreationDateTime(CreationDateTimeT &&value)
DescribeExportResult & WithResourceSpecification(ResourceSpecificationT &&value)
void SetFileFormat(ImportExportFileFormat value)
DescribeExportResult & WithExportStatus(ExportStatus value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
DescribeExportResult & WithExportId(ExportIdT &&value)
DescribeExportResult & WithFailureReasons(FailureReasonsT &&value)
DescribeExportResult & WithFileFormat(ImportExportFileFormat value)
const Aws::Utils::DateTime & GetCreationDateTime() 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