AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutPartnerEventsResultEntry.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
35 {
36 public:
37 AWS_EVENTBRIDGE_API PutPartnerEventsResultEntry() = default;
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetEventId() const { return m_eventId; }
48 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
49 template<typename EventIdT = Aws::String>
50 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
51 template<typename EventIdT = Aws::String>
52 PutPartnerEventsResultEntry& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
61 template<typename ErrorCodeT = Aws::String>
62 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
63 template<typename ErrorCodeT = Aws::String>
64 PutPartnerEventsResultEntry& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
72 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
73 template<typename ErrorMessageT = Aws::String>
74 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
75 template<typename ErrorMessageT = Aws::String>
76 PutPartnerEventsResultEntry& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
78 private:
79
80 Aws::String m_eventId;
81 bool m_eventIdHasBeenSet = false;
82
83 Aws::String m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
86 Aws::String m_errorMessage;
87 bool m_errorMessageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EventBridge
92} // namespace Aws
bool EventIdHasBeenSet() const
bool ErrorCodeHasBeenSet() const
const Aws::String & GetErrorMessage() const
void SetErrorMessage(ErrorMessageT &&value)
void SetErrorCode(ErrorCodeT &&value)
AWS_EVENTBRIDGE_API PutPartnerEventsResultEntry()=default
void SetEventId(EventIdT &&value)
const Aws::String & GetErrorCode() const
PutPartnerEventsResultEntry & WithErrorCode(ErrorCodeT &&value)
bool ErrorMessageHasBeenSet() const
AWS_EVENTBRIDGE_API PutPartnerEventsResultEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
PutPartnerEventsResultEntry & WithEventId(EventIdT &&value)
const Aws::String & GetEventId() const
AWS_EVENTBRIDGE_API PutPartnerEventsResultEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PutPartnerEventsResultEntry & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue