AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
StartReplayResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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 StartReplayResult() = 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 StartReplayResult& 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 StartReplayResult& WithStateReason(StateReasonT&& value) {
75 SetStateReason(std::forward<StateReasonT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Utils::DateTime& GetReplayStartTime() const { return m_replayStartTime; }
85 template <typename ReplayStartTimeT = Aws::Utils::DateTime>
86 void SetReplayStartTime(ReplayStartTimeT&& value) {
87 m_replayStartTimeHasBeenSet = true;
88 m_replayStartTime = std::forward<ReplayStartTimeT>(value);
89 }
90 template <typename ReplayStartTimeT = Aws::Utils::DateTime>
91 StartReplayResult& WithReplayStartTime(ReplayStartTimeT&& value) {
92 SetReplayStartTime(std::forward<ReplayStartTimeT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
106 StartReplayResult& WithRequestId(RequestIdT&& value) {
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_replayArn;
113
115
116 Aws::String m_stateReason;
117
118 Aws::Utils::DateTime m_replayStartTime{};
119
120 Aws::String m_requestId;
121 bool m_replayArnHasBeenSet = false;
122 bool m_stateHasBeenSet = false;
123 bool m_stateReasonHasBeenSet = false;
124 bool m_replayStartTimeHasBeenSet = false;
125 bool m_requestIdHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace EventBridge
130} // namespace Aws
StartReplayResult & WithReplayArn(ReplayArnT &&value)
StartReplayResult & WithStateReason(StateReasonT &&value)
StartReplayResult & WithReplayStartTime(ReplayStartTimeT &&value)
AWS_EVENTBRIDGE_API StartReplayResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartReplayResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API StartReplayResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetReplayStartTime() const
StartReplayResult & WithState(ReplayState value)
void SetReplayStartTime(ReplayStartTimeT &&value)
AWS_EVENTBRIDGE_API StartReplayResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue