AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListReplaysRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/ReplayState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchEvents {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHEVENTS_API ListReplaysRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListReplays"; }
29
30 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
40 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
41 template <typename NamePrefixT = Aws::String>
42 void SetNamePrefix(NamePrefixT&& value) {
43 m_namePrefixHasBeenSet = true;
44 m_namePrefix = std::forward<NamePrefixT>(value);
45 }
46 template <typename NamePrefixT = Aws::String>
47 ListReplaysRequest& WithNamePrefix(NamePrefixT&& value) {
48 SetNamePrefix(std::forward<NamePrefixT>(value));
49 return *this;
50 }
52
54
57 inline ReplayState GetState() const { return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 inline void SetState(ReplayState value) {
60 m_stateHasBeenSet = true;
61 m_state = value;
62 }
64 SetState(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEventSourceArn() const { return m_eventSourceArn; }
74 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
75 template <typename EventSourceArnT = Aws::String>
76 void SetEventSourceArn(EventSourceArnT&& value) {
77 m_eventSourceArnHasBeenSet = true;
78 m_eventSourceArn = std::forward<EventSourceArnT>(value);
79 }
80 template <typename EventSourceArnT = Aws::String>
81 ListReplaysRequest& WithEventSourceArn(EventSourceArnT&& value) {
82 SetEventSourceArn(std::forward<EventSourceArnT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template <typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) {
96 m_nextTokenHasBeenSet = true;
97 m_nextToken = std::forward<NextTokenT>(value);
98 }
99 template <typename NextTokenT = Aws::String>
100 ListReplaysRequest& WithNextToken(NextTokenT&& value) {
101 SetNextToken(std::forward<NextTokenT>(value));
102 return *this;
103 }
105
107
110 inline int GetLimit() const { return m_limit; }
111 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
112 inline void SetLimit(int value) {
113 m_limitHasBeenSet = true;
114 m_limit = value;
115 }
116 inline ListReplaysRequest& WithLimit(int value) {
117 SetLimit(value);
118 return *this;
119 }
121 private:
122 Aws::String m_namePrefix;
123
125
126 Aws::String m_eventSourceArn;
127
128 Aws::String m_nextToken;
129
130 int m_limit{0};
131 bool m_namePrefixHasBeenSet = false;
132 bool m_stateHasBeenSet = false;
133 bool m_eventSourceArnHasBeenSet = false;
134 bool m_nextTokenHasBeenSet = false;
135 bool m_limitHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace CloudWatchEvents
140} // namespace Aws
ListReplaysRequest & WithEventSourceArn(EventSourceArnT &&value)
ListReplaysRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
ListReplaysRequest & WithState(ReplayState value)
ListReplaysRequest & WithNamePrefix(NamePrefixT &&value)
AWS_CLOUDWATCHEVENTS_API ListReplaysRequest()=default
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String