AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ImportModelVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
11#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
12#include <aws/lookoutequipment/model/InferenceDataImportStrategy.h>
13#include <aws/lookoutequipment/model/LabelsInputConfiguration.h>
14#include <aws/lookoutequipment/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace LookoutEquipment {
20namespace Model {
21
25 public:
26 AWS_LOOKOUTEQUIPMENT_API ImportModelVersionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportModelVersion"; }
33
34 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
35
36 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetSourceModelVersionArn() const { return m_sourceModelVersionArn; }
43 inline bool SourceModelVersionArnHasBeenSet() const { return m_sourceModelVersionArnHasBeenSet; }
44 template <typename SourceModelVersionArnT = Aws::String>
45 void SetSourceModelVersionArn(SourceModelVersionArnT&& value) {
46 m_sourceModelVersionArnHasBeenSet = true;
47 m_sourceModelVersionArn = std::forward<SourceModelVersionArnT>(value);
48 }
49 template <typename SourceModelVersionArnT = Aws::String>
50 ImportModelVersionRequest& WithSourceModelVersionArn(SourceModelVersionArnT&& value) {
51 SetSourceModelVersionArn(std::forward<SourceModelVersionArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetModelName() const { return m_modelName; }
63 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
64 template <typename ModelNameT = Aws::String>
65 void SetModelName(ModelNameT&& value) {
66 m_modelNameHasBeenSet = true;
67 m_modelName = std::forward<ModelNameT>(value);
68 }
69 template <typename ModelNameT = Aws::String>
71 SetModelName(std::forward<ModelNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
81 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
82 template <typename DatasetNameT = Aws::String>
83 void SetDatasetName(DatasetNameT&& value) {
84 m_datasetNameHasBeenSet = true;
85 m_datasetName = std::forward<DatasetNameT>(value);
86 }
87 template <typename DatasetNameT = Aws::String>
89 SetDatasetName(std::forward<DatasetNameT>(value));
90 return *this;
91 }
93
95
96 inline const LabelsInputConfiguration& GetLabelsInputConfiguration() const { return m_labelsInputConfiguration; }
97 inline bool LabelsInputConfigurationHasBeenSet() const { return m_labelsInputConfigurationHasBeenSet; }
98 template <typename LabelsInputConfigurationT = LabelsInputConfiguration>
99 void SetLabelsInputConfiguration(LabelsInputConfigurationT&& value) {
100 m_labelsInputConfigurationHasBeenSet = true;
101 m_labelsInputConfiguration = std::forward<LabelsInputConfigurationT>(value);
102 }
103 template <typename LabelsInputConfigurationT = LabelsInputConfiguration>
104 ImportModelVersionRequest& WithLabelsInputConfiguration(LabelsInputConfigurationT&& value) {
105 SetLabelsInputConfiguration(std::forward<LabelsInputConfigurationT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetClientToken() const { return m_clientToken; }
116 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
117 template <typename ClientTokenT = Aws::String>
118 void SetClientToken(ClientTokenT&& value) {
119 m_clientTokenHasBeenSet = true;
120 m_clientToken = std::forward<ClientTokenT>(value);
121 }
122 template <typename ClientTokenT = Aws::String>
124 SetClientToken(std::forward<ClientTokenT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
135 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
136 template <typename RoleArnT = Aws::String>
137 void SetRoleArn(RoleArnT&& value) {
138 m_roleArnHasBeenSet = true;
139 m_roleArn = std::forward<RoleArnT>(value);
140 }
141 template <typename RoleArnT = Aws::String>
143 SetRoleArn(std::forward<RoleArnT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetServerSideKmsKeyId() const { return m_serverSideKmsKeyId; }
154 inline bool ServerSideKmsKeyIdHasBeenSet() const { return m_serverSideKmsKeyIdHasBeenSet; }
155 template <typename ServerSideKmsKeyIdT = Aws::String>
156 void SetServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) {
157 m_serverSideKmsKeyIdHasBeenSet = true;
158 m_serverSideKmsKeyId = std::forward<ServerSideKmsKeyIdT>(value);
159 }
160 template <typename ServerSideKmsKeyIdT = Aws::String>
161 ImportModelVersionRequest& WithServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) {
162 SetServerSideKmsKeyId(std::forward<ServerSideKmsKeyIdT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Vector<Tag>>
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsT = Tag>
185 m_tagsHasBeenSet = true;
186 m_tags.emplace_back(std::forward<TagsT>(value));
187 return *this;
188 }
190
192
200 inline InferenceDataImportStrategy GetInferenceDataImportStrategy() const { return m_inferenceDataImportStrategy; }
201 inline bool InferenceDataImportStrategyHasBeenSet() const { return m_inferenceDataImportStrategyHasBeenSet; }
203 m_inferenceDataImportStrategyHasBeenSet = true;
204 m_inferenceDataImportStrategy = value;
205 }
208 return *this;
209 }
211 private:
212 Aws::String m_sourceModelVersionArn;
213
214 Aws::String m_modelName;
215
216 Aws::String m_datasetName;
217
218 LabelsInputConfiguration m_labelsInputConfiguration;
219
221
222 Aws::String m_roleArn;
223
224 Aws::String m_serverSideKmsKeyId;
225
226 Aws::Vector<Tag> m_tags;
227
229 bool m_sourceModelVersionArnHasBeenSet = false;
230 bool m_modelNameHasBeenSet = false;
231 bool m_datasetNameHasBeenSet = false;
232 bool m_labelsInputConfigurationHasBeenSet = false;
233 bool m_clientTokenHasBeenSet = true;
234 bool m_roleArnHasBeenSet = false;
235 bool m_serverSideKmsKeyIdHasBeenSet = false;
236 bool m_tagsHasBeenSet = false;
237 bool m_inferenceDataImportStrategyHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace LookoutEquipment
242} // namespace Aws
ImportModelVersionRequest & WithClientToken(ClientTokenT &&value)
ImportModelVersionRequest & WithServerSideKmsKeyId(ServerSideKmsKeyIdT &&value)
ImportModelVersionRequest & WithInferenceDataImportStrategy(InferenceDataImportStrategy value)
ImportModelVersionRequest & WithModelName(ModelNameT &&value)
void SetInferenceDataImportStrategy(InferenceDataImportStrategy value)
const LabelsInputConfiguration & GetLabelsInputConfiguration() const
ImportModelVersionRequest & WithSourceModelVersionArn(SourceModelVersionArnT &&value)
ImportModelVersionRequest & WithDatasetName(DatasetNameT &&value)
void SetLabelsInputConfiguration(LabelsInputConfigurationT &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportModelVersionRequest & WithLabelsInputConfiguration(LabelsInputConfigurationT &&value)
ImportModelVersionRequest & WithRoleArn(RoleArnT &&value)
AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override
AWS_LOOKOUTEQUIPMENT_API ImportModelVersionRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector