AWS SDK for C++  1.8.129
AWS SDK for C++
ListRulesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EventBridge
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
41 
45  inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
46 
50  inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
51 
55  inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
56 
60  inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
61 
65  inline ListRulesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
66 
70  inline ListRulesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
71 
75  inline ListRulesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
76 
77 
82  inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
83 
88  inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
89 
94  inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
95 
100  inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
101 
106  inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
107 
112  inline ListRulesRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
113 
118  inline ListRulesRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
119 
124  inline ListRulesRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
125 
126 
131  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
132 
137  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 
143  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
144 
149  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
155  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
156 
161  inline ListRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
162 
167  inline ListRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
168 
173  inline ListRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
174 
175 
179  inline int GetLimit() const{ return m_limit; }
180 
184  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
185 
189  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
190 
194  inline ListRulesRequest& WithLimit(int value) { SetLimit(value); return *this;}
195 
196  private:
197 
198  Aws::String m_namePrefix;
199  bool m_namePrefixHasBeenSet;
200 
201  Aws::String m_eventBusName;
202  bool m_eventBusNameHasBeenSet;
203 
204  Aws::String m_nextToken;
205  bool m_nextTokenHasBeenSet;
206 
207  int m_limit;
208  bool m_limitHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace EventBridge
213 } // namespace Aws
Aws::EventBridge::Model::ListRulesRequest::SetEventBusName
void SetEventBusName(const char *value)
Definition: ListRulesRequest.h:106
Aws::EventBridge::Model::ListRulesRequest::GetEventBusName
const Aws::String & GetEventBusName() const
Definition: ListRulesRequest.h:82
EventBridgeRequest.h
Aws::EventBridge::Model::ListRulesRequest
Definition: ListRulesRequest.h:22
Aws::EventBridge::Model::ListRulesRequest::NamePrefixHasBeenSet
bool NamePrefixHasBeenSet() const
Definition: ListRulesRequest.h:45
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EventBridge::Model::ListRulesRequest::WithLimit
ListRulesRequest & WithLimit(int value)
Definition: ListRulesRequest.h:194
Aws::EventBridge::Model::ListRulesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EventBridge::Model::ListRulesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRulesRequest.h:131
Aws::EventBridge::Model::ListRulesRequest::WithNamePrefix
ListRulesRequest & WithNamePrefix(const char *value)
Definition: ListRulesRequest.h:75
AWS_EVENTBRIDGE_API
#define AWS_EVENTBRIDGE_API
Definition: EventBridge_EXPORTS.h:28
Aws::EventBridge::Model::ListRulesRequest::SetEventBusName
void SetEventBusName(const Aws::String &value)
Definition: ListRulesRequest.h:94
Aws::EventBridge::Model::ListRulesRequest::SetNamePrefix
void SetNamePrefix(const Aws::String &value)
Definition: ListRulesRequest.h:50
Aws::EventBridge::Model::ListRulesRequest::SetNamePrefix
void SetNamePrefix(Aws::String &&value)
Definition: ListRulesRequest.h:55
Aws::EventBridge::Model::ListRulesRequest::EventBusNameHasBeenSet
bool EventBusNameHasBeenSet() const
Definition: ListRulesRequest.h:88
Aws::EventBridge::Model::ListRulesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRulesRequest.h:149
Aws::EventBridge::Model::ListRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EventBridge::Model::ListRulesRequest::WithEventBusName
ListRulesRequest & WithEventBusName(const char *value)
Definition: ListRulesRequest.h:124
Aws::EventBridge::Model::ListRulesRequest::WithEventBusName
ListRulesRequest & WithEventBusName(Aws::String &&value)
Definition: ListRulesRequest.h:118
Aws::EventBridge::Model::ListRulesRequest::WithNamePrefix
ListRulesRequest & WithNamePrefix(const Aws::String &value)
Definition: ListRulesRequest.h:65
Aws::EventBridge::Model::ListRulesRequest::ListRulesRequest
ListRulesRequest()
Aws::EventBridge::Model::ListRulesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRulesRequest.h:143
AWSString.h
Aws::EventBridge::Model::ListRulesRequest::WithNextToken
ListRulesRequest & WithNextToken(const char *value)
Definition: ListRulesRequest.h:173
Aws::EventBridge::Model::ListRulesRequest::WithNextToken
ListRulesRequest & WithNextToken(Aws::String &&value)
Definition: ListRulesRequest.h:167
Aws::EventBridge::Model::ListRulesRequest::WithEventBusName
ListRulesRequest & WithEventBusName(const Aws::String &value)
Definition: ListRulesRequest.h:112
Aws::EventBridge::Model::ListRulesRequest::GetLimit
int GetLimit() const
Definition: ListRulesRequest.h:179
Aws::EventBridge::Model::ListRulesRequest::WithNamePrefix
ListRulesRequest & WithNamePrefix(Aws::String &&value)
Definition: ListRulesRequest.h:70
Aws::EventBridge::Model::ListRulesRequest::GetNamePrefix
const Aws::String & GetNamePrefix() const
Definition: ListRulesRequest.h:40
EventBridge_EXPORTS.h
Aws::EventBridge::EventBridgeRequest
Definition: EventBridgeRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EventBridge::Model::ListRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRulesRequest.h:30
Aws::EventBridge::Model::ListRulesRequest::SetLimit
void SetLimit(int value)
Definition: ListRulesRequest.h:189
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EventBridge::Model::ListRulesRequest::SetNamePrefix
void SetNamePrefix(const char *value)
Definition: ListRulesRequest.h:60
Aws::EventBridge::Model::ListRulesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRulesRequest.h:155
Aws::EventBridge::Model::ListRulesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRulesRequest.h:137
Aws::EventBridge::Model::ListRulesRequest::SetEventBusName
void SetEventBusName(Aws::String &&value)
Definition: ListRulesRequest.h:100
Aws::EventBridge::Model::ListRulesRequest::WithNextToken
ListRulesRequest & WithNextToken(const Aws::String &value)
Definition: ListRulesRequest.h:161
Aws::EventBridge::Model::ListRulesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListRulesRequest.h:184