/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the reason that the operation failed. This
* data type is used as a response element in the
* GetOrganizationsAccessReport, GetServiceLastAccessedDetails, and
* GetServiceLastAccessedDetailsWithEntities operations.See
* Also:
AWS
* API Reference
Detailed information about the reason that the operation failed.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Detailed information about the reason that the operation failed.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Detailed information about the reason that the operation failed.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Detailed information about the reason that the operation failed.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Detailed information about the reason that the operation failed.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Detailed information about the reason that the operation failed.
*/ inline ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Detailed information about the reason that the operation failed.
*/ inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Detailed information about the reason that the operation failed.
*/ inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The error code associated with the operation failure.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *The error code associated with the operation failure.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code associated with the operation failure.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code associated with the operation failure.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code associated with the operation failure.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *The error code associated with the operation failure.
*/ inline ErrorDetails& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *The error code associated with the operation failure.
*/ inline ErrorDetails& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *The error code associated with the operation failure.
*/ inline ErrorDetails& WithCode(const char* value) { SetCode(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws