AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchResultErrorEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sqs/SQS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SQS {
20namespace Model {
21
29 public:
30 AWS_SQS_API BatchResultErrorEntry() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
58 inline bool GetSenderFault() const { return m_senderFault; }
59 inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
60 inline void SetSenderFault(bool value) {
61 m_senderFaultHasBeenSet = true;
62 m_senderFault = value;
63 }
65 SetSenderFault(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCode() const { return m_code; }
75 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
76 template <typename CodeT = Aws::String>
77 void SetCode(CodeT&& value) {
78 m_codeHasBeenSet = true;
79 m_code = std::forward<CodeT>(value);
80 }
81 template <typename CodeT = Aws::String>
83 SetCode(std::forward<CodeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template <typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) {
96 m_messageHasBeenSet = true;
97 m_message = std::forward<MessageT>(value);
98 }
99 template <typename MessageT = Aws::String>
101 SetMessage(std::forward<MessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_id;
107
108 bool m_senderFault{false};
109
110 Aws::String m_code;
111
112 Aws::String m_message;
113 bool m_idHasBeenSet = false;
114 bool m_senderFaultHasBeenSet = false;
115 bool m_codeHasBeenSet = false;
116 bool m_messageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SQS
121} // 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