AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartReplayRequest.h
1
6#pragma once
7#include <aws/events/CloudWatchEvents_EXPORTS.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/events/model/ReplayDestination.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHEVENTS_API StartReplayRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartReplay"; }
33
34 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetReplayName() const { return m_replayName; }
44 inline bool ReplayNameHasBeenSet() const { return m_replayNameHasBeenSet; }
45 template<typename ReplayNameT = Aws::String>
46 void SetReplayName(ReplayNameT&& value) { m_replayNameHasBeenSet = true; m_replayName = std::forward<ReplayNameT>(value); }
47 template<typename ReplayNameT = Aws::String>
48 StartReplayRequest& WithReplayName(ReplayNameT&& value) { SetReplayName(std::forward<ReplayNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 StartReplayRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
68 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
69 template<typename EventSourceArnT = Aws::String>
70 void SetEventSourceArn(EventSourceArnT&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::forward<EventSourceArnT>(value); }
71 template<typename EventSourceArnT = Aws::String>
72 StartReplayRequest& WithEventSourceArn(EventSourceArnT&& value) { SetEventSourceArn(std::forward<EventSourceArnT>(value)); return *this;}
74
76
81 inline const Aws::Utils::DateTime& GetEventStartTime() const { return m_eventStartTime; }
82 inline bool EventStartTimeHasBeenSet() const { return m_eventStartTimeHasBeenSet; }
83 template<typename EventStartTimeT = Aws::Utils::DateTime>
84 void SetEventStartTime(EventStartTimeT&& value) { m_eventStartTimeHasBeenSet = true; m_eventStartTime = std::forward<EventStartTimeT>(value); }
85 template<typename EventStartTimeT = Aws::Utils::DateTime>
86 StartReplayRequest& WithEventStartTime(EventStartTimeT&& value) { SetEventStartTime(std::forward<EventStartTimeT>(value)); return *this;}
88
90
95 inline const Aws::Utils::DateTime& GetEventEndTime() const { return m_eventEndTime; }
96 inline bool EventEndTimeHasBeenSet() const { return m_eventEndTimeHasBeenSet; }
97 template<typename EventEndTimeT = Aws::Utils::DateTime>
98 void SetEventEndTime(EventEndTimeT&& value) { m_eventEndTimeHasBeenSet = true; m_eventEndTime = std::forward<EventEndTimeT>(value); }
99 template<typename EventEndTimeT = Aws::Utils::DateTime>
100 StartReplayRequest& WithEventEndTime(EventEndTimeT&& value) { SetEventEndTime(std::forward<EventEndTimeT>(value)); return *this;}
102
104
108 inline const ReplayDestination& GetDestination() const { return m_destination; }
109 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
110 template<typename DestinationT = ReplayDestination>
111 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
112 template<typename DestinationT = ReplayDestination>
113 StartReplayRequest& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
115 private:
116
117 Aws::String m_replayName;
118 bool m_replayNameHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_eventSourceArn;
124 bool m_eventSourceArnHasBeenSet = false;
125
126 Aws::Utils::DateTime m_eventStartTime{};
127 bool m_eventStartTimeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_eventEndTime{};
130 bool m_eventEndTimeHasBeenSet = false;
131
132 ReplayDestination m_destination;
133 bool m_destinationHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace CloudWatchEvents
138} // namespace Aws
StartReplayRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::DateTime & GetEventEndTime() const
const ReplayDestination & GetDestination() const
StartReplayRequest & WithEventSourceArn(EventSourceArnT &&value)
StartReplayRequest & WithReplayName(ReplayNameT &&value)
StartReplayRequest & WithEventEndTime(EventEndTimeT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHEVENTS_API StartReplayRequest()=default
const Aws::Utils::DateTime & GetEventStartTime() const
StartReplayRequest & WithEventStartTime(EventStartTimeT &&value)
StartReplayRequest & WithDestination(DestinationT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String