/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request issuer does not have permission to access this resource or
* perform this operation.See Also:
AWS
* API Reference
The SDK default error code associated with the access denied exception.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The SDK default error code associated with the access denied exception.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The SDK default error code associated with the access denied exception.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The SDK default error code associated with the access denied exception.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The SDK default error code associated with the access denied exception.
*/ inline AccessDeniedException& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *The SDK default error code associated with the access denied exception.
*/ inline AccessDeniedException& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *The SDK default explanation of why access was denied.
*/ inline const Aws::String& GetErrorCodeReason() const{ return m_errorCodeReason; } /** *The SDK default explanation of why access was denied.
*/ inline bool ErrorCodeReasonHasBeenSet() const { return m_errorCodeReasonHasBeenSet; } /** *The SDK default explanation of why access was denied.
*/ inline void SetErrorCodeReason(const Aws::String& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = value; } /** *The SDK default explanation of why access was denied.
*/ inline void SetErrorCodeReason(Aws::String&& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = std::move(value); } /** *The SDK default explanation of why access was denied.
*/ inline void SetErrorCodeReason(const char* value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason.assign(value); } /** *The SDK default explanation of why access was denied.
*/ inline AccessDeniedException& WithErrorCodeReason(const Aws::String& value) { SetErrorCodeReason(value); return *this;} /** *The SDK default explanation of why access was denied.
*/ inline AccessDeniedException& WithErrorCodeReason(Aws::String&& value) { SetErrorCodeReason(std::move(value)); return *this;} /** *The SDK default explanation of why access was denied.
*/ inline AccessDeniedException& WithErrorCodeReason(const char* value) { SetErrorCodeReason(value); return *this;} /** *The error code associated with the access denied exception.
*/ inline const ErrorCode& GetSubErrorCode() const{ return m_subErrorCode; } /** *The error code associated with the access denied exception.
*/ inline bool SubErrorCodeHasBeenSet() const { return m_subErrorCodeHasBeenSet; } /** *The error code associated with the access denied exception.
*/ inline void SetSubErrorCode(const ErrorCode& value) { m_subErrorCodeHasBeenSet = true; m_subErrorCode = value; } /** *The error code associated with the access denied exception.
*/ inline void SetSubErrorCode(ErrorCode&& value) { m_subErrorCodeHasBeenSet = true; m_subErrorCode = std::move(value); } /** *The error code associated with the access denied exception.
*/ inline AccessDeniedException& WithSubErrorCode(const ErrorCode& value) { SetSubErrorCode(value); return *this;} /** *The error code associated with the access denied exception.
*/ inline AccessDeniedException& WithSubErrorCode(ErrorCode&& value) { SetSubErrorCode(std::move(value)); return *this;} /** *An explanation of why access was denied.
*/ inline const Aws::String& GetSubErrorCodeReason() const{ return m_subErrorCodeReason; } /** *An explanation of why access was denied.
*/ inline bool SubErrorCodeReasonHasBeenSet() const { return m_subErrorCodeReasonHasBeenSet; } /** *An explanation of why access was denied.
*/ inline void SetSubErrorCodeReason(const Aws::String& value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason = value; } /** *An explanation of why access was denied.
*/ inline void SetSubErrorCodeReason(Aws::String&& value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason = std::move(value); } /** *An explanation of why access was denied.
*/ inline void SetSubErrorCodeReason(const char* value) { m_subErrorCodeReasonHasBeenSet = true; m_subErrorCodeReason.assign(value); } /** *An explanation of why access was denied.
*/ inline AccessDeniedException& WithSubErrorCodeReason(const Aws::String& value) { SetSubErrorCodeReason(value); return *this;} /** *An explanation of why access was denied.
*/ inline AccessDeniedException& WithSubErrorCodeReason(Aws::String&& value) { SetSubErrorCodeReason(std::move(value)); return *this;} /** *An explanation of why access was denied.
*/ inline AccessDeniedException& WithSubErrorCodeReason(const char* value) { SetSubErrorCodeReason(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorCodeReason; bool m_errorCodeReasonHasBeenSet = false; ErrorCode m_subErrorCode; bool m_subErrorCodeHasBeenSet = false; Aws::String m_subErrorCodeReason; bool m_subErrorCodeReasonHasBeenSet = false; }; } // namespace Model } // namespace Detective } // namespace Aws