/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The failure reason, if any, for a create or delete endpoint
* operation.See Also:
AWS
* API Reference
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