/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include You are not authorized to perform this operation. Check your IAM policies,
* and ensure that you are using the correct access keys.See Also:
* AWS
* API Reference
A more specific error code.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *A more specific error code.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *A more specific error code.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *A more specific error code.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *A more specific error code.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *A more specific error code.
*/ inline AccessDeniedException& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *A more specific error code.
*/ inline AccessDeniedException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *A more specific error code.
*/ inline AccessDeniedException& WithCode(const char* value) { SetCode(value); return *this;} /** *The exception context.
*/ inline const Aws::MapThe exception context.
*/ inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; } /** *The exception context.
*/ inline void SetContext(const Aws::MapThe exception context.
*/ inline void SetContext(Aws::MapThe exception context.
*/ inline AccessDeniedException& WithContext(const Aws::MapThe exception context.
*/ inline AccessDeniedException& WithContext(Aws::MapThe exception context.
*/ inline AccessDeniedException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; } /** *The exception context.
*/ inline AccessDeniedException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; } /** *A human-readable description of the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A human-readable description of the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A human-readable description of the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A human-readable description of the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A human-readable description of the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A human-readable description of the error.
*/ inline AccessDeniedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A human-readable description of the error.
*/ inline AccessDeniedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A human-readable description of the error.
*/ inline AccessDeniedException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::Map