/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The metadata of the endpoint.

See Also:

AWS * API Reference

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

The name of the endpoint.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The name of the endpoint.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The name of the endpoint.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The name of the endpoint.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The name of the endpoint.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The name of the endpoint.

*/ inline EndpointMetadata& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The name of the endpoint.

*/ inline EndpointMetadata& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The name of the endpoint.

*/ inline EndpointMetadata& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} /** *

The name of the endpoint configuration.

*/ inline const Aws::String& GetEndpointConfigName() const{ return m_endpointConfigName; } /** *

The name of the endpoint configuration.

*/ inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; } /** *

The name of the endpoint configuration.

*/ inline void SetEndpointConfigName(const Aws::String& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = value; } /** *

The name of the endpoint configuration.

*/ inline void SetEndpointConfigName(Aws::String&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::move(value); } /** *

The name of the endpoint configuration.

*/ inline void SetEndpointConfigName(const char* value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName.assign(value); } /** *

The name of the endpoint configuration.

*/ inline EndpointMetadata& WithEndpointConfigName(const Aws::String& value) { SetEndpointConfigName(value); return *this;} /** *

The name of the endpoint configuration.

*/ inline EndpointMetadata& WithEndpointConfigName(Aws::String&& value) { SetEndpointConfigName(std::move(value)); return *this;} /** *

The name of the endpoint configuration.

*/ inline EndpointMetadata& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;} /** *

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

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

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

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

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

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

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

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

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

*/ inline EndpointMetadata& WithEndpointStatus(const EndpointStatus& value) { SetEndpointStatus(value); return *this;} /** *

The status of the endpoint. For possible values of the status of an * endpoint, see EndpointSummary. *

*/ inline EndpointMetadata& WithEndpointStatus(EndpointStatus&& value) { SetEndpointStatus(std::move(value)); return *this;} /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline EndpointMetadata& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline EndpointMetadata& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

If the status of the endpoint is Failed, or the status is * InService but update operation fails, this provides the reason why * it failed.

*/ inline EndpointMetadata& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::String m_endpointConfigName; bool m_endpointConfigNameHasBeenSet = false; EndpointStatus m_endpointStatus; bool m_endpointStatusHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws