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/wisdom/ConnectWisdomService_EXPORTS.h>
8#include <aws/wisdom/ConnectWisdomServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/model/ExternalSourceConfiguration.h>
11#include <aws/wisdom/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 ConnectWisdomService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CONNECTWISDOMSERVICE_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_CONNECTWISDOMSERVICE_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
87 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
88 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
89 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
90 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
91 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
92 inline StartImportJobRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
93 inline StartImportJobRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
94 inline StartImportJobRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
102 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
103 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
104 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
106 inline StartImportJobRequest& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
107 inline StartImportJobRequest& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
108 inline StartImportJobRequest& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
109 inline StartImportJobRequest& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
110 inline StartImportJobRequest& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
111 inline StartImportJobRequest& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
112 inline StartImportJobRequest& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
113 inline StartImportJobRequest& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
115
117
121 inline const Aws::String& GetUploadId() const{ return m_uploadId; }
122 inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
123 inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
124 inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
125 inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
126 inline StartImportJobRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
127 inline StartImportJobRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
128 inline StartImportJobRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
130 private:
131
132 Aws::String m_clientToken;
133 bool m_clientTokenHasBeenSet = false;
134
135 ExternalSourceConfiguration m_externalSourceConfiguration;
136 bool m_externalSourceConfigurationHasBeenSet = false;
137
138 ImportJobType m_importJobType;
139 bool m_importJobTypeHasBeenSet = false;
140
141 Aws::String m_knowledgeBaseId;
142 bool m_knowledgeBaseIdHasBeenSet = false;
143
145 bool m_metadataHasBeenSet = false;
146
147 Aws::String m_uploadId;
148 bool m_uploadIdHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace ConnectWisdomService
153} // namespace Aws
StartImportJobRequest & WithUploadId(const char *value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartImportJobRequest & AddMetadata(Aws::String &&key, Aws::String &&value)
StartImportJobRequest & WithImportJobType(const ImportJobType &value)
StartImportJobRequest & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
StartImportJobRequest & AddMetadata(Aws::String &&key, const char *value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
StartImportJobRequest & AddMetadata(const Aws::String &key, const Aws::String &value)
StartImportJobRequest & AddMetadata(const char *key, Aws::String &&value)
StartImportJobRequest & WithClientToken(Aws::String &&value)
const ExternalSourceConfiguration & GetExternalSourceConfiguration() const
StartImportJobRequest & WithImportJobType(ImportJobType &&value)
StartImportJobRequest & AddMetadata(Aws::String &&key, const Aws::String &value)
StartImportJobRequest & WithKnowledgeBaseId(Aws::String &&value)
void SetExternalSourceConfiguration(ExternalSourceConfiguration &&value)
StartImportJobRequest & WithKnowledgeBaseId(const char *value)
StartImportJobRequest & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
StartImportJobRequest & WithUploadId(Aws::String &&value)
AWS_CONNECTWISDOMSERVICE_API StartImportJobRequest()
StartImportJobRequest & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetExternalSourceConfiguration(const ExternalSourceConfiguration &value)
StartImportJobRequest & WithClientToken(const Aws::String &value)
StartImportJobRequest & AddMetadata(const char *key, const char *value)
StartImportJobRequest & WithKnowledgeBaseId(const Aws::String &value)
StartImportJobRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
StartImportJobRequest & WithExternalSourceConfiguration(const ExternalSourceConfiguration &value)
StartImportJobRequest & WithUploadId(const Aws::String &value)
StartImportJobRequest & WithExternalSourceConfiguration(ExternalSourceConfiguration &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
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