/** * 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 AWS_COMPREHEND_API UpdateEndpointRequest : public ComprehendRequest { public: 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::String SerializePayload() const override; 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 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;} private: Aws::String m_endpointArn; bool m_endpointArnHasBeenSet; int m_desiredInferenceUnits; bool m_desiredInferenceUnitsHasBeenSet; }; } // namespace Model } // namespace Comprehend } // namespace Aws