AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
ListSubscribersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridgev2/EventBridgeV2Request.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace EventBridgeV2 {
15namespace Model {
16
20 public:
21 AWS_EVENTBRIDGEV2_API ListSubscribersRequest() = 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 "ListSubscribers"; }
28
29 AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
36 AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override;
37
39
40 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
41 inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; }
42 template <typename EventBusArnT = Aws::String>
43 void SetEventBusArn(EventBusArnT&& value) {
44 m_eventBusArnHasBeenSet = true;
45 m_eventBusArn = std::forward<EventBusArnT>(value);
46 }
47 template <typename EventBusArnT = Aws::String>
48 ListSubscribersRequest& WithEventBusArn(EventBusArnT&& value) {
49 SetEventBusArn(std::forward<EventBusArnT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
57 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
58 template <typename NamePrefixT = Aws::String>
59 void SetNamePrefix(NamePrefixT&& value) {
60 m_namePrefixHasBeenSet = true;
61 m_namePrefix = std::forward<NamePrefixT>(value);
62 }
63 template <typename NamePrefixT = Aws::String>
64 ListSubscribersRequest& WithNamePrefix(NamePrefixT&& value) {
65 SetNamePrefix(std::forward<NamePrefixT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetNextToken() const { return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 template <typename NextTokenT = Aws::String>
75 void SetNextToken(NextTokenT&& value) {
76 m_nextTokenHasBeenSet = true;
77 m_nextToken = std::forward<NextTokenT>(value);
78 }
79 template <typename NextTokenT = Aws::String>
81 SetNextToken(std::forward<NextTokenT>(value));
82 return *this;
83 }
85
87
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
95 SetMaxResults(value);
96 return *this;
97 }
99 private:
100 Aws::String m_eventBusArn;
101
102 Aws::String m_namePrefix;
103
104 Aws::String m_nextToken;
105
106 int m_maxResults{0};
107 bool m_eventBusArnHasBeenSet = false;
108 bool m_namePrefixHasBeenSet = false;
109 bool m_nextTokenHasBeenSet = false;
110 bool m_maxResultsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EventBridgeV2
115} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
AWS_EVENTBRIDGEV2_API ListSubscribersRequest()=default
AWS_EVENTBRIDGEV2_API Aws::String SerializePayload() const override
ListSubscribersRequest & WithNamePrefix(NamePrefixT &&value)
virtual const char * GetServiceRequestName() const override
AWS_EVENTBRIDGEV2_API EndpointParameters GetEndpointContextParams() const override
AWS_EVENTBRIDGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSubscribersRequest & WithEventBusArn(EventBusArnT &&value)
ListSubscribersRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String