AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
UpdateExportResult.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/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 UpdateExportResult() = 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 UpdateExportResult& 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 UpdateExportResult& WithResourceSpecification(ResourceSpecificationT&& value) {
64 SetResourceSpecification(std::forward<ResourceSpecificationT>(value));
65 return *this;
66 }
68
70
75 inline ImportExportFileFormat GetFileFormat() const { return m_fileFormat; }
77 m_fileFormatHasBeenSet = true;
78 m_fileFormat = value;
79 }
81 SetFileFormat(value);
82 return *this;
83 }
85
87
91 inline ExportStatus GetExportStatus() const { return m_exportStatus; }
92 inline void SetExportStatus(ExportStatus value) {
93 m_exportStatusHasBeenSet = true;
94 m_exportStatus = value;
95 }
97 SetExportStatus(value);
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
107 template <typename CreationDateTimeT = Aws::Utils::DateTime>
108 void SetCreationDateTime(CreationDateTimeT&& value) {
109 m_creationDateTimeHasBeenSet = true;
110 m_creationDateTime = std::forward<CreationDateTimeT>(value);
111 }
112 template <typename CreationDateTimeT = Aws::Utils::DateTime>
113 UpdateExportResult& WithCreationDateTime(CreationDateTimeT&& value) {
114 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
124 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
125 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
126 m_lastUpdatedDateTimeHasBeenSet = true;
127 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
128 }
129 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
130 UpdateExportResult& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
131 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
145 UpdateExportResult& WithRequestId(RequestIdT&& value) {
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
151
152 private:
153 Aws::String m_exportId;
154
155 ExportResourceSpecification m_resourceSpecification;
156
158
159 ExportStatus m_exportStatus{ExportStatus::NOT_SET};
160
161 Aws::Utils::DateTime m_creationDateTime{};
162
163 Aws::Utils::DateTime m_lastUpdatedDateTime{};
164
165 Aws::String m_requestId;
166 Aws::Http::HttpResponseCode m_HttpResponseCode;
167 bool m_exportIdHasBeenSet = false;
168 bool m_resourceSpecificationHasBeenSet = false;
169 bool m_fileFormatHasBeenSet = false;
170 bool m_exportStatusHasBeenSet = false;
171 bool m_creationDateTimeHasBeenSet = false;
172 bool m_lastUpdatedDateTimeHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace LexModelsV2
178} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LEXMODELSV2_API UpdateExportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportExportFileFormat GetFileFormat() const
UpdateExportResult & WithResourceSpecification(ResourceSpecificationT &&value)
UpdateExportResult & WithRequestId(RequestIdT &&value)
void SetResourceSpecification(ResourceSpecificationT &&value)
AWS_LEXMODELSV2_API UpdateExportResult()=default
const Aws::Utils::DateTime & GetCreationDateTime() const
void SetCreationDateTime(CreationDateTimeT &&value)
UpdateExportResult & WithFileFormat(ImportExportFileFormat value)
UpdateExportResult & WithExportId(ExportIdT &&value)
void SetFileFormat(ImportExportFileFormat value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
UpdateExportResult & WithCreationDateTime(CreationDateTimeT &&value)
UpdateExportResult & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
const ExportResourceSpecification & GetResourceSpecification() const
AWS_LEXMODELSV2_API UpdateExportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateExportResult & WithExportStatus(ExportStatus value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue