/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SQS { namespace Model { /** *

Gives a detailed description of the result of an action on each entry in the * request.

See Also:

AWS * API Reference

*/ class BatchResultErrorEntry { public: AWS_SQS_API BatchResultErrorEntry(); AWS_SQS_API BatchResultErrorEntry(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SQS_API BatchResultErrorEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SQS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SQS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Id of an entry in a batch request.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The Id of an entry in a batch request.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The Id of an entry in a batch request.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The Id of an entry in a batch request.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The Id of an entry in a batch request.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The Id of an entry in a batch request.

*/ inline BatchResultErrorEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The Id of an entry in a batch request.

*/ inline BatchResultErrorEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The Id of an entry in a batch request.

*/ inline BatchResultErrorEntry& WithId(const char* value) { SetId(value); return *this;} /** *

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