/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MachineLearning { namespace Model { /** *

Describes the real-time endpoint information for an * MLModel.

See Also:

AWS * API Reference

*/ class RealtimeEndpointInfo { public: AWS_MACHINELEARNING_API RealtimeEndpointInfo(); AWS_MACHINELEARNING_API RealtimeEndpointInfo(Aws::Utils::Json::JsonView jsonValue); AWS_MACHINELEARNING_API RealtimeEndpointInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The maximum processing rate for the real-time endpoint for * MLModel, measured in incoming requests per second.

*/ inline int GetPeakRequestsPerSecond() const{ return m_peakRequestsPerSecond; } /** *

The maximum processing rate for the real-time endpoint for * MLModel, measured in incoming requests per second.

*/ inline bool PeakRequestsPerSecondHasBeenSet() const { return m_peakRequestsPerSecondHasBeenSet; } /** *

The maximum processing rate for the real-time endpoint for * MLModel, measured in incoming requests per second.

*/ inline void SetPeakRequestsPerSecond(int value) { m_peakRequestsPerSecondHasBeenSet = true; m_peakRequestsPerSecond = value; } /** *

The maximum processing rate for the real-time endpoint for * MLModel, measured in incoming requests per second.

*/ inline RealtimeEndpointInfo& WithPeakRequestsPerSecond(int value) { SetPeakRequestsPerSecond(value); return *this;} /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline RealtimeEndpointInfo& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time that the request to create the real-time endpoint for the * MLModel was received. The time is expressed in epoch time.

*/ inline RealtimeEndpointInfo& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline const Aws::String& GetEndpointUrl() const{ return m_endpointUrl; } /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; } /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline void SetEndpointUrl(const Aws::String& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = value; } /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline void SetEndpointUrl(Aws::String&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = std::move(value); } /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline void SetEndpointUrl(const char* value) { m_endpointUrlHasBeenSet = true; m_endpointUrl.assign(value); } /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline RealtimeEndpointInfo& WithEndpointUrl(const Aws::String& value) { SetEndpointUrl(value); return *this;} /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline RealtimeEndpointInfo& WithEndpointUrl(Aws::String&& value) { SetEndpointUrl(std::move(value)); return *this;} /** *

The URI that specifies where to send real-time prediction requests for the * MLModel.

Note: The application must wait until the * real-time endpoint is ready before using this URI.

*/ inline RealtimeEndpointInfo& WithEndpointUrl(const char* value) { SetEndpointUrl(value); return *this;} /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline const RealtimeEndpointStatus& GetEndpointStatus() const{ return m_endpointStatus; } /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; } /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline void SetEndpointStatus(const RealtimeEndpointStatus& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; } /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline void SetEndpointStatus(RealtimeEndpointStatus&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::move(value); } /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline RealtimeEndpointInfo& WithEndpointStatus(const RealtimeEndpointStatus& value) { SetEndpointStatus(value); return *this;} /** *

The current status of the real-time endpoint for the MLModel. * This element can have one of the following values:

  • * NONE - Endpoint does not exist or was previously deleted.

  • *
  • READY - Endpoint is ready to be used for real-time * predictions.

  • UPDATING - Updating/creating the * endpoint.

*/ inline RealtimeEndpointInfo& WithEndpointStatus(RealtimeEndpointStatus&& value) { SetEndpointStatus(std::move(value)); return *this;} private: int m_peakRequestsPerSecond; bool m_peakRequestsPerSecondHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_endpointUrl; bool m_endpointUrlHasBeenSet = false; RealtimeEndpointStatus m_endpointStatus; bool m_endpointStatusHasBeenSet = false; }; } // namespace Model } // namespace MachineLearning } // namespace Aws