AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetReplayName(const Aws::String& value) { m_replayNameHasBeenSet = true; m_replayName = value; }
46 inline void SetReplayName(Aws::String&& value) { m_replayNameHasBeenSet = true; m_replayName = std::move(value); }
47 inline void SetReplayName(const char* value) { m_replayNameHasBeenSet = true; m_replayName.assign(value); }
48 inline StartReplayRequest& WithReplayName(const Aws::String& value) { SetReplayName(value); return *this;}
49 inline StartReplayRequest& WithReplayName(Aws::String&& value) { SetReplayName(std::move(value)); return *this;}
50 inline StartReplayRequest& WithReplayName(const char* value) { SetReplayName(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline StartReplayRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline StartReplayRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline StartReplayRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
72 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
73 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
74 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
75 inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
76 inline StartReplayRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
77 inline StartReplayRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
78 inline StartReplayRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
80
82
87 inline const Aws::Utils::DateTime& GetEventStartTime() const{ return m_eventStartTime; }
88 inline bool EventStartTimeHasBeenSet() const { return m_eventStartTimeHasBeenSet; }
89 inline void SetEventStartTime(const Aws::Utils::DateTime& value) { m_eventStartTimeHasBeenSet = true; m_eventStartTime = value; }
90 inline void SetEventStartTime(Aws::Utils::DateTime&& value) { m_eventStartTimeHasBeenSet = true; m_eventStartTime = std::move(value); }
91 inline StartReplayRequest& WithEventStartTime(const Aws::Utils::DateTime& value) { SetEventStartTime(value); return *this;}
92 inline StartReplayRequest& WithEventStartTime(Aws::Utils::DateTime&& value) { SetEventStartTime(std::move(value)); return *this;}
94
96
101 inline const Aws::Utils::DateTime& GetEventEndTime() const{ return m_eventEndTime; }
102 inline bool EventEndTimeHasBeenSet() const { return m_eventEndTimeHasBeenSet; }
103 inline void SetEventEndTime(const Aws::Utils::DateTime& value) { m_eventEndTimeHasBeenSet = true; m_eventEndTime = value; }
104 inline void SetEventEndTime(Aws::Utils::DateTime&& value) { m_eventEndTimeHasBeenSet = true; m_eventEndTime = std::move(value); }
105 inline StartReplayRequest& WithEventEndTime(const Aws::Utils::DateTime& value) { SetEventEndTime(value); return *this;}
106 inline StartReplayRequest& WithEventEndTime(Aws::Utils::DateTime&& value) { SetEventEndTime(std::move(value)); return *this;}
108
110
114 inline const ReplayDestination& GetDestination() const{ return m_destination; }
115 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
116 inline void SetDestination(const ReplayDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
117 inline void SetDestination(ReplayDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
118 inline StartReplayRequest& WithDestination(const ReplayDestination& value) { SetDestination(value); return *this;}
119 inline StartReplayRequest& WithDestination(ReplayDestination&& value) { SetDestination(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_replayName;
124 bool m_replayNameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::String m_eventSourceArn;
130 bool m_eventSourceArnHasBeenSet = false;
131
132 Aws::Utils::DateTime m_eventStartTime;
133 bool m_eventStartTimeHasBeenSet = false;
134
135 Aws::Utils::DateTime m_eventEndTime;
136 bool m_eventEndTimeHasBeenSet = false;
137
138 ReplayDestination m_destination;
139 bool m_destinationHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CloudWatchEvents
144} // namespace Aws
virtual const char * GetServiceRequestName() const override
StartReplayRequest & WithEventSourceArn(Aws::String &&value)
StartReplayRequest & WithDestination(const ReplayDestination &value)
void SetEventEndTime(const Aws::Utils::DateTime &value)
void SetEventEndTime(Aws::Utils::DateTime &&value)
StartReplayRequest & WithDescription(Aws::String &&value)
void SetEventStartTime(const Aws::Utils::DateTime &value)
StartReplayRequest & WithDescription(const char *value)
StartReplayRequest & WithEventSourceArn(const Aws::String &value)
StartReplayRequest & WithEventEndTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEventEndTime() const
StartReplayRequest & WithDescription(const Aws::String &value)
StartReplayRequest & WithReplayName(Aws::String &&value)
const ReplayDestination & GetDestination() const
StartReplayRequest & WithEventStartTime(Aws::Utils::DateTime &&value)
StartReplayRequest & WithReplayName(const char *value)
StartReplayRequest & WithEventEndTime(Aws::Utils::DateTime &&value)
StartReplayRequest & WithDestination(ReplayDestination &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartReplayRequest & WithEventStartTime(const Aws::Utils::DateTime &value)
StartReplayRequest & WithEventSourceArn(const char *value)
void SetEventStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEventStartTime() const
void SetDestination(const ReplayDestination &value)
StartReplayRequest & WithReplayName(const Aws::String &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