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

Error information for a failed BatchGetVpcEndpoint * request.

See Also:

AWS * API Reference

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

The error code for the failed request.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

The error code for the failed request.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code for the failed request.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code for the failed request.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code for the failed request.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

The error code for the failed request.

*/ inline VpcEndpointErrorDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

The error code for the failed request.

*/ inline VpcEndpointErrorDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The error code for the failed request.

*/ inline VpcEndpointErrorDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

An error message describing the reason for the failure.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

An error message describing the reason for the failure.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

An error message describing the reason for the failure.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

An error message describing the reason for the failure.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

An error message describing the reason for the failure.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

An error message describing the reason for the failure.

*/ inline VpcEndpointErrorDetail& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

An error message describing the reason for the failure.

*/ inline VpcEndpointErrorDetail& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

An error message describing the reason for the failure.

*/ inline VpcEndpointErrorDetail& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The unique identifier of the VPC endpoint.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier of the VPC endpoint.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier of the VPC endpoint.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique identifier of the VPC endpoint.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique identifier of the VPC endpoint.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique identifier of the VPC endpoint.

*/ inline VpcEndpointErrorDetail& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier of the VPC endpoint.

*/ inline VpcEndpointErrorDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier of the VPC endpoint.

*/ inline VpcEndpointErrorDetail& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws