/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Error details for the failed asynchronous operation.See Also:
* AWS
* API Reference
A string that uniquely identifies the error condition.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *A string that uniquely identifies the error condition.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *A string that uniquely identifies the error condition.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *A string that uniquely identifies the error condition.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *A string that uniquely identifies the error condition.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *A string that uniquely identifies the error condition.
*/ inline AsyncErrorDetails& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *A string that uniquely identifies the error condition.
*/ inline AsyncErrorDetails& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *A string that uniquely identifies the error condition.
*/ inline AsyncErrorDetails& WithCode(const char* value) { SetCode(value); return *this;} /** *A generic description of the error condition in English.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A generic description of the error condition in English.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A generic description of the error condition in English.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A generic description of the error condition in English.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A generic description of the error condition in English.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A generic description of the error condition in English.
*/ inline AsyncErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A generic description of the error condition in English.
*/ inline AsyncErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A generic description of the error condition in English.
*/ inline AsyncErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *The identifier of the resource associated with the error.
*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *The identifier of the resource associated with the error.
*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *The identifier of the resource associated with the error.
*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *The identifier of the resource associated with the error.
*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *The identifier of the resource associated with the error.
*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *The identifier of the resource associated with the error.
*/ inline AsyncErrorDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *The identifier of the resource associated with the error.
*/ inline AsyncErrorDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *The identifier of the resource associated with the error.
*/ inline AsyncErrorDetails& WithResource(const char* value) { SetResource(value); return *this;} /** *The ID of the request associated with the error.
*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *The ID of the request associated with the error.
*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *The ID of the request associated with the error.
*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *The ID of the request associated with the error.
*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *The ID of the request associated with the error.
*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *The ID of the request associated with the error.
*/ inline AsyncErrorDetails& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *The ID of the request associated with the error.
*/ inline AsyncErrorDetails& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *The ID of the request associated with the error.
*/ inline AsyncErrorDetails& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws