AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartReplayRequest.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/EventBridgeRequest.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/ReplayDestination.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EventBridge {
17namespace Model {
18
22 public:
23 AWS_EVENTBRIDGE_API StartReplayRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartReplay"; }
30
31 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
32
33 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetReplayName() const { return m_replayName; }
40 inline bool ReplayNameHasBeenSet() const { return m_replayNameHasBeenSet; }
41 template <typename ReplayNameT = Aws::String>
42 void SetReplayName(ReplayNameT&& value) {
43 m_replayNameHasBeenSet = true;
44 m_replayName = std::forward<ReplayNameT>(value);
45 }
46 template <typename ReplayNameT = Aws::String>
47 StartReplayRequest& WithReplayName(ReplayNameT&& value) {
48 SetReplayName(std::forward<ReplayNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 StartReplayRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
76 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
77 template <typename EventSourceArnT = Aws::String>
78 void SetEventSourceArn(EventSourceArnT&& value) {
79 m_eventSourceArnHasBeenSet = true;
80 m_eventSourceArn = std::forward<EventSourceArnT>(value);
81 }
82 template <typename EventSourceArnT = Aws::String>
83 StartReplayRequest& WithEventSourceArn(EventSourceArnT&& value) {
84 SetEventSourceArn(std::forward<EventSourceArnT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::Utils::DateTime& GetEventStartTime() const { return m_eventStartTime; }
96 inline bool EventStartTimeHasBeenSet() const { return m_eventStartTimeHasBeenSet; }
97 template <typename EventStartTimeT = Aws::Utils::DateTime>
98 void SetEventStartTime(EventStartTimeT&& value) {
99 m_eventStartTimeHasBeenSet = true;
100 m_eventStartTime = std::forward<EventStartTimeT>(value);
101 }
102 template <typename EventStartTimeT = Aws::Utils::DateTime>
103 StartReplayRequest& WithEventStartTime(EventStartTimeT&& value) {
104 SetEventStartTime(std::forward<EventStartTimeT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::Utils::DateTime& GetEventEndTime() const { return m_eventEndTime; }
116 inline bool EventEndTimeHasBeenSet() const { return m_eventEndTimeHasBeenSet; }
117 template <typename EventEndTimeT = Aws::Utils::DateTime>
118 void SetEventEndTime(EventEndTimeT&& value) {
119 m_eventEndTimeHasBeenSet = true;
120 m_eventEndTime = std::forward<EventEndTimeT>(value);
121 }
122 template <typename EventEndTimeT = Aws::Utils::DateTime>
123 StartReplayRequest& WithEventEndTime(EventEndTimeT&& value) {
124 SetEventEndTime(std::forward<EventEndTimeT>(value));
125 return *this;
126 }
128
130
134 inline const ReplayDestination& GetDestination() const { return m_destination; }
135 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
136 template <typename DestinationT = ReplayDestination>
137 void SetDestination(DestinationT&& value) {
138 m_destinationHasBeenSet = true;
139 m_destination = std::forward<DestinationT>(value);
140 }
141 template <typename DestinationT = ReplayDestination>
142 StartReplayRequest& WithDestination(DestinationT&& value) {
143 SetDestination(std::forward<DestinationT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_replayName;
149
150 Aws::String m_description;
151
152 Aws::String m_eventSourceArn;
153
154 Aws::Utils::DateTime m_eventStartTime{};
155
156 Aws::Utils::DateTime m_eventEndTime{};
157
158 ReplayDestination m_destination;
159 bool m_replayNameHasBeenSet = false;
160 bool m_descriptionHasBeenSet = false;
161 bool m_eventSourceArnHasBeenSet = false;
162 bool m_eventStartTimeHasBeenSet = false;
163 bool m_eventEndTimeHasBeenSet = false;
164 bool m_destinationHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace EventBridge
169} // namespace Aws
const Aws::Utils::DateTime & GetEventEndTime() const
StartReplayRequest & WithEventEndTime(EventEndTimeT &&value)
AWS_EVENTBRIDGE_API StartReplayRequest()=default
void SetEventSourceArn(EventSourceArnT &&value)
void SetEventStartTime(EventStartTimeT &&value)
StartReplayRequest & WithEventSourceArn(EventSourceArnT &&value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetEventStartTime() const
virtual const char * GetServiceRequestName() const override
StartReplayRequest & WithDescription(DescriptionT &&value)
const ReplayDestination & GetDestination() const
StartReplayRequest & WithEventStartTime(EventStartTimeT &&value)
StartReplayRequest & WithReplayName(ReplayNameT &&value)
StartReplayRequest & WithDestination(DestinationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String