AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartImportJobRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/ExternalSourceConfiguration.h>
11#include <aws/qconnect/model/ImportJobType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace QConnect
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QCONNECT_API StartImportJobRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartImportJob"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline StartImportJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline StartImportJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline StartImportJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
58 inline const ExternalSourceConfiguration& GetExternalSourceConfiguration() const{ return m_externalSourceConfiguration; }
59 inline bool ExternalSourceConfigurationHasBeenSet() const { return m_externalSourceConfigurationHasBeenSet; }
60 inline void SetExternalSourceConfiguration(const ExternalSourceConfiguration& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = value; }
61 inline void SetExternalSourceConfiguration(ExternalSourceConfiguration&& value) { m_externalSourceConfigurationHasBeenSet = true; m_externalSourceConfiguration = std::move(value); }
65
67
71 inline const ImportJobType& GetImportJobType() const{ return m_importJobType; }
72 inline bool ImportJobTypeHasBeenSet() const { return m_importJobTypeHasBeenSet; }
73 inline void SetImportJobType(const ImportJobType& value) { m_importJobTypeHasBeenSet = true; m_importJobType = value; }
74 inline void SetImportJobType(ImportJobType&& value) { m_importJobTypeHasBeenSet = true; m_importJobType = std::move(value); }
75 inline StartImportJobRequest& WithImportJobType(const ImportJobType& value) { SetImportJobType(value); return *this;}
76 inline StartImportJobRequest& WithImportJobType(ImportJobType&& value) { SetImportJobType(std::move(value)); return *this;}
78
80
86 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
87 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
88 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
89 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
90 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
91 inline StartImportJobRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
92 inline StartImportJobRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
93 inline StartImportJobRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
101 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
102 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
103 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
105 inline StartImportJobRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
106 inline StartImportJobRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
107 inline StartImportJobRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
108 inline StartImportJobRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
109 inline StartImportJobRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
110 inline StartImportJobRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
111 inline StartImportJobRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
112 inline StartImportJobRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
114
116
120 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
121 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
122 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
123 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
124 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
125 inline StartImportJobRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
126 inline StartImportJobRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
127 inline StartImportJobRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
129 private:
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133
134 ExternalSourceConfiguration m_externalSourceConfiguration;
135 bool m_externalSourceConfigurationHasBeenSet = false;
136
137 ImportJobType m_importJobType;
138 bool m_importJobTypeHasBeenSet = false;
139
140 Aws::String m_knowledgeBaseId;
141 bool m_knowledgeBaseIdHasBeenSet = false;
142
144 bool m_metadataHasBeenSet = false;
145
146 Aws::String m_uploadId;
147 bool m_uploadIdHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace QConnect
152} // namespace Aws
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
StartImportJobRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
StartImportJobRequest & WithUploadId(const Aws::String &value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
void SetImportJobType(const ImportJobType &value)
void SetKnowledgeBaseId(const Aws::String &value)
StartImportJobRequest & AddMetadata(Aws::String &&key, const char *value)
StartImportJobRequest & WithUploadId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
StartImportJobRequest & WithImportJobType(const ImportJobType &value)
StartImportJobRequest & WithImportJobType(ImportJobType &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
StartImportJobRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
StartImportJobRequest & WithClientToken(Aws::String &&value)
StartImportJobRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
StartImportJobRequest & AddMetadata(const char *key, const char *value)
StartImportJobRequest & AddMetadata(const char *key, Aws::String &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
StartImportJobRequest & WithUploadId(const char *value)
StartImportJobRequest & WithKnowledgeBaseId(const char *value)
void SetExternalSourceConfiguration(ExternalSourceConfiguration &&value)
StartImportJobRequest & WithKnowledgeBaseId(const Aws::String &value)
StartImportJobRequest & WithExternalSourceConfiguration(const ExternalSourceConfiguration &value)
void SetExternalSourceConfiguration(const ExternalSourceConfiguration &value)
StartImportJobRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartImportJobRequest & WithKnowledgeBaseId(Aws::String &&value)
StartImportJobRequest & WithExternalSourceConfiguration(ExternalSourceConfiguration &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartImportJobRequest & WithClientToken(const Aws::String &value)
StartImportJobRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
StartImportJobRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
StartImportJobRequest & WithClientToken(const char *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