AWS SDK for C++  1.9.19
AWS SDK for C++
CreateModelVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace FraudDetector
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateModelVersion"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetModelId() const{ return m_modelId; }
47 
51  inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
52 
56  inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
57 
61  inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
62 
66  inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
67 
71  inline CreateModelVersionRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
72 
76  inline CreateModelVersionRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
77 
81  inline CreateModelVersionRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
82 
83 
87  inline const ModelTypeEnum& GetModelType() const{ return m_modelType; }
88 
92  inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
93 
97  inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
98 
102  inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); }
103 
107  inline CreateModelVersionRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;}
108 
112  inline CreateModelVersionRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;}
113 
114 
118  inline const TrainingDataSourceEnum& GetTrainingDataSource() const{ return m_trainingDataSource; }
119 
123  inline bool TrainingDataSourceHasBeenSet() const { return m_trainingDataSourceHasBeenSet; }
124 
128  inline void SetTrainingDataSource(const TrainingDataSourceEnum& value) { m_trainingDataSourceHasBeenSet = true; m_trainingDataSource = value; }
129 
133  inline void SetTrainingDataSource(TrainingDataSourceEnum&& value) { m_trainingDataSourceHasBeenSet = true; m_trainingDataSource = std::move(value); }
134 
138  inline CreateModelVersionRequest& WithTrainingDataSource(const TrainingDataSourceEnum& value) { SetTrainingDataSource(value); return *this;}
139 
143  inline CreateModelVersionRequest& WithTrainingDataSource(TrainingDataSourceEnum&& value) { SetTrainingDataSource(std::move(value)); return *this;}
144 
145 
149  inline const TrainingDataSchema& GetTrainingDataSchema() const{ return m_trainingDataSchema; }
150 
154  inline bool TrainingDataSchemaHasBeenSet() const { return m_trainingDataSchemaHasBeenSet; }
155 
159  inline void SetTrainingDataSchema(const TrainingDataSchema& value) { m_trainingDataSchemaHasBeenSet = true; m_trainingDataSchema = value; }
160 
164  inline void SetTrainingDataSchema(TrainingDataSchema&& value) { m_trainingDataSchemaHasBeenSet = true; m_trainingDataSchema = std::move(value); }
165 
169  inline CreateModelVersionRequest& WithTrainingDataSchema(const TrainingDataSchema& value) { SetTrainingDataSchema(value); return *this;}
170 
174  inline CreateModelVersionRequest& WithTrainingDataSchema(TrainingDataSchema&& value) { SetTrainingDataSchema(std::move(value)); return *this;}
175 
176 
181  inline const ExternalEventsDetail& GetExternalEventsDetail() const{ return m_externalEventsDetail; }
182 
187  inline bool ExternalEventsDetailHasBeenSet() const { return m_externalEventsDetailHasBeenSet; }
188 
193  inline void SetExternalEventsDetail(const ExternalEventsDetail& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = value; }
194 
199  inline void SetExternalEventsDetail(ExternalEventsDetail&& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = std::move(value); }
200 
205  inline CreateModelVersionRequest& WithExternalEventsDetail(const ExternalEventsDetail& value) { SetExternalEventsDetail(value); return *this;}
206 
211  inline CreateModelVersionRequest& WithExternalEventsDetail(ExternalEventsDetail&& value) { SetExternalEventsDetail(std::move(value)); return *this;}
212 
213 
217  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
218 
222  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 
227  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
228 
232  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
233 
237  inline CreateModelVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
238 
242  inline CreateModelVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
243 
247  inline CreateModelVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
248 
252  inline CreateModelVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
253 
254  private:
255 
256  Aws::String m_modelId;
257  bool m_modelIdHasBeenSet;
258 
259  ModelTypeEnum m_modelType;
260  bool m_modelTypeHasBeenSet;
261 
262  TrainingDataSourceEnum m_trainingDataSource;
263  bool m_trainingDataSourceHasBeenSet;
264 
265  TrainingDataSchema m_trainingDataSchema;
266  bool m_trainingDataSchemaHasBeenSet;
267 
268  ExternalEventsDetail m_externalEventsDetail;
269  bool m_externalEventsDetailHasBeenSet;
270 
271  Aws::Vector<Tag> m_tags;
272  bool m_tagsHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace FraudDetector
277 } // namespace Aws
FraudDetectorRequest.h
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTrainingDataSource
void SetTrainingDataSource(TrainingDataSourceEnum &&value)
Definition: CreateModelVersionRequest.h:133
Aws::FraudDetector::Model::CreateModelVersionRequest::WithExternalEventsDetail
CreateModelVersionRequest & WithExternalEventsDetail(const ExternalEventsDetail &value)
Definition: CreateModelVersionRequest.h:205
Aws::FraudDetector::Model::CreateModelVersionRequest::SetModelType
void SetModelType(ModelTypeEnum &&value)
Definition: CreateModelVersionRequest.h:102
Tag.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::FraudDetector::Model::CreateModelVersionRequest::AddTags
CreateModelVersionRequest & AddTags(Tag &&value)
Definition: CreateModelVersionRequest.h:252
Aws::FraudDetector::Model::CreateModelVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateModelVersionRequest.h:222
FraudDetector_EXPORTS.h
Aws::FraudDetector::Model::ModelTypeEnum
ModelTypeEnum
Definition: ModelTypeEnum.h:17
Aws::FraudDetector::Model::CreateModelVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateModelVersionRequest.h:36
Aws::FraudDetector::Model::CreateModelVersionRequest::SetModelId
void SetModelId(const char *value)
Definition: CreateModelVersionRequest.h:66
Aws::FraudDetector::Model::CreateModelVersionRequest::AddTags
CreateModelVersionRequest & AddTags(const Tag &value)
Definition: CreateModelVersionRequest.h:247
Aws::FraudDetector::Model::CreateModelVersionRequest::SetModelId
void SetModelId(const Aws::String &value)
Definition: CreateModelVersionRequest.h:56
ModelTypeEnum.h
Aws::FraudDetector::Model::CreateModelVersionRequest::GetExternalEventsDetail
const ExternalEventsDetail & GetExternalEventsDetail() const
Definition: CreateModelVersionRequest.h:181
ExternalEventsDetail.h
Aws::FraudDetector::Model::Tag
Definition: Tag.h:32
Aws::FraudDetector::Model::CreateModelVersionRequest::GetModelType
const ModelTypeEnum & GetModelType() const
Definition: CreateModelVersionRequest.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::FraudDetector::Model::CreateModelVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::FraudDetector::Model::CreateModelVersionRequest::GetModelId
const Aws::String & GetModelId() const
Definition: CreateModelVersionRequest.h:46
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTrainingDataSource
CreateModelVersionRequest & WithTrainingDataSource(TrainingDataSourceEnum &&value)
Definition: CreateModelVersionRequest.h:143
AWSVector.h
Aws::FraudDetector::Model::CreateModelVersionRequest::SetExternalEventsDetail
void SetExternalEventsDetail(const ExternalEventsDetail &value)
Definition: CreateModelVersionRequest.h:193
Aws::FraudDetector::Model::CreateModelVersionRequest::ExternalEventsDetailHasBeenSet
bool ExternalEventsDetailHasBeenSet() const
Definition: CreateModelVersionRequest.h:187
Aws::FraudDetector::FraudDetectorRequest
Definition: FraudDetectorRequest.h:17
Aws::FraudDetector::Model::CreateModelVersionRequest::WithModelId
CreateModelVersionRequest & WithModelId(Aws::String &&value)
Definition: CreateModelVersionRequest.h:76
Aws::FraudDetector::Model::CreateModelVersionRequest::GetTrainingDataSource
const TrainingDataSourceEnum & GetTrainingDataSource() const
Definition: CreateModelVersionRequest.h:118
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTrainingDataSchema
CreateModelVersionRequest & WithTrainingDataSchema(const TrainingDataSchema &value)
Definition: CreateModelVersionRequest.h:169
AWS_FRAUDDETECTOR_API
#define AWS_FRAUDDETECTOR_API
Definition: FraudDetector_EXPORTS.h:28
Aws::FraudDetector::Model::CreateModelVersionRequest::ModelTypeHasBeenSet
bool ModelTypeHasBeenSet() const
Definition: CreateModelVersionRequest.h:92
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTrainingDataSource
CreateModelVersionRequest & WithTrainingDataSource(const TrainingDataSourceEnum &value)
Definition: CreateModelVersionRequest.h:138
Aws::FraudDetector::Model::CreateModelVersionRequest::WithModelType
CreateModelVersionRequest & WithModelType(const ModelTypeEnum &value)
Definition: CreateModelVersionRequest.h:107
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTrainingDataSchema
void SetTrainingDataSchema(TrainingDataSchema &&value)
Definition: CreateModelVersionRequest.h:164
TrainingDataSourceEnum.h
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTrainingDataSchema
CreateModelVersionRequest & WithTrainingDataSchema(TrainingDataSchema &&value)
Definition: CreateModelVersionRequest.h:174
AWSString.h
Aws::FraudDetector::Model::CreateModelVersionRequest::WithModelId
CreateModelVersionRequest & WithModelId(const Aws::String &value)
Definition: CreateModelVersionRequest.h:71
Aws::FraudDetector::Model::CreateModelVersionRequest::WithModelType
CreateModelVersionRequest & WithModelType(ModelTypeEnum &&value)
Definition: CreateModelVersionRequest.h:112
Aws::FraudDetector::Model::CreateModelVersionRequest::ModelIdHasBeenSet
bool ModelIdHasBeenSet() const
Definition: CreateModelVersionRequest.h:51
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateModelVersionRequest.h:232
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTags
CreateModelVersionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateModelVersionRequest.h:237
TrainingDataSchema.h
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTrainingDataSchema
void SetTrainingDataSchema(const TrainingDataSchema &value)
Definition: CreateModelVersionRequest.h:159
Aws::FraudDetector::Model::CreateModelVersionRequest::GetTrainingDataSchema
const TrainingDataSchema & GetTrainingDataSchema() const
Definition: CreateModelVersionRequest.h:149
Aws::FraudDetector::Model::TrainingDataSchema
Definition: TrainingDataSchema.h:34
Aws::FraudDetector::Model::CreateModelVersionRequest
Definition: CreateModelVersionRequest.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::FraudDetector::Model::CreateModelVersionRequest::WithExternalEventsDetail
CreateModelVersionRequest & WithExternalEventsDetail(ExternalEventsDetail &&value)
Definition: CreateModelVersionRequest.h:211
Aws::FraudDetector::Model::CreateModelVersionRequest::TrainingDataSourceHasBeenSet
bool TrainingDataSourceHasBeenSet() const
Definition: CreateModelVersionRequest.h:123
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTrainingDataSource
void SetTrainingDataSource(const TrainingDataSourceEnum &value)
Definition: CreateModelVersionRequest.h:128
Aws::FraudDetector::Model::CreateModelVersionRequest::TrainingDataSchemaHasBeenSet
bool TrainingDataSchemaHasBeenSet() const
Definition: CreateModelVersionRequest.h:154
Aws::FraudDetector::Model::CreateModelVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::FraudDetector::Model::CreateModelVersionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateModelVersionRequest.h:227
Aws::FraudDetector::Model::CreateModelVersionRequest::WithModelId
CreateModelVersionRequest & WithModelId(const char *value)
Definition: CreateModelVersionRequest.h:81
Aws::FraudDetector::Model::CreateModelVersionRequest::SetModelId
void SetModelId(Aws::String &&value)
Definition: CreateModelVersionRequest.h:61
Aws::FraudDetector::Model::CreateModelVersionRequest::SetModelType
void SetModelType(const ModelTypeEnum &value)
Definition: CreateModelVersionRequest.h:97
Aws::FraudDetector::Model::CreateModelVersionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateModelVersionRequest.h:217
Aws::FraudDetector::Model::CreateModelVersionRequest::CreateModelVersionRequest
CreateModelVersionRequest()
Aws::FraudDetector::Model::TrainingDataSourceEnum
TrainingDataSourceEnum
Definition: TrainingDataSourceEnum.h:17
Aws::FraudDetector::Model::ExternalEventsDetail
Definition: ExternalEventsDetail.h:33
Aws::FraudDetector::Model::CreateModelVersionRequest::WithTags
CreateModelVersionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateModelVersionRequest.h:242
Aws::FraudDetector::Model::CreateModelVersionRequest::SetExternalEventsDetail
void SetExternalEventsDetail(ExternalEventsDetail &&value)
Definition: CreateModelVersionRequest.h:199