AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListReplaysRequest.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/events/model/ReplayState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchEvents
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHEVENTS_API ListReplaysRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListReplays"; }
32
33 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
44 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
45 inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
46 inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
47 inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
48 inline ListReplaysRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
49 inline ListReplaysRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
50 inline ListReplaysRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
52
54
57 inline const ReplayState& GetState() const{ return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 inline void SetState(const ReplayState& value) { m_stateHasBeenSet = true; m_state = value; }
60 inline void SetState(ReplayState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 inline ListReplaysRequest& WithState(const ReplayState& value) { SetState(value); return *this;}
62 inline ListReplaysRequest& WithState(ReplayState&& value) { SetState(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
70 inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; }
71 inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; }
72 inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); }
73 inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); }
74 inline ListReplaysRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
75 inline ListReplaysRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
76 inline ListReplaysRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
78
80
84 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
89 inline ListReplaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline ListReplaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline ListReplaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93
95
98 inline int GetLimit() const{ return m_limit; }
99 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
100 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
101 inline ListReplaysRequest& WithLimit(int value) { SetLimit(value); return *this;}
103 private:
104
105 Aws::String m_namePrefix;
106 bool m_namePrefixHasBeenSet = false;
107
108 ReplayState m_state;
109 bool m_stateHasBeenSet = false;
110
111 Aws::String m_eventSourceArn;
112 bool m_eventSourceArnHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_limit;
118 bool m_limitHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudWatchEvents
123} // namespace Aws
ListReplaysRequest & WithNextToken(Aws::String &&value)
ListReplaysRequest & WithEventSourceArn(const Aws::String &value)
ListReplaysRequest & WithNextToken(const Aws::String &value)
ListReplaysRequest & WithNamePrefix(Aws::String &&value)
ListReplaysRequest & WithEventSourceArn(Aws::String &&value)
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListReplaysRequest & WithNextToken(const char *value)
ListReplaysRequest & WithState(ReplayState &&value)
ListReplaysRequest & WithNamePrefix(const Aws::String &value)
ListReplaysRequest & WithNamePrefix(const char *value)
ListReplaysRequest & WithEventSourceArn(const char *value)
ListReplaysRequest & WithState(const ReplayState &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String