AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchPutMessageErrorEntry.h
1
6#pragma once
7#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotevents-data/model/ErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEventsData
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry();
37 AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetMessageId() const{ return m_messageId; }
48 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
49 inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
50 inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
51 inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
52 inline BatchPutMessageErrorEntry& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
53 inline BatchPutMessageErrorEntry& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
54 inline BatchPutMessageErrorEntry& WithMessageId(const char* value) { SetMessageId(value); return *this;}
56
58
61 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
62 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
63 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
64 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
65 inline BatchPutMessageErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
66 inline BatchPutMessageErrorEntry& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
74 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
75 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
76 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
77 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
78 inline BatchPutMessageErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
79 inline BatchPutMessageErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
80 inline BatchPutMessageErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
82 private:
83
84 Aws::String m_messageId;
85 bool m_messageIdHasBeenSet = false;
86
87 ErrorCode m_errorCode;
88 bool m_errorCodeHasBeenSet = false;
89
90 Aws::String m_errorMessage;
91 bool m_errorMessageHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace IoTEventsData
96} // namespace Aws
void SetMessageId(const char *value)
BatchPutMessageErrorEntry & WithErrorMessage(const char *value)
const ErrorCode & GetErrorCode() const
BatchPutMessageErrorEntry & WithErrorCode(const ErrorCode &value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessageId() const
void SetMessageId(Aws::String &&value)
bool ErrorMessageHasBeenSet() const
void SetMessageId(const Aws::String &value)
void SetErrorMessage(Aws::String &&value)
BatchPutMessageErrorEntry & WithMessageId(Aws::String &&value)
void SetErrorCode(ErrorCode &&value)
bool MessageIdHasBeenSet() const
void SetErrorMessage(const Aws::String &value)
AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry()
BatchPutMessageErrorEntry & WithMessageId(const Aws::String &value)
BatchPutMessageErrorEntry & WithErrorMessage(const Aws::String &value)
AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry(Aws::Utils::Json::JsonView jsonValue)
BatchPutMessageErrorEntry & WithMessageId(const char *value)
const Aws::String & GetErrorMessage() const
BatchPutMessageErrorEntry & WithErrorCode(ErrorCode &&value)
BatchPutMessageErrorEntry & WithErrorMessage(Aws::String &&value)
bool ErrorCodeHasBeenSet() const
void SetErrorMessage(const char *value)
AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const ErrorCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue