/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An access denied exception object.See Also:
AWS
* API Reference
The error message.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The error message.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The error message.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The error message.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The error message.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The error message.
*/ inline AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The error message.
*/ inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The error message.
*/ inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The error type.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The error type.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The error type.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The error type.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The error type.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The error type.
*/ inline AccessDeniedException& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The error type.
*/ inline AccessDeniedException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The error type.
*/ inline AccessDeniedException& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws