AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListRulesRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/RulePublishStatus.h>
11#include <aws/connect/model/EventSourceName.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace Connect
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CONNECT_API ListRulesRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListRules"; }
37
38 AWS_CONNECT_API Aws::String SerializePayload() const override;
39
40 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
50 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
51 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
53 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
54 inline ListRulesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
55 inline ListRulesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
56 inline ListRulesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
58
60
63 inline const RulePublishStatus& GetPublishStatus() const{ return m_publishStatus; }
64 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
65 inline void SetPublishStatus(const RulePublishStatus& value) { m_publishStatusHasBeenSet = true; m_publishStatus = value; }
66 inline void SetPublishStatus(RulePublishStatus&& value) { m_publishStatusHasBeenSet = true; m_publishStatus = std::move(value); }
67 inline ListRulesRequest& WithPublishStatus(const RulePublishStatus& value) { SetPublishStatus(value); return *this;}
68 inline ListRulesRequest& WithPublishStatus(RulePublishStatus&& value) { SetPublishStatus(std::move(value)); return *this;}
70
72
75 inline const EventSourceName& GetEventSourceName() const{ return m_eventSourceName; }
76 inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
77 inline void SetEventSourceName(const EventSourceName& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
78 inline void SetEventSourceName(EventSourceName&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); }
79 inline ListRulesRequest& WithEventSourceName(const EventSourceName& value) { SetEventSourceName(value); return *this;}
80 inline ListRulesRequest& WithEventSourceName(EventSourceName&& value) { SetEventSourceName(std::move(value)); return *this;}
82
84
87 inline int GetMaxResults() const{ return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline ListRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
98 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 inline ListRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 inline ListRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
105 inline ListRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107 private:
108
109 Aws::String m_instanceId;
110 bool m_instanceIdHasBeenSet = false;
111
112 RulePublishStatus m_publishStatus;
113 bool m_publishStatusHasBeenSet = false;
114
115 EventSourceName m_eventSourceName;
116 bool m_eventSourceNameHasBeenSet = false;
117
118 int m_maxResults;
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Connect
127} // namespace Aws
void SetEventSourceName(EventSourceName &&value)
ListRulesRequest & WithPublishStatus(RulePublishStatus &&value)
ListRulesRequest & WithInstanceId(const char *value)
ListRulesRequest & WithNextToken(Aws::String &&value)
ListRulesRequest & WithPublishStatus(const RulePublishStatus &value)
void SetNextToken(const Aws::String &value)
const EventSourceName & GetEventSourceName() const
const Aws::String & GetInstanceId() const
ListRulesRequest & WithInstanceId(Aws::String &&value)
ListRulesRequest & WithEventSourceName(EventSourceName &&value)
ListRulesRequest & WithEventSourceName(const EventSourceName &value)
const RulePublishStatus & GetPublishStatus() const
void SetInstanceId(Aws::String &&value)
const Aws::String & GetNextToken() const
void SetInstanceId(const Aws::String &value)
ListRulesRequest & WithMaxResults(int value)
void SetEventSourceName(const EventSourceName &value)
ListRulesRequest & WithNextToken(const Aws::String &value)
void SetNextToken(Aws::String &&value)
void SetPublishStatus(RulePublishStatus &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListRulesRequest & WithNextToken(const char *value)
ListRulesRequest & WithInstanceId(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetPublishStatus(const RulePublishStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String