AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
UpdateEventSourceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
12#include <aws/eventbridgev2/model/EventSourceState.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace EventBridgeV2 {
25namespace Model {
27 public:
28 AWS_EVENTBRIDGEV2_API UpdateEventSourceResult() = default;
31
33
34 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
35 template <typename EventSourceArnT = Aws::String>
36 void SetEventSourceArn(EventSourceArnT&& value) {
37 m_eventSourceArnHasBeenSet = true;
38 m_eventSourceArn = std::forward<EventSourceArnT>(value);
39 }
40 template <typename EventSourceArnT = Aws::String>
41 UpdateEventSourceResult& WithEventSourceArn(EventSourceArnT&& value) {
42 SetEventSourceArn(std::forward<EventSourceArnT>(value));
43 return *this;
44 }
46
48
49 inline const Aws::String& GetName() const { return m_name; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
64 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
65 template <typename EventBusArnT = Aws::String>
66 void SetEventBusArn(EventBusArnT&& value) {
67 m_eventBusArnHasBeenSet = true;
68 m_eventBusArn = std::forward<EventBusArnT>(value);
69 }
70 template <typename EventBusArnT = Aws::String>
72 SetEventBusArn(std::forward<EventBusArnT>(value));
73 return *this;
74 }
76
78
79 inline EventSourceState GetState() const { return m_state; }
80 inline void SetState(EventSourceState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
95 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
96 void SetLastModifiedTime(LastModifiedTimeT&& value) {
97 m_lastModifiedTimeHasBeenSet = true;
98 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
99 }
100 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
101 UpdateEventSourceResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
102 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
124 Aws::String m_eventSourceArn;
125
126 Aws::String m_name;
127
128 Aws::String m_eventBusArn;
129
131
132 Aws::Utils::DateTime m_lastModifiedTime{};
133
134 Aws::String m_requestId;
135 Aws::Http::HttpResponseCode m_HttpResponseCode;
136 bool m_eventSourceArnHasBeenSet = false;
137 bool m_nameHasBeenSet = false;
138 bool m_eventBusArnHasBeenSet = false;
139 bool m_stateHasBeenSet = false;
140 bool m_lastModifiedTimeHasBeenSet = false;
141 bool m_requestIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace EventBridgeV2
146} // namespace Aws
UpdateEventSourceResult & WithEventSourceArn(EventSourceArnT &&value)
UpdateEventSourceResult & WithState(EventSourceState value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
UpdateEventSourceResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGEV2_API UpdateEventSourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_EVENTBRIDGEV2_API UpdateEventSourceResult()=default
AWS_EVENTBRIDGEV2_API UpdateEventSourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
UpdateEventSourceResult & WithEventBusArn(EventBusArnT &&value)
UpdateEventSourceResult & WithName(NameT &&value)
UpdateEventSourceResult & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String