AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListRulesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridge {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGE_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_EVENTBRIDGE_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGE_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
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
87 ListRulesRequest& WithNextToken(NextTokenT&& value) {
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
97 inline int GetLimit() const { return m_limit; }
98 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
99 inline void SetLimit(int value) {
100 m_limitHasBeenSet = true;
101 m_limit = value;
102 }
103 inline ListRulesRequest& WithLimit(int value) {
104 SetLimit(value);
105 return *this;
106 }
108 private:
109 Aws::String m_namePrefix;
110
111 Aws::String m_eventBusName;
112
113 Aws::String m_nextToken;
114
115 int m_limit{0};
116 bool m_namePrefixHasBeenSet = false;
117 bool m_eventBusNameHasBeenSet = false;
118 bool m_nextTokenHasBeenSet = false;
119 bool m_limitHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EventBridge
124} // namespace Aws
ListRulesRequest & WithNamePrefix(NamePrefixT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListRulesRequest & WithLimit(int value)
virtual const char * GetServiceRequestName() const override
AWS_EVENTBRIDGE_API ListRulesRequest()=default
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
const Aws::String & GetEventBusName() const
const Aws::String & GetNextToken() const
ListRulesRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetNamePrefix() const
void SetEventBusName(EventBusNameT &&value)
ListRulesRequest & WithEventBusName(EventBusNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String