AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchAlarmActionErrorEntry.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
44 {
45 public:
46 AWS_IOTEVENTSDATA_API BatchAlarmActionErrorEntry();
49 AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetRequestId() const{ return m_requestId; }
57 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
58 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
59 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
60 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
61 inline BatchAlarmActionErrorEntry& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
62 inline BatchAlarmActionErrorEntry& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
63 inline BatchAlarmActionErrorEntry& WithRequestId(const char* value) { SetRequestId(value); return *this;}
65
67
70 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
71 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
72 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
73 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
74 inline BatchAlarmActionErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
75 inline BatchAlarmActionErrorEntry& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
83 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
84 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
85 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
86 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
87 inline BatchAlarmActionErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
88 inline BatchAlarmActionErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
89 inline BatchAlarmActionErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
91 private:
92
93 Aws::String m_requestId;
94 bool m_requestIdHasBeenSet = false;
95
96 ErrorCode m_errorCode;
97 bool m_errorCodeHasBeenSet = false;
98
99 Aws::String m_errorMessage;
100 bool m_errorMessageHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace IoTEventsData
105} // namespace Aws
void SetErrorMessage(const char *value)
const ErrorCode & GetErrorCode() const
AWS_IOTEVENTSDATA_API BatchAlarmActionErrorEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchAlarmActionErrorEntry & WithErrorMessage(Aws::String &&value)
void SetErrorMessage(Aws::String &&value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
bool ErrorMessageHasBeenSet() const
BatchAlarmActionErrorEntry & WithErrorMessage(const Aws::String &value)
void SetErrorCode(ErrorCode &&value)
BatchAlarmActionErrorEntry & WithErrorCode(ErrorCode &&value)
void SetRequestId(const char *value)
AWS_IOTEVENTSDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorMessage(const Aws::String &value)
bool ErrorCodeHasBeenSet() const
void SetErrorCode(const ErrorCode &value)
AWS_IOTEVENTSDATA_API BatchAlarmActionErrorEntry(Aws::Utils::Json::JsonView jsonValue)
bool RequestIdHasBeenSet() const
void SetRequestId(Aws::String &&value)
AWS_IOTEVENTSDATA_API BatchAlarmActionErrorEntry()
BatchAlarmActionErrorEntry & WithRequestId(const char *value)
const Aws::String & GetErrorMessage() const
BatchAlarmActionErrorEntry & WithErrorMessage(const char *value)
BatchAlarmActionErrorEntry & WithErrorCode(const ErrorCode &value)
BatchAlarmActionErrorEntry & WithRequestId(Aws::String &&value)
BatchAlarmActionErrorEntry & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue