AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ImportModelVersionRequest.h
1
6#pragma once
7#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
8#include <aws/lookoutequipment/LookoutEquipmentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lookoutequipment/model/LabelsInputConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lookoutequipment/model/InferenceDataImportStrategy.h>
13#include <aws/lookoutequipment/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace LookoutEquipment
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_LOOKOUTEQUIPMENT_API ImportModelVersionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ImportModelVersion"; }
36
37 AWS_LOOKOUTEQUIPMENT_API Aws::String SerializePayload() const override;
38
39 AWS_LOOKOUTEQUIPMENT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetSourceModelVersionArn() const { return m_sourceModelVersionArn; }
47 inline bool SourceModelVersionArnHasBeenSet() const { return m_sourceModelVersionArnHasBeenSet; }
48 template<typename SourceModelVersionArnT = Aws::String>
49 void SetSourceModelVersionArn(SourceModelVersionArnT&& value) { m_sourceModelVersionArnHasBeenSet = true; m_sourceModelVersionArn = std::forward<SourceModelVersionArnT>(value); }
50 template<typename SourceModelVersionArnT = Aws::String>
51 ImportModelVersionRequest& WithSourceModelVersionArn(SourceModelVersionArnT&& value) { SetSourceModelVersionArn(std::forward<SourceModelVersionArnT>(value)); return *this;}
53
55
60 inline const Aws::String& GetModelName() const { return m_modelName; }
61 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
62 template<typename ModelNameT = Aws::String>
63 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
64 template<typename ModelNameT = Aws::String>
65 ImportModelVersionRequest& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
73 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
74 template<typename DatasetNameT = Aws::String>
75 void SetDatasetName(DatasetNameT&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::forward<DatasetNameT>(value); }
76 template<typename DatasetNameT = Aws::String>
77 ImportModelVersionRequest& WithDatasetName(DatasetNameT&& value) { SetDatasetName(std::forward<DatasetNameT>(value)); return *this;}
79
81
82 inline const LabelsInputConfiguration& GetLabelsInputConfiguration() const { return m_labelsInputConfiguration; }
83 inline bool LabelsInputConfigurationHasBeenSet() const { return m_labelsInputConfigurationHasBeenSet; }
84 template<typename LabelsInputConfigurationT = LabelsInputConfiguration>
85 void SetLabelsInputConfiguration(LabelsInputConfigurationT&& value) { m_labelsInputConfigurationHasBeenSet = true; m_labelsInputConfiguration = std::forward<LabelsInputConfigurationT>(value); }
86 template<typename LabelsInputConfigurationT = LabelsInputConfiguration>
87 ImportModelVersionRequest& WithLabelsInputConfiguration(LabelsInputConfigurationT&& value) { SetLabelsInputConfiguration(std::forward<LabelsInputConfigurationT>(value)); return *this;}
89
91
95 inline const Aws::String& GetClientToken() const { return m_clientToken; }
96 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
97 template<typename ClientTokenT = Aws::String>
98 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
99 template<typename ClientTokenT = Aws::String>
100 ImportModelVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
102
104
108 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 template<typename RoleArnT = Aws::String>
111 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
112 template<typename RoleArnT = Aws::String>
113 ImportModelVersionRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
115
117
121 inline const Aws::String& GetServerSideKmsKeyId() const { return m_serverSideKmsKeyId; }
122 inline bool ServerSideKmsKeyIdHasBeenSet() const { return m_serverSideKmsKeyIdHasBeenSet; }
123 template<typename ServerSideKmsKeyIdT = Aws::String>
124 void SetServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) { m_serverSideKmsKeyIdHasBeenSet = true; m_serverSideKmsKeyId = std::forward<ServerSideKmsKeyIdT>(value); }
125 template<typename ServerSideKmsKeyIdT = Aws::String>
126 ImportModelVersionRequest& WithServerSideKmsKeyId(ServerSideKmsKeyIdT&& value) { SetServerSideKmsKeyId(std::forward<ServerSideKmsKeyIdT>(value)); return *this;}
128
130
133 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Vector<Tag>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Vector<Tag>>
138 ImportModelVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsT = Tag>
140 ImportModelVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
142
144
152 inline InferenceDataImportStrategy GetInferenceDataImportStrategy() const { return m_inferenceDataImportStrategy; }
153 inline bool InferenceDataImportStrategyHasBeenSet() const { return m_inferenceDataImportStrategyHasBeenSet; }
154 inline void SetInferenceDataImportStrategy(InferenceDataImportStrategy value) { m_inferenceDataImportStrategyHasBeenSet = true; m_inferenceDataImportStrategy = value; }
157 private:
158
159 Aws::String m_sourceModelVersionArn;
160 bool m_sourceModelVersionArnHasBeenSet = false;
161
162 Aws::String m_modelName;
163 bool m_modelNameHasBeenSet = false;
164
165 Aws::String m_datasetName;
166 bool m_datasetNameHasBeenSet = false;
167
168 LabelsInputConfiguration m_labelsInputConfiguration;
169 bool m_labelsInputConfigurationHasBeenSet = false;
170
172 bool m_clientTokenHasBeenSet = true;
173
174 Aws::String m_roleArn;
175 bool m_roleArnHasBeenSet = false;
176
177 Aws::String m_serverSideKmsKeyId;
178 bool m_serverSideKmsKeyIdHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182
184 bool m_inferenceDataImportStrategyHasBeenSet = false;
185 };
186
187} // namespace Model
188} // namespace LookoutEquipment
189} // 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