/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace FraudDetector { namespace Model { /** */ class CreateModelVersionRequest : public FraudDetectorRequest { public: AWS_FRAUDDETECTOR_API CreateModelVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateModelVersion"; } AWS_FRAUDDETECTOR_API Aws::String SerializePayload() const override; AWS_FRAUDDETECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The model ID.

*/ inline const Aws::String& GetModelId() const{ return m_modelId; } /** *

The model ID.

*/ inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } /** *

The model ID.

*/ inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } /** *

The model ID.

*/ inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } /** *

The model ID.

*/ inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } /** *

The model ID.

*/ inline CreateModelVersionRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} /** *

The model ID.

*/ inline CreateModelVersionRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} /** *

The model ID.

*/ inline CreateModelVersionRequest& WithModelId(const char* value) { SetModelId(value); return *this;} /** *

The model type.

*/ inline const ModelTypeEnum& GetModelType() const{ return m_modelType; } /** *

The model type.

*/ inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; } /** *

The model type.

*/ inline void SetModelType(const ModelTypeEnum& value) { m_modelTypeHasBeenSet = true; m_modelType = value; } /** *

The model type.

*/ inline void SetModelType(ModelTypeEnum&& value) { m_modelTypeHasBeenSet = true; m_modelType = std::move(value); } /** *

The model type.

*/ inline CreateModelVersionRequest& WithModelType(const ModelTypeEnum& value) { SetModelType(value); return *this;} /** *

The model type.

*/ inline CreateModelVersionRequest& WithModelType(ModelTypeEnum&& value) { SetModelType(std::move(value)); return *this;} /** *

The training data source location in Amazon S3.

*/ inline const TrainingDataSourceEnum& GetTrainingDataSource() const{ return m_trainingDataSource; } /** *

The training data source location in Amazon S3.

*/ inline bool TrainingDataSourceHasBeenSet() const { return m_trainingDataSourceHasBeenSet; } /** *

The training data source location in Amazon S3.

*/ inline void SetTrainingDataSource(const TrainingDataSourceEnum& value) { m_trainingDataSourceHasBeenSet = true; m_trainingDataSource = value; } /** *

The training data source location in Amazon S3.

*/ inline void SetTrainingDataSource(TrainingDataSourceEnum&& value) { m_trainingDataSourceHasBeenSet = true; m_trainingDataSource = std::move(value); } /** *

The training data source location in Amazon S3.

*/ inline CreateModelVersionRequest& WithTrainingDataSource(const TrainingDataSourceEnum& value) { SetTrainingDataSource(value); return *this;} /** *

The training data source location in Amazon S3.

*/ inline CreateModelVersionRequest& WithTrainingDataSource(TrainingDataSourceEnum&& value) { SetTrainingDataSource(std::move(value)); return *this;} /** *

The training data schema.

*/ inline const TrainingDataSchema& GetTrainingDataSchema() const{ return m_trainingDataSchema; } /** *

The training data schema.

*/ inline bool TrainingDataSchemaHasBeenSet() const { return m_trainingDataSchemaHasBeenSet; } /** *

The training data schema.

*/ inline void SetTrainingDataSchema(const TrainingDataSchema& value) { m_trainingDataSchemaHasBeenSet = true; m_trainingDataSchema = value; } /** *

The training data schema.

*/ inline void SetTrainingDataSchema(TrainingDataSchema&& value) { m_trainingDataSchemaHasBeenSet = true; m_trainingDataSchema = std::move(value); } /** *

The training data schema.

*/ inline CreateModelVersionRequest& WithTrainingDataSchema(const TrainingDataSchema& value) { SetTrainingDataSchema(value); return *this;} /** *

The training data schema.

*/ inline CreateModelVersionRequest& WithTrainingDataSchema(TrainingDataSchema&& value) { SetTrainingDataSchema(std::move(value)); return *this;} /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline const ExternalEventsDetail& GetExternalEventsDetail() const{ return m_externalEventsDetail; } /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline bool ExternalEventsDetailHasBeenSet() const { return m_externalEventsDetailHasBeenSet; } /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline void SetExternalEventsDetail(const ExternalEventsDetail& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = value; } /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline void SetExternalEventsDetail(ExternalEventsDetail&& value) { m_externalEventsDetailHasBeenSet = true; m_externalEventsDetail = std::move(value); } /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline CreateModelVersionRequest& WithExternalEventsDetail(const ExternalEventsDetail& value) { SetExternalEventsDetail(value); return *this;} /** *

Details of the external events data used for model version training. Required * if trainingDataSource is EXTERNAL_EVENTS.

*/ inline CreateModelVersionRequest& WithExternalEventsDetail(ExternalEventsDetail&& value) { SetExternalEventsDetail(std::move(value)); return *this;} /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline const IngestedEventsDetail& GetIngestedEventsDetail() const{ return m_ingestedEventsDetail; } /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline bool IngestedEventsDetailHasBeenSet() const { return m_ingestedEventsDetailHasBeenSet; } /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline void SetIngestedEventsDetail(const IngestedEventsDetail& value) { m_ingestedEventsDetailHasBeenSet = true; m_ingestedEventsDetail = value; } /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline void SetIngestedEventsDetail(IngestedEventsDetail&& value) { m_ingestedEventsDetailHasBeenSet = true; m_ingestedEventsDetail = std::move(value); } /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline CreateModelVersionRequest& WithIngestedEventsDetail(const IngestedEventsDetail& value) { SetIngestedEventsDetail(value); return *this;} /** *

Details of the ingested events data used for model version training. Required * if trainingDataSource is INGESTED_EVENTS.

*/ inline CreateModelVersionRequest& WithIngestedEventsDetail(IngestedEventsDetail&& value) { SetIngestedEventsDetail(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A collection of key and value pairs.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A collection of key and value pairs.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A collection of key and value pairs.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A collection of key and value pairs.

*/ inline CreateModelVersionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A collection of key and value pairs.

*/ inline CreateModelVersionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A collection of key and value pairs.

*/ inline CreateModelVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A collection of key and value pairs.

*/ inline CreateModelVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_modelId; bool m_modelIdHasBeenSet = false; ModelTypeEnum m_modelType; bool m_modelTypeHasBeenSet = false; TrainingDataSourceEnum m_trainingDataSource; bool m_trainingDataSourceHasBeenSet = false; TrainingDataSchema m_trainingDataSchema; bool m_trainingDataSchemaHasBeenSet = false; ExternalEventsDetail m_externalEventsDetail; bool m_externalEventsDetailHasBeenSet = false; IngestedEventsDetail m_ingestedEventsDetail; bool m_ingestedEventsDetailHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws