AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Replay.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{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge
24{
25namespace Model
26{
27
34 class Replay
35 {
36 public:
37 AWS_EVENTBRIDGE_API Replay();
38 AWS_EVENTBRIDGE_API Replay(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EVENTBRIDGE_API Replay& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetReplayName() const{ return m_replayName; }
48 inline bool ReplayNameHasBeenSet() const { return m_replayNameHasBeenSet; }
49 inline void SetReplayName(const Aws::String& value) { m_replayNameHasBeenSet = true; m_replayName = value; }
50 inline void SetReplayName(Aws::String&& value) { m_replayNameHasBeenSet = true; m_replayName = std::move(value); }
51 inline void SetReplayName(const char* value) { m_replayNameHasBeenSet = true; m_replayName.assign(value); }
52 inline Replay& WithReplayName(const Aws::String& value) { SetReplayName(value); return *this;}
53 inline Replay& WithReplayName(Aws::String&& value) { SetReplayName(std::move(value)); return *this;}
54 inline Replay& WithReplayName(const char* value) { SetReplayName(value); return *this;}
56
58
61 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
62 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
63 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
64 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
65 inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
66 inline Replay& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
67 inline Replay& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
68 inline Replay& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
70
72
75 inline const ReplayState& GetState() const{ return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(const ReplayState& value) { m_stateHasBeenSet = true; m_state = value; }
78 inline void SetState(ReplayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
79 inline Replay& WithState(const ReplayState& value) { SetState(value); return *this;}
80 inline Replay& WithState(ReplayState&& value) { SetState(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
88 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
89 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
90 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
91 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
92 inline Replay& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
93 inline Replay& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
94 inline Replay& WithStateReason(const char* value) { SetStateReason(value); return *this;}
96
98
103 inline const Aws::Utils::DateTime& GetEventStartTime() const{ return m_eventStartTime; }
104 inline bool EventStartTimeHasBeenSet() const { return m_eventStartTimeHasBeenSet; }
105 inline void SetEventStartTime(const Aws::Utils::DateTime& value) { m_eventStartTimeHasBeenSet = true; m_eventStartTime = value; }
106 inline void SetEventStartTime(Aws::Utils::DateTime&& value) { m_eventStartTimeHasBeenSet = true; m_eventStartTime = std::move(value); }
107 inline Replay& WithEventStartTime(const Aws::Utils::DateTime& value) { SetEventStartTime(value); return *this;}
108 inline Replay& WithEventStartTime(Aws::Utils::DateTime&& value) { SetEventStartTime(std::move(value)); return *this;}
110
112
116 inline const Aws::Utils::DateTime& GetEventEndTime() const{ return m_eventEndTime; }
117 inline bool EventEndTimeHasBeenSet() const { return m_eventEndTimeHasBeenSet; }
118 inline void SetEventEndTime(const Aws::Utils::DateTime& value) { m_eventEndTimeHasBeenSet = true; m_eventEndTime = value; }
119 inline void SetEventEndTime(Aws::Utils::DateTime&& value) { m_eventEndTimeHasBeenSet = true; m_eventEndTime = std::move(value); }
120 inline Replay& WithEventEndTime(const Aws::Utils::DateTime& value) { SetEventEndTime(value); return *this;}
121 inline Replay& WithEventEndTime(Aws::Utils::DateTime&& value) { SetEventEndTime(std::move(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetEventLastReplayedTime() const{ return m_eventLastReplayedTime; }
129 inline bool EventLastReplayedTimeHasBeenSet() const { return m_eventLastReplayedTimeHasBeenSet; }
130 inline void SetEventLastReplayedTime(const Aws::Utils::DateTime& value) { m_eventLastReplayedTimeHasBeenSet = true; m_eventLastReplayedTime = value; }
131 inline void SetEventLastReplayedTime(Aws::Utils::DateTime&& value) { m_eventLastReplayedTimeHasBeenSet = true; m_eventLastReplayedTime = std::move(value); }
133 inline Replay& WithEventLastReplayedTime(Aws::Utils::DateTime&& value) { SetEventLastReplayedTime(std::move(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetReplayStartTime() const{ return m_replayStartTime; }
141 inline bool ReplayStartTimeHasBeenSet() const { return m_replayStartTimeHasBeenSet; }
142 inline void SetReplayStartTime(const Aws::Utils::DateTime& value) { m_replayStartTimeHasBeenSet = true; m_replayStartTime = value; }
143 inline void SetReplayStartTime(Aws::Utils::DateTime&& value) { m_replayStartTimeHasBeenSet = true; m_replayStartTime = std::move(value); }
144 inline Replay& WithReplayStartTime(const Aws::Utils::DateTime& value) { SetReplayStartTime(value); return *this;}
145 inline Replay& WithReplayStartTime(Aws::Utils::DateTime&& value) { SetReplayStartTime(std::move(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetReplayEndTime() const{ return m_replayEndTime; }
153 inline bool ReplayEndTimeHasBeenSet() const { return m_replayEndTimeHasBeenSet; }
154 inline void SetReplayEndTime(const Aws::Utils::DateTime& value) { m_replayEndTimeHasBeenSet = true; m_replayEndTime = value; }
155 inline void SetReplayEndTime(Aws::Utils::DateTime&& value) { m_replayEndTimeHasBeenSet = true; m_replayEndTime = std::move(value); }
156 inline Replay& WithReplayEndTime(const Aws::Utils::DateTime& value) { SetReplayEndTime(value); return *this;}
157 inline Replay& WithReplayEndTime(Aws::Utils::DateTime&& value) { SetReplayEndTime(std::move(value)); return *this;}
159 private:
160
161 Aws::String m_replayName;
162 bool m_replayNameHasBeenSet = false;
163
164 Aws::String m_eventSourceArn;
165 bool m_eventSourceArnHasBeenSet = false;
166
167 ReplayState m_state;
168 bool m_stateHasBeenSet = false;
169
170 Aws::String m_stateReason;
171 bool m_stateReasonHasBeenSet = false;
172
173 Aws::Utils::DateTime m_eventStartTime;
174 bool m_eventStartTimeHasBeenSet = false;
175
176 Aws::Utils::DateTime m_eventEndTime;
177 bool m_eventEndTimeHasBeenSet = false;
178
179 Aws::Utils::DateTime m_eventLastReplayedTime;
180 bool m_eventLastReplayedTimeHasBeenSet = false;
181
182 Aws::Utils::DateTime m_replayStartTime;
183 bool m_replayStartTimeHasBeenSet = false;
184
185 Aws::Utils::DateTime m_replayEndTime;
186 bool m_replayEndTimeHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace EventBridge
191} // namespace Aws
void SetEventSourceArn(const char *value)
Definition Replay.h:65
void SetReplayStartTime(const Aws::Utils::DateTime &value)
Definition Replay.h:142
bool EventStartTimeHasBeenSet() const
Definition Replay.h:104
void SetStateReason(Aws::String &&value)
Definition Replay.h:90
AWS_EVENTBRIDGE_API Replay()
Replay & WithEventStartTime(Aws::Utils::DateTime &&value)
Definition Replay.h:108
Replay & WithReplayEndTime(Aws::Utils::DateTime &&value)
Definition Replay.h:157
void SetEventLastReplayedTime(Aws::Utils::DateTime &&value)
Definition Replay.h:131
Replay & WithReplayName(Aws::String &&value)
Definition Replay.h:53
Replay & WithEventEndTime(const Aws::Utils::DateTime &value)
Definition Replay.h:120
Replay & WithReplayEndTime(const Aws::Utils::DateTime &value)
Definition Replay.h:156
const Aws::String & GetEventSourceArn() const
Definition Replay.h:61
Replay & WithEventSourceArn(const char *value)
Definition Replay.h:68
void SetReplayName(const Aws::String &value)
Definition Replay.h:49
void SetState(const ReplayState &value)
Definition Replay.h:77
Replay & WithEventStartTime(const Aws::Utils::DateTime &value)
Definition Replay.h:107
Replay & WithEventEndTime(Aws::Utils::DateTime &&value)
Definition Replay.h:121
void SetEventStartTime(const Aws::Utils::DateTime &value)
Definition Replay.h:105
void SetEventSourceArn(Aws::String &&value)
Definition Replay.h:64
const Aws::Utils::DateTime & GetEventStartTime() const
Definition Replay.h:103
void SetReplayEndTime(Aws::Utils::DateTime &&value)
Definition Replay.h:155
Replay & WithStateReason(Aws::String &&value)
Definition Replay.h:93
Replay & WithState(const ReplayState &value)
Definition Replay.h:79
void SetEventLastReplayedTime(const Aws::Utils::DateTime &value)
Definition Replay.h:130
void SetReplayName(const char *value)
Definition Replay.h:51
const ReplayState & GetState() const
Definition Replay.h:75
AWS_EVENTBRIDGE_API Replay & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ReplayNameHasBeenSet() const
Definition Replay.h:48
Replay & WithState(ReplayState &&value)
Definition Replay.h:80
bool ReplayEndTimeHasBeenSet() const
Definition Replay.h:153
void SetEventEndTime(Aws::Utils::DateTime &&value)
Definition Replay.h:119
const Aws::Utils::DateTime & GetReplayEndTime() const
Definition Replay.h:152
bool EventLastReplayedTimeHasBeenSet() const
Definition Replay.h:129
Replay & WithStateReason(const char *value)
Definition Replay.h:94
void SetReplayEndTime(const Aws::Utils::DateTime &value)
Definition Replay.h:154
Replay & WithReplayStartTime(const Aws::Utils::DateTime &value)
Definition Replay.h:144
AWS_EVENTBRIDGE_API Replay(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetReplayStartTime() const
Definition Replay.h:140
const Aws::String & GetStateReason() const
Definition Replay.h:87
Replay & WithEventLastReplayedTime(const Aws::Utils::DateTime &value)
Definition Replay.h:132
Replay & WithReplayName(const Aws::String &value)
Definition Replay.h:52
bool StateReasonHasBeenSet() const
Definition Replay.h:88
Replay & WithEventSourceArn(Aws::String &&value)
Definition Replay.h:67
void SetStateReason(const char *value)
Definition Replay.h:91
Replay & WithEventLastReplayedTime(Aws::Utils::DateTime &&value)
Definition Replay.h:133
const Aws::Utils::DateTime & GetEventEndTime() const
Definition Replay.h:116
bool ReplayStartTimeHasBeenSet() const
Definition Replay.h:141
Replay & WithReplayStartTime(Aws::Utils::DateTime &&value)
Definition Replay.h:145
void SetState(ReplayState &&value)
Definition Replay.h:78
void SetEventSourceArn(const Aws::String &value)
Definition Replay.h:63
const Aws::Utils::DateTime & GetEventLastReplayedTime() const
Definition Replay.h:128
Replay & WithEventSourceArn(const Aws::String &value)
Definition Replay.h:66
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventSourceArnHasBeenSet() const
Definition Replay.h:62
void SetEventStartTime(Aws::Utils::DateTime &&value)
Definition Replay.h:106
const Aws::String & GetReplayName() const
Definition Replay.h:47
Replay & WithReplayName(const char *value)
Definition Replay.h:54
void SetEventEndTime(const Aws::Utils::DateTime &value)
Definition Replay.h:118
void SetReplayStartTime(Aws::Utils::DateTime &&value)
Definition Replay.h:143
bool EventEndTimeHasBeenSet() const
Definition Replay.h:117
void SetStateReason(const Aws::String &value)
Definition Replay.h:89
Replay & WithStateReason(const Aws::String &value)
Definition Replay.h:92
void SetReplayName(Aws::String &&value)
Definition Replay.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue