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/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/ImportJobType.h>
10#include <aws/qconnect/model/ImportJobStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/qconnect/model/ExternalSourceConfiguration.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 QConnect
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_QCONNECT_API ImportJobSummary() = default;
42 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetImportJobId() const { return m_importJobId; }
50 inline bool ImportJobIdHasBeenSet() const { return m_importJobIdHasBeenSet; }
51 template<typename ImportJobIdT = Aws::String>
52 void SetImportJobId(ImportJobIdT&& value) { m_importJobIdHasBeenSet = true; m_importJobId = std::forward<ImportJobIdT>(value); }
53 template<typename ImportJobIdT = Aws::String>
54 ImportJobSummary& WithImportJobId(ImportJobIdT&& value) { SetImportJobId(std::forward<ImportJobIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
62 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
63 template<typename KnowledgeBaseIdT = Aws::String>
64 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
65 template<typename KnowledgeBaseIdT = Aws::String>
66 ImportJobSummary& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetUploadId() const { return m_uploadId; }
75 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
76 template<typename UploadIdT = Aws::String>
77 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
78 template<typename UploadIdT = Aws::String>
79 ImportJobSummary& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetKnowledgeBaseArn() const { return m_knowledgeBaseArn; }
87 inline bool KnowledgeBaseArnHasBeenSet() const { return m_knowledgeBaseArnHasBeenSet; }
88 template<typename KnowledgeBaseArnT = Aws::String>
89 void SetKnowledgeBaseArn(KnowledgeBaseArnT&& value) { m_knowledgeBaseArnHasBeenSet = true; m_knowledgeBaseArn = std::forward<KnowledgeBaseArnT>(value); }
90 template<typename KnowledgeBaseArnT = Aws::String>
91 ImportJobSummary& WithKnowledgeBaseArn(KnowledgeBaseArnT&& value) { SetKnowledgeBaseArn(std::forward<KnowledgeBaseArnT>(value)); return *this;}
93
95
98 inline ImportJobType GetImportJobType() const { return m_importJobType; }
99 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
100 inline void SetImportJobType(ImportJobType value) { m_importJobTypeHasBeenSet = true; m_importJobType = value; }
101 inline ImportJobSummary& WithImportJobType(ImportJobType value) { SetImportJobType(value); return *this;}
103
105
108 inline ImportJobStatus GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(ImportJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
111 inline ImportJobSummary& WithStatus(ImportJobStatus value) { SetStatus(value); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
119 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
120 template<typename CreatedTimeT = Aws::Utils::DateTime>
121 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
122 template<typename CreatedTimeT = Aws::Utils::DateTime>
123 ImportJobSummary& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
131 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
132 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
133 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
134 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
135 ImportJobSummary& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
137
139
142 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
143 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
144 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
145 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
146 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
147 ImportJobSummary& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
148 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
150 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
151 }
153
155
159 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const { return m_externalSourceConfiguration; }
160 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
161 template<typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
162 void SetExternalSourceConfiguration(ExternalSourceConfigurationT&& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = std::forward<ExternalSourceConfigurationT>(value); }
163 template<typename ExternalSourceConfigurationT = ExternalSourceConfiguration>
164 ImportJobSummary& WithExternalSourceConfiguration(ExternalSourceConfigurationT&& value) { SetExternalSourceConfiguration(std::forward<ExternalSourceConfigurationT>(value)); return *this;}
166 private:
167
168 Aws::String m_importJobId;
169 bool m_importJobIdHasBeenSet = false;
170
171 Aws::String m_knowledgeBaseId;
172 bool m_knowledgeBaseIdHasBeenSet = false;
173
174 Aws::String m_uploadId;
175 bool m_uploadIdHasBeenSet = false;
176
177 Aws::String m_knowledgeBaseArn;
178 bool m_knowledgeBaseArnHasBeenSet = false;
179
180 ImportJobType m_importJobType{ImportJobType::NOT_SET};
181 bool m_importJobTypeHasBeenSet = false;
182
184 bool m_statusHasBeenSet = false;
185
186 Aws::Utils::DateTime m_createdTime{};
187 bool m_createdTimeHasBeenSet = false;
188
189 Aws::Utils::DateTime m_lastModifiedTime{};
190 bool m_lastModifiedTimeHasBeenSet = false;
191
193 bool m_metadataHasBeenSet = false;
194
195 ExternalSourceConfiguration m_externalSourceConfiguration;
196 bool m_externalSourceConfigurationHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace QConnect
201} // namespace Aws
ImportJobSummary & WithCreatedTime(CreatedTimeT &&value)
ImportJobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetStatus(ImportJobStatus value)
const Aws::Utils::DateTime & GetCreatedTime() const
ImportJobSummary & WithStatus(ImportJobStatus value)
const Aws::String & GetKnowledgeBaseArn() const
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
void SetImportJobId(ImportJobIdT &&value)
ImportJobSummary & WithImportJobId(ImportJobIdT &&value)
AWS_QCONNECT_API ImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
ImportJobSummary & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
AWS_QCONNECT_API ImportJobSummary()=default
ImportJobSummary & WithImportJobType(ImportJobType value)
ImportJobSummary & WithExternalSourceConfiguration(ExternalSourceConfigurationT &&value)
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
const Aws::String & GetKnowledgeBaseId() const
void SetKnowledgeBaseArn(KnowledgeBaseArnT &&value)
ImportJobSummary & WithMetadata(MetadataT &&value)
ImportJobSummary & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
ImportJobSummary & WithKnowledgeBaseArn(KnowledgeBaseArnT &&value)
const Aws::String & GetUploadId() const
void SetCreatedTime(CreatedTimeT &&value)
ImportJobSummary & WithUploadId(UploadIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetImportJobId() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetImportJobType(ImportJobType value)
AWS_QCONNECT_API ImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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