AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutEventsResultEntry.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_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 EventBridge
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_EVENTBRIDGE_API PutEventsResultEntry();
40 AWS_EVENTBRIDGE_API PutEventsResultEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEventId() const{ return m_eventId; }
50 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
51 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
52 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
53 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
54 inline PutEventsResultEntry& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
55 inline PutEventsResultEntry& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
56 inline PutEventsResultEntry& WithEventId(const char* value) { SetEventId(value); return *this;}
58
60
82 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
83 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
84 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
85 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
86 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
87 inline PutEventsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
88 inline PutEventsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
89 inline PutEventsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
91
93
96 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
97 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
98 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
99 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
100 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
101 inline PutEventsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
102 inline PutEventsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
103 inline PutEventsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
105 private:
106
107 Aws::String m_eventId;
108 bool m_eventIdHasBeenSet = false;
109
110 Aws::String m_errorCode;
111 bool m_errorCodeHasBeenSet = false;
112
113 Aws::String m_errorMessage;
114 bool m_errorMessageHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace EventBridge
119} // namespace Aws
void SetEventId(Aws::String &&value)
PutEventsResultEntry & WithEventId(Aws::String &&value)
const Aws::String & GetEventId() const
void SetErrorMessage(Aws::String &&value)
AWS_EVENTBRIDGE_API PutEventsResultEntry(Aws::Utils::Json::JsonView jsonValue)
void SetEventId(const char *value)
void SetEventId(const Aws::String &value)
const Aws::String & GetErrorCode() const
void SetErrorMessage(const char *value)
PutEventsResultEntry & WithErrorCode(const char *value)
PutEventsResultEntry & WithErrorMessage(const char *value)
PutEventsResultEntry & WithErrorMessage(Aws::String &&value)
bool EventIdHasBeenSet() const
void SetErrorCode(Aws::String &&value)
void SetErrorMessage(const Aws::String &value)
AWS_EVENTBRIDGE_API PutEventsResultEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
PutEventsResultEntry & WithEventId(const Aws::String &value)
bool ErrorCodeHasBeenSet() const
const Aws::String & GetErrorMessage() const
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PutEventsResultEntry & WithErrorCode(const Aws::String &value)
AWS_EVENTBRIDGE_API PutEventsResultEntry()
bool ErrorMessageHasBeenSet() const
void SetErrorCode(const char *value)
PutEventsResultEntry & WithEventId(const char *value)
PutEventsResultEntry & WithErrorMessage(const Aws::String &value)
void SetErrorCode(const Aws::String &value)
PutEventsResultEntry & WithErrorCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue