/** * 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 Rekognition { namespace Model { /** */ class StartProjectVersionRequest : public RekognitionRequest { public: AWS_REKOGNITION_API StartProjectVersionRequest(); // 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 "StartProjectVersion"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline const Aws::String& GetProjectVersionArn() const{ return m_projectVersionArn; } /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline bool ProjectVersionArnHasBeenSet() const { return m_projectVersionArnHasBeenSet; } /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline void SetProjectVersionArn(const Aws::String& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = value; } /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline void SetProjectVersionArn(Aws::String&& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = std::move(value); } /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline void SetProjectVersionArn(const char* value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn.assign(value); } /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline StartProjectVersionRequest& WithProjectVersionArn(const Aws::String& value) { SetProjectVersionArn(value); return *this;} /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline StartProjectVersionRequest& WithProjectVersionArn(Aws::String&& value) { SetProjectVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name(ARN) of the model version that you want to * start.

*/ inline StartProjectVersionRequest& WithProjectVersionArn(const char* value) { SetProjectVersionArn(value); return *this;} /** *

The minimum number of inference units to use. A single inference unit * represents 1 hour of processing.

For information about the number of * transactions per second (TPS) that an inference unit can support, see Running * a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition * Custom Labels Guide.

Use a higher number to increase the TPS throughput * of your model. You are charged for the number of inference units that you use. *

*/ inline int GetMinInferenceUnits() const{ return m_minInferenceUnits; } /** *

The minimum number of inference units to use. A single inference unit * represents 1 hour of processing.

For information about the number of * transactions per second (TPS) that an inference unit can support, see Running * a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition * Custom Labels Guide.

Use a higher number to increase the TPS throughput * of your model. You are charged for the number of inference units that you use. *

*/ inline bool MinInferenceUnitsHasBeenSet() const { return m_minInferenceUnitsHasBeenSet; } /** *

The minimum number of inference units to use. A single inference unit * represents 1 hour of processing.

For information about the number of * transactions per second (TPS) that an inference unit can support, see Running * a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition * Custom Labels Guide.

Use a higher number to increase the TPS throughput * of your model. You are charged for the number of inference units that you use. *

*/ inline void SetMinInferenceUnits(int value) { m_minInferenceUnitsHasBeenSet = true; m_minInferenceUnits = value; } /** *

The minimum number of inference units to use. A single inference unit * represents 1 hour of processing.

For information about the number of * transactions per second (TPS) that an inference unit can support, see Running * a trained Amazon Rekognition Custom Labels model in the Amazon Rekognition * Custom Labels Guide.

Use a higher number to increase the TPS throughput * of your model. You are charged for the number of inference units that you use. *

*/ inline StartProjectVersionRequest& WithMinInferenceUnits(int value) { SetMinInferenceUnits(value); return *this;} /** *

The maximum number of inference units to use for auto-scaling the model. If * you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale * the model.

*/ inline int GetMaxInferenceUnits() const{ return m_maxInferenceUnits; } /** *

The maximum number of inference units to use for auto-scaling the model. If * you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale * the model.

*/ inline bool MaxInferenceUnitsHasBeenSet() const { return m_maxInferenceUnitsHasBeenSet; } /** *

The maximum number of inference units to use for auto-scaling the model. If * you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale * the model.

*/ inline void SetMaxInferenceUnits(int value) { m_maxInferenceUnitsHasBeenSet = true; m_maxInferenceUnits = value; } /** *

The maximum number of inference units to use for auto-scaling the model. If * you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale * the model.

*/ inline StartProjectVersionRequest& WithMaxInferenceUnits(int value) { SetMaxInferenceUnits(value); return *this;} private: Aws::String m_projectVersionArn; bool m_projectVersionArnHasBeenSet = false; int m_minInferenceUnits; bool m_minInferenceUnitsHasBeenSet = false; int m_maxInferenceUnits; bool m_maxInferenceUnitsHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws