AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
DescribeExportResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/ExportResourceSpecification.h>
13#include <aws/lexv2-models/model/ExportStatus.h>
14#include <aws/lexv2-models/model/ImportExportFileFormat.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LexModelsV2 {
28namespace Model {
30 public:
31 AWS_LEXMODELSV2_API DescribeExportResult() = default;
34
36
39 inline const Aws::String& GetExportId() const { return m_exportId; }
40 template <typename ExportIdT = Aws::String>
41 void SetExportId(ExportIdT&& value) {
42 m_exportIdHasBeenSet = true;
43 m_exportId = std::forward<ExportIdT>(value);
44 }
45 template <typename ExportIdT = Aws::String>
46 DescribeExportResult& WithExportId(ExportIdT&& value) {
47 SetExportId(std::forward<ExportIdT>(value));
48 return *this;
49 }
51
53
57 inline const ExportResourceSpecification& GetResourceSpecification() const { return m_resourceSpecification; }
58 template <typename ResourceSpecificationT = ExportResourceSpecification>
59 void SetResourceSpecification(ResourceSpecificationT&& value) {
60 m_resourceSpecificationHasBeenSet = true;
61 m_resourceSpecification = std::forward<ResourceSpecificationT>(value);
62 }
63 template <typename ResourceSpecificationT = ExportResourceSpecification>
64 DescribeExportResult& WithResourceSpecification(ResourceSpecificationT&& value) {
65 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
66 return *this;
67 }
69
71
74 inline ImportExportFileFormat GetFileFormat() const { return m_fileFormat; }
76 m_fileFormatHasBeenSet = true;
77 m_fileFormat = value;
78 }
80 SetFileFormat(value);
81 return *this;
82 }
84
86
90 inline ExportStatus GetExportStatus() const { return m_exportStatus; }
91 inline void SetExportStatus(ExportStatus value) {
92 m_exportStatusHasBeenSet = true;
93 m_exportStatus = value;
94 }
96 SetExportStatus(value);
97 return *this;
98 }
100
102
106 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
107 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
108 void SetFailureReasons(FailureReasonsT&& value) {
109 m_failureReasonsHasBeenSet = true;
110 m_failureReasons = std::forward<FailureReasonsT>(value);
111 }
112 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
113 DescribeExportResult& WithFailureReasons(FailureReasonsT&& value) {
114 SetFailureReasons(std::forward<FailureReasonsT>(value));
115 return *this;
116 }
117 template <typename FailureReasonsT = Aws::String>
118 DescribeExportResult& AddFailureReasons(FailureReasonsT&& value) {
119 m_failureReasonsHasBeenSet = true;
120 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
121 return *this;
122 }
124
126
131 inline const Aws::String& GetDownloadUrl() const { return m_downloadUrl; }
132 template <typename DownloadUrlT = Aws::String>
133 void SetDownloadUrl(DownloadUrlT&& value) {
134 m_downloadUrlHasBeenSet = true;
135 m_downloadUrl = std::forward<DownloadUrlT>(value);
136 }
137 template <typename DownloadUrlT = Aws::String>
138 DescribeExportResult& WithDownloadUrl(DownloadUrlT&& value) {
139 SetDownloadUrl(std::forward<DownloadUrlT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
149 template <typename CreationDateTimeT = Aws::Utils::DateTime>
150 void SetCreationDateTime(CreationDateTimeT&& value) {
151 m_creationDateTimeHasBeenSet = true;
152 m_creationDateTime = std::forward<CreationDateTimeT>(value);
153 }
154 template <typename CreationDateTimeT = Aws::Utils::DateTime>
155 DescribeExportResult& WithCreationDateTime(CreationDateTimeT&& value) {
156 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
166 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
167 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
168 m_lastUpdatedDateTimeHasBeenSet = true;
169 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
170 }
171 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
172 DescribeExportResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
173 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
174 return *this;
175 }
177
179
180 inline const Aws::String& GetRequestId() const { return m_requestId; }
181 template <typename RequestIdT = Aws::String>
182 void SetRequestId(RequestIdT&& value) {
183 m_requestIdHasBeenSet = true;
184 m_requestId = std::forward<RequestIdT>(value);
185 }
186 template <typename RequestIdT = Aws::String>
187 DescribeExportResult& WithRequestId(RequestIdT&& value) {
188 SetRequestId(std::forward<RequestIdT>(value));
189 return *this;
190 }
192 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
193
194 private:
195 Aws::String m_exportId;
196
197 ExportResourceSpecification m_resourceSpecification;
198
200
201 ExportStatus m_exportStatus{ExportStatus::NOT_SET};
202
203 Aws::Vector<Aws::String> m_failureReasons;
204
205 Aws::String m_downloadUrl;
206
207 Aws::Utils::DateTime m_creationDateTime{};
208
209 Aws::Utils::DateTime m_lastUpdatedDateTime{};
210
211 Aws::String m_requestId;
212 Aws::Http::HttpResponseCode m_HttpResponseCode;
213 bool m_exportIdHasBeenSet = false;
214 bool m_resourceSpecificationHasBeenSet = false;
215 bool m_fileFormatHasBeenSet = false;
216 bool m_exportStatusHasBeenSet = false;
217 bool m_failureReasonsHasBeenSet = false;
218 bool m_downloadUrlHasBeenSet = false;
219 bool m_creationDateTimeHasBeenSet = false;
220 bool m_lastUpdatedDateTimeHasBeenSet = false;
221 bool m_requestIdHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace LexModelsV2
226} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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