AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListEndpointsRequest.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 ListEndpointsRequest() = 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 "ListEndpoints"; }
28
29 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
30
31 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
40 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
41 template <typename NamePrefixT = Aws::String>
42 void SetNamePrefix(NamePrefixT&& value) {
43 m_namePrefixHasBeenSet = true;
44 m_namePrefix = std::forward<NamePrefixT>(value);
45 }
46 template <typename NamePrefixT = Aws::String>
47 ListEndpointsRequest& WithNamePrefix(NamePrefixT&& value) {
48 SetNamePrefix(std::forward<NamePrefixT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
59 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
60 template <typename HomeRegionT = Aws::String>
61 void SetHomeRegion(HomeRegionT&& value) {
62 m_homeRegionHasBeenSet = true;
63 m_homeRegion = std::forward<HomeRegionT>(value);
64 }
65 template <typename HomeRegionT = Aws::String>
66 ListEndpointsRequest& WithHomeRegion(HomeRegionT&& value) {
67 SetHomeRegion(std::forward<HomeRegionT>(value));
68 return *this;
69 }
71
73
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template <typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) {
85 m_nextTokenHasBeenSet = true;
86 m_nextToken = std::forward<NextTokenT>(value);
87 }
88 template <typename NextTokenT = Aws::String>
89 ListEndpointsRequest& WithNextToken(NextTokenT&& value) {
90 SetNextToken(std::forward<NextTokenT>(value));
91 return *this;
92 }
94
96
99 inline int GetMaxResults() const { return m_maxResults; }
100 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
101 inline void SetMaxResults(int value) {
102 m_maxResultsHasBeenSet = true;
103 m_maxResults = value;
104 }
106 SetMaxResults(value);
107 return *this;
108 }
110 private:
111 Aws::String m_namePrefix;
112
113 Aws::String m_homeRegion;
114
115 Aws::String m_nextToken;
116
117 int m_maxResults{0};
118 bool m_namePrefixHasBeenSet = false;
119 bool m_homeRegionHasBeenSet = false;
120 bool m_nextTokenHasBeenSet = false;
121 bool m_maxResultsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace EventBridge
126} // namespace Aws
AWS_EVENTBRIDGE_API ListEndpointsRequest()=default
ListEndpointsRequest & WithNamePrefix(NamePrefixT &&value)
ListEndpointsRequest & WithHomeRegion(HomeRegionT &&value)
ListEndpointsRequest & WithMaxResults(int value)
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
ListEndpointsRequest & WithNextToken(NextTokenT &&value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String