/** * 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 Comprehend { namespace Model { /** */ class UpdateEndpointRequest : public ComprehendRequest { public: AWS_COMPREHEND_API UpdateEndpointRequest(); // 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 "UpdateEndpoint"; } AWS_COMPREHEND_API Aws::String SerializePayload() const override; AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; } /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; } /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline UpdateEndpointRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline UpdateEndpointRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the endpoint being updated.

*/ inline UpdateEndpointRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;} /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline const Aws::String& GetDesiredModelArn() const{ return m_desiredModelArn; } /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline bool DesiredModelArnHasBeenSet() const { return m_desiredModelArnHasBeenSet; } /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline void SetDesiredModelArn(const Aws::String& value) { m_desiredModelArnHasBeenSet = true; m_desiredModelArn = value; } /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline void SetDesiredModelArn(Aws::String&& value) { m_desiredModelArnHasBeenSet = true; m_desiredModelArn = std::move(value); } /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline void SetDesiredModelArn(const char* value) { m_desiredModelArnHasBeenSet = true; m_desiredModelArn.assign(value); } /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline UpdateEndpointRequest& WithDesiredModelArn(const Aws::String& value) { SetDesiredModelArn(value); return *this;} /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline UpdateEndpointRequest& WithDesiredModelArn(Aws::String&& value) { SetDesiredModelArn(std::move(value)); return *this;} /** *

The ARN of the new model to use when updating an existing endpoint.

*/ inline UpdateEndpointRequest& WithDesiredModelArn(const char* value) { SetDesiredModelArn(value); return *this;} /** *

The desired number of inference units to be used by the model using this * endpoint. Each inference unit represents of a throughput of 100 characters per * second.

*/ inline int GetDesiredInferenceUnits() const{ return m_desiredInferenceUnits; } /** *

The desired number of inference units to be used by the model using this * endpoint. Each inference unit represents of a throughput of 100 characters per * second.

*/ inline bool DesiredInferenceUnitsHasBeenSet() const { return m_desiredInferenceUnitsHasBeenSet; } /** *

The desired number of inference units to be used by the model using this * endpoint. Each inference unit represents of a throughput of 100 characters per * second.

*/ inline void SetDesiredInferenceUnits(int value) { m_desiredInferenceUnitsHasBeenSet = true; m_desiredInferenceUnits = value; } /** *

The desired number of inference units to be used by the model using this * endpoint. Each inference unit represents of a throughput of 100 characters per * second.

*/ inline UpdateEndpointRequest& WithDesiredInferenceUnits(int value) { SetDesiredInferenceUnits(value); return *this;} /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline const Aws::String& GetDesiredDataAccessRoleArn() const{ return m_desiredDataAccessRoleArn; } /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline bool DesiredDataAccessRoleArnHasBeenSet() const { return m_desiredDataAccessRoleArnHasBeenSet; } /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline void SetDesiredDataAccessRoleArn(const Aws::String& value) { m_desiredDataAccessRoleArnHasBeenSet = true; m_desiredDataAccessRoleArn = value; } /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline void SetDesiredDataAccessRoleArn(Aws::String&& value) { m_desiredDataAccessRoleArnHasBeenSet = true; m_desiredDataAccessRoleArn = std::move(value); } /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline void SetDesiredDataAccessRoleArn(const char* value) { m_desiredDataAccessRoleArnHasBeenSet = true; m_desiredDataAccessRoleArn.assign(value); } /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline UpdateEndpointRequest& WithDesiredDataAccessRoleArn(const Aws::String& value) { SetDesiredDataAccessRoleArn(value); return *this;} /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline UpdateEndpointRequest& WithDesiredDataAccessRoleArn(Aws::String&& value) { SetDesiredDataAccessRoleArn(std::move(value)); return *this;} /** *

Data access role ARN to use in case the new model is encrypted with a * customer CMK.

*/ inline UpdateEndpointRequest& WithDesiredDataAccessRoleArn(const char* value) { SetDesiredDataAccessRoleArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline const Aws::String& GetFlywheelArn() const{ return m_flywheelArn; } /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline void SetFlywheelArn(const Aws::String& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = value; } /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline void SetFlywheelArn(Aws::String&& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline void SetFlywheelArn(const char* value) { m_flywheelArnHasBeenSet = true; m_flywheelArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline UpdateEndpointRequest& WithFlywheelArn(const Aws::String& value) { SetFlywheelArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline UpdateEndpointRequest& WithFlywheelArn(Aws::String&& value) { SetFlywheelArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel

*/ inline UpdateEndpointRequest& WithFlywheelArn(const char* value) { SetFlywheelArn(value); return *this;} private: Aws::String m_endpointArn; bool m_endpointArnHasBeenSet = false; Aws::String m_desiredModelArn; bool m_desiredModelArnHasBeenSet = false; int m_desiredInferenceUnits; bool m_desiredInferenceUnitsHasBeenSet = false; Aws::String m_desiredDataAccessRoleArn; bool m_desiredDataAccessRoleArnHasBeenSet = false; Aws::String m_flywheelArn; bool m_flywheelArnHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws