/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Gives a detailed description of the result of an action on each entry in the
* request.See Also:
AWS
* API Reference
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
The Id
of an entry in a batch request.
Specifies whether the error happened due to the caller of the batch API * action.
*/ inline bool GetSenderFault() const{ return m_senderFault; } /** *Specifies whether the error happened due to the caller of the batch API * action.
*/ inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; } /** *Specifies whether the error happened due to the caller of the batch API * action.
*/ inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; } /** *Specifies whether the error happened due to the caller of the batch API * action.
*/ inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;} /** *An error code representing why the action failed on this entry.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *An error code representing why the action failed on this entry.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *An error code representing why the action failed on this entry.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *An error code representing why the action failed on this entry.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *An error code representing why the action failed on this entry.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *An error code representing why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *An error code representing why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *An error code representing why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithCode(const char* value) { SetCode(value); return *this;} /** *A message explaining why the action failed on this entry.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A message explaining why the action failed on this entry.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A message explaining why the action failed on this entry.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A message explaining why the action failed on this entry.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A message explaining why the action failed on this entry.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A message explaining why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A message explaining why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A message explaining why the action failed on this entry.
*/ inline BatchResultErrorEntry& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; bool m_senderFault; bool m_senderFaultHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace SQS } // namespace Aws