AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartReplayResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/ReplayState.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EventBridge
26{
27namespace Model
28{
30 {
31 public:
32 AWS_EVENTBRIDGE_API StartReplayResult() = default;
35
36
38
41 inline const Aws::String& GetReplayArn() const { return m_replayArn; }
42 template<typename ReplayArnT = Aws::String>
43 void SetReplayArn(ReplayArnT&& value) { m_replayArnHasBeenSet = true; m_replayArn = std::forward<ReplayArnT>(value); }
44 template<typename ReplayArnT = Aws::String>
45 StartReplayResult& WithReplayArn(ReplayArnT&& value) { SetReplayArn(std::forward<ReplayArnT>(value)); return *this;}
47
49
52 inline ReplayState GetState() const { return m_state; }
53 inline void SetState(ReplayState value) { m_stateHasBeenSet = true; m_state = value; }
54 inline StartReplayResult& WithState(ReplayState value) { SetState(value); return *this;}
56
58
61 inline const Aws::String& GetStateReason() const { return m_stateReason; }
62 template<typename StateReasonT = Aws::String>
63 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
64 template<typename StateReasonT = Aws::String>
65 StartReplayResult& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetReplayStartTime() const { return m_replayStartTime; }
73 template<typename ReplayStartTimeT = Aws::Utils::DateTime>
74 void SetReplayStartTime(ReplayStartTimeT&& value) { m_replayStartTimeHasBeenSet = true; m_replayStartTime = std::forward<ReplayStartTimeT>(value); }
75 template<typename ReplayStartTimeT = Aws::Utils::DateTime>
76 StartReplayResult& WithReplayStartTime(ReplayStartTimeT&& value) { SetReplayStartTime(std::forward<ReplayStartTimeT>(value)); return *this;}
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 StartReplayResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
89 Aws::String m_replayArn;
90 bool m_replayArnHasBeenSet = false;
91
93 bool m_stateHasBeenSet = false;
94
95 Aws::String m_stateReason;
96 bool m_stateReasonHasBeenSet = false;
97
98 Aws::Utils::DateTime m_replayStartTime{};
99 bool m_replayStartTimeHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EventBridge
107} // 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