AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListRulesRequest.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
11#include <utility>
12
13namespace Aws {
14namespace CloudWatchEvents {
15namespace Model {
16
20 public:
21 AWS_CLOUDWATCHEVENTS_API ListRulesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
28
29 AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
30
31 AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
38 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
39 template <typename NamePrefixT = Aws::String>
40 void SetNamePrefix(NamePrefixT&& value) {
41 m_namePrefixHasBeenSet = true;
42 m_namePrefix = std::forward<NamePrefixT>(value);
43 }
44 template <typename NamePrefixT = Aws::String>
45 ListRulesRequest& WithNamePrefix(NamePrefixT&& value) {
46 SetNamePrefix(std::forward<NamePrefixT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetEventBusName() const { return m_eventBusName; }
57 inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
58 template <typename EventBusNameT = Aws::String>
59 void SetEventBusName(EventBusNameT&& value) {
60 m_eventBusNameHasBeenSet = true;
61 m_eventBusName = std::forward<EventBusNameT>(value);
62 }
63 template <typename EventBusNameT = Aws::String>
64 ListRulesRequest& WithEventBusName(EventBusNameT&& value) {
65 SetEventBusName(std::forward<EventBusNameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 ListRulesRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
93 inline int GetLimit() const { return m_limit; }
94 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
95 inline void SetLimit(int value) {
96 m_limitHasBeenSet = true;
97 m_limit = value;
98 }
99 inline ListRulesRequest& WithLimit(int value) {
100 SetLimit(value);
101 return *this;
102 }
104 private:
105 Aws::String m_namePrefix;
106
107 Aws::String m_eventBusName;
108
109 Aws::String m_nextToken;
110
111 int m_limit{0};
112 bool m_namePrefixHasBeenSet = false;
113 bool m_eventBusNameHasBeenSet = false;
114 bool m_nextTokenHasBeenSet = false;
115 bool m_limitHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace CloudWatchEvents
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListRulesRequest & WithNamePrefix(NamePrefixT &&value)
AWS_CLOUDWATCHEVENTS_API ListRulesRequest()=default
ListRulesRequest & WithEventBusName(EventBusNameT &&value)
ListRulesRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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