/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/opensearch/OpenSearchService_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/opensearch/model/VpcEndpointErrorCode.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** * <p>Error information when attempting to describe an Amazon OpenSearch * Service-managed VPC endpoint.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/VpcEndpointError">AWS * API Reference</a></p> */ class VpcEndpointError { public: AWS_OPENSEARCHSERVICE_API VpcEndpointError(); AWS_OPENSEARCHSERVICE_API VpcEndpointError(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API VpcEndpointError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The unique identifier of the endpoint.</p> */ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** * <p>The unique identifier of the endpoint.</p> */ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** * <p>The unique identifier of the endpoint.</p> */ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** * <p>The unique identifier of the endpoint.</p> */ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** * <p>The unique identifier of the endpoint.</p> */ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** * <p>The unique identifier of the endpoint.</p> */ inline VpcEndpointError& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** * <p>The unique identifier of the endpoint.</p> */ inline VpcEndpointError& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** * <p>The unique identifier of the endpoint.</p> */ inline VpcEndpointError& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** * <p>The code associated with the error.</p> */ inline const VpcEndpointErrorCode& GetErrorCode() const{ return m_errorCode; } /** * <p>The code associated with the error.</p> */ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** * <p>The code associated with the error.</p> */ inline void SetErrorCode(const VpcEndpointErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** * <p>The code associated with the error.</p> */ inline void SetErrorCode(VpcEndpointErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** * <p>The code associated with the error.</p> */ inline VpcEndpointError& WithErrorCode(const VpcEndpointErrorCode& value) { SetErrorCode(value); return *this;} /** * <p>The code associated with the error.</p> */ inline VpcEndpointError& WithErrorCode(VpcEndpointErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** * <p>A message describing the error.</p> */ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** * <p>A message describing the error.</p> */ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** * <p>A message describing the error.</p> */ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** * <p>A message describing the error.</p> */ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** * <p>A message describing the error.</p> */ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** * <p>A message describing the error.</p> */ inline VpcEndpointError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** * <p>A message describing the error.</p> */ inline VpcEndpointError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** * <p>A message describing the error.</p> */ inline VpcEndpointError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; VpcEndpointErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws