AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchResultErrorEntry.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SQS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SQS_API BatchResultErrorEntry() = default;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 BatchResultErrorEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
52
54
58 inline bool GetSenderFault() const { return m_senderFault; }
59 inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
60 inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; }
61 inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;}
63
65
68 inline const Aws::String& GetCode() const { return m_code; }
69 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
70 template<typename CodeT = Aws::String>
71 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
72 template<typename CodeT = Aws::String>
73 BatchResultErrorEntry& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template<typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
84 template<typename MessageT = Aws::String>
85 BatchResultErrorEntry& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
87 private:
88
89 Aws::String m_id;
90 bool m_idHasBeenSet = false;
91
92 bool m_senderFault{false};
93 bool m_senderFaultHasBeenSet = false;
94
95 Aws::String m_code;
96 bool m_codeHasBeenSet = false;
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SQS
104} // namespace Aws
AWS_SQS_API BatchResultErrorEntry()=default
bool GetSenderFault() const
void SetMessage(MessageT &&value)
const Aws::String & GetCode() const
AWS_SQS_API BatchResultErrorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
void SetSenderFault(bool value)
bool CodeHasBeenSet() const
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SQS_API BatchResultErrorEntry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
bool IdHasBeenSet() const
BatchResultErrorEntry & WithCode(CodeT &&value)
BatchResultErrorEntry & WithMessage(MessageT &&value)
BatchResultErrorEntry & WithSenderFault(bool value)
bool MessageHasBeenSet() const
BatchResultErrorEntry & WithId(IdT &&value)
void SetId(IdT &&value)
bool SenderFaultHasBeenSet() const
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue