AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportJobSummary.h
1
6#pragma once
7#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/wisdom/model/ExternalSourceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/wisdom/model/ImportJobType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/wisdom/model/ImportJobStatus.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConnectWisdomService
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONNECTWISDOMSERVICE_API ImportJobSummary() = default;
40 AWS_CONNECTWISDOMSERVICE_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECTWISDOMSERVICE_API ImportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
50 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
51 template<typename CreatedTimeT = Aws::Utils::DateTime>
52 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
53 template<typename CreatedTimeT = Aws::Utils::DateTime>
54 ImportJobSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
56
58
62 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
63 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
64 template<typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
65 void SetExternalSourceConfiguration(ExternalSourceConfigurationT&& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value); }
66 template<typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
67 ImportJobSummary& WithExternalSourceConfiguration(ExternalSourceConfigurationT&& value) { SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value)); return *this;}
69
71
74 inline const Aws::String& GetImportJobId() const { return m_importJobId; }
75 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
76 template<typename ImportJobIdT = Aws::String>
77 void SetImportJobId(ImportJobIdT&& value) { m_importJobIdHasBeenSet = true; m_importJobId = std::forward<ImportJobIdT>(value); }
78 template<typename ImportJobIdT = Aws::String>
79 ImportJobSummary& WithImportJobId(ImportJobIdT&& value) { SetImportJobId(std::forward<ImportJobIdT>(value)); return *this;}
81
83
86 inline ImportJobType GetImportJobType() const { return m_importJobType; }
87 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
88 inline void SetImportJobType(ImportJobType value) { m_importJobTypeHasBeenSet = true; m_importJobType = value; }
89 inline ImportJobSummary& WithImportJobType(ImportJobType value) { SetImportJobType(value); return *this;}
91
93
96 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
97 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
98 template<typename KnowledgeBaseArnT = Aws::String>
99 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
100 template<typename KnowledgeBaseArnT = Aws::String>
101 ImportJobSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
103
105
109 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
110 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
111 template<typename KnowledgeBaseIdT = Aws::String>
112 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
113 template<typename KnowledgeBaseIdT = Aws::String>
114 ImportJobSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
116
118
121 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
122 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
123 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
124 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
125 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
126 ImportJobSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
134 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
135 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
136 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
137 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
138 ImportJobSummary& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
139 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
140 ImportJobSummary& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
141 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
142 }
144
146
149 inline ImportJobStatus GetStatus() const { return m_status; }
150 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
151 inline void SetStatus(ImportJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
152 inline ImportJobSummary& WithStatus(ImportJobStatus value) { SetStatus(value); return *this;}
154
156
160 inline const Aws::String& GetUploadId() const { return m_uploadId; }
161 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
162 template<typename UploadIdT = Aws::String>
163 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
164 template<typename UploadIdT = Aws::String>
165 ImportJobSummary& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
167 private:
168
169 Aws::Utils::DateTime m_createdTime{};
170 bool m_createdTimeHasBeenSet = false;
171
172 ExternalSourceConfiguration m_externalSourceConfiguration;
173 bool m_externalSourceConfigurationHasBeenSet = false;
174
175 Aws::String m_importJobId;
176 bool m_importJobIdHasBeenSet = false;
177
178 ImportJobType m_importJobType{ImportJobType::NOT_SET};
179 bool m_importJobTypeHasBeenSet = false;
180
181 Aws::String m_knowledgeBaseArn;
182 bool m_knowledgeBaseArnHasBeenSet = false;
183
184 Aws::String m_knowledgeBaseId;
185 bool m_knowledgeBaseIdHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastModifiedTime{};
188 bool m_lastModifiedTimeHasBeenSet = false;
189
191 bool m_metadataHasBeenSet = false;
192
194 bool m_statusHasBeenSet = false;
195
196 Aws::String m_uploadId;
197 bool m_uploadIdHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace ConnectWisdomService
202} // namespace Aws
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
ImportJobSummary & WithUploadId(UploadIdT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportJobSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
ImportJobSummary & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
ImportJobSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobSummary & WithImportJobId(ImportJobIdT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary()=default
ImportJobSummary & WithStatus(ImportJobStatus value)
ImportJobSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
ImportJobSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_CONNECTWISDOMSERVICE_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
ImportJobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ImportJobSummary & WithImportJobType(ImportJobType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ImportJobSummary & WithMetadata(MetadataT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue