/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace MachineLearning { namespace Model { /** */ class UpdateMLModelRequest : public MachineLearningRequest { public: AWS_MACHINELEARNING_API UpdateMLModelRequest(); // 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 "UpdateMLModel"; } AWS_MACHINELEARNING_API Aws::String SerializePayload() const override; AWS_MACHINELEARNING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID assigned to the MLModel during creation.

*/ inline const Aws::String& GetMLModelId() const{ return m_mLModelId; } /** *

The ID assigned to the MLModel during creation.

*/ inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; } /** *

The ID assigned to the MLModel during creation.

*/ inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; } /** *

The ID assigned to the MLModel during creation.

*/ inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); } /** *

The ID assigned to the MLModel during creation.

*/ inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); } /** *

The ID assigned to the MLModel during creation.

*/ inline UpdateMLModelRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;} /** *

The ID assigned to the MLModel during creation.

*/ inline UpdateMLModelRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;} /** *

The ID assigned to the MLModel during creation.

*/ inline UpdateMLModelRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;} /** *

A user-supplied name or description of the MLModel.

*/ inline const Aws::String& GetMLModelName() const{ return m_mLModelName; } /** *

A user-supplied name or description of the MLModel.

*/ inline bool MLModelNameHasBeenSet() const { return m_mLModelNameHasBeenSet; } /** *

A user-supplied name or description of the MLModel.

*/ inline void SetMLModelName(const Aws::String& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = value; } /** *

A user-supplied name or description of the MLModel.

*/ inline void SetMLModelName(Aws::String&& value) { m_mLModelNameHasBeenSet = true; m_mLModelName = std::move(value); } /** *

A user-supplied name or description of the MLModel.

*/ inline void SetMLModelName(const char* value) { m_mLModelNameHasBeenSet = true; m_mLModelName.assign(value); } /** *

A user-supplied name or description of the MLModel.

*/ inline UpdateMLModelRequest& WithMLModelName(const Aws::String& value) { SetMLModelName(value); return *this;} /** *

A user-supplied name or description of the MLModel.

*/ inline UpdateMLModelRequest& WithMLModelName(Aws::String&& value) { SetMLModelName(std::move(value)); return *this;} /** *

A user-supplied name or description of the MLModel.

*/ inline UpdateMLModelRequest& WithMLModelName(const char* value) { SetMLModelName(value); return *this;} /** *

The ScoreThreshold used in binary classification * MLModel that marks the boundary between a positive prediction and a * negative prediction.

Output values greater than or equal to the * ScoreThreshold receive a positive result from the * MLModel, such as true. Output values less than the * ScoreThreshold receive a negative response from the * MLModel, such as false.

*/ inline double GetScoreThreshold() const{ return m_scoreThreshold; } /** *

The ScoreThreshold used in binary classification * MLModel that marks the boundary between a positive prediction and a * negative prediction.

Output values greater than or equal to the * ScoreThreshold receive a positive result from the * MLModel, such as true. Output values less than the * ScoreThreshold receive a negative response from the * MLModel, such as false.

*/ inline bool ScoreThresholdHasBeenSet() const { return m_scoreThresholdHasBeenSet; } /** *

The ScoreThreshold used in binary classification * MLModel that marks the boundary between a positive prediction and a * negative prediction.

Output values greater than or equal to the * ScoreThreshold receive a positive result from the * MLModel, such as true. Output values less than the * ScoreThreshold receive a negative response from the * MLModel, such as false.

*/ inline void SetScoreThreshold(double value) { m_scoreThresholdHasBeenSet = true; m_scoreThreshold = value; } /** *

The ScoreThreshold used in binary classification * MLModel that marks the boundary between a positive prediction and a * negative prediction.

Output values greater than or equal to the * ScoreThreshold receive a positive result from the * MLModel, such as true. Output values less than the * ScoreThreshold receive a negative response from the * MLModel, such as false.

*/ inline UpdateMLModelRequest& WithScoreThreshold(double value) { SetScoreThreshold(value); return *this;} private: Aws::String m_mLModelId; bool m_mLModelIdHasBeenSet = false; Aws::String m_mLModelName; bool m_mLModelNameHasBeenSet = false; double m_scoreThreshold; bool m_scoreThresholdHasBeenSet = false; }; } // namespace Model } // namespace MachineLearning } // namespace Aws