AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
CancelReplayResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/ReplayState.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge {
24namespace Model {
26 public:
27 AWS_EVENTBRIDGE_API CancelReplayResult() = default;
30
32
35 inline const Aws::String& GetReplayArn() const { return m_replayArn; }
36 template <typename ReplayArnT = Aws::String>
37 void SetReplayArn(ReplayArnT&& value) {
38 m_replayArnHasBeenSet = true;
39 m_replayArn = std::forward<ReplayArnT>(value);
40 }
41 template <typename ReplayArnT = Aws::String>
42 CancelReplayResult& WithReplayArn(ReplayArnT&& value) {
43 SetReplayArn(std::forward<ReplayArnT>(value));
44 return *this;
45 }
47
49
52 inline ReplayState GetState() const { return m_state; }
53 inline void SetState(ReplayState value) {
54 m_stateHasBeenSet = true;
55 m_state = value;
56 }
58 SetState(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetStateReason() const { return m_stateReason; }
68 template <typename StateReasonT = Aws::String>
69 void SetStateReason(StateReasonT&& value) {
70 m_stateReasonHasBeenSet = true;
71 m_stateReason = std::forward<StateReasonT>(value);
72 }
73 template <typename StateReasonT = Aws::String>
74 CancelReplayResult& WithStateReason(StateReasonT&& value) {
75 SetStateReason(std::forward<StateReasonT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 CancelReplayResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::String m_replayArn;
98
100
101 Aws::String m_stateReason;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_replayArnHasBeenSet = false;
106 bool m_stateHasBeenSet = false;
107 bool m_stateReasonHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace EventBridge
113} // namespace Aws
CancelReplayResult & WithState(ReplayState value)
AWS_EVENTBRIDGE_API CancelReplayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelReplayResult & WithStateReason(StateReasonT &&value)
AWS_EVENTBRIDGE_API CancelReplayResult()=default
CancelReplayResult & WithReplayArn(ReplayArnT &&value)
CancelReplayResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API CancelReplayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue