/** * 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 S3Outposts { namespace Model { /** *

The failure reason, if any, for a create or delete endpoint * operation.

See Also:

AWS * API Reference

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

The failure code, if any, for a create or delete endpoint operation.

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

Additional error details describing the endpoint failure and recommended * action.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline FailedReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline FailedReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Additional error details describing the endpoint failure and recommended * action.

*/ inline FailedReason& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace S3Outposts } // namespace Aws