/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request was denied because you don't have sufficient permissions to
* access the resource.See Also:
AWS
* API Reference
The reason for the exception.
*/ inline const AccessDeniedExceptionReason& GetReason() const{ return m_reason; } /** *The reason for the exception.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason for the exception.
*/ inline void SetReason(const AccessDeniedExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason for the exception.
*/ inline void SetReason(AccessDeniedExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason for the exception.
*/ inline AccessDeniedException& WithReason(const AccessDeniedExceptionReason& value) { SetReason(value); return *this;} /** *The reason for the exception.
*/ inline AccessDeniedException& WithReason(AccessDeniedExceptionReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; AccessDeniedExceptionReason m_reason; bool m_reasonHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws