AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListConnectionsRequest.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#include <aws/eventbridge/model/ConnectionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EventBridge {
16namespace Model {
17
21 public:
22 AWS_EVENTBRIDGE_API ListConnectionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListConnections"; }
29
30 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
31
32 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
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 ListConnectionsRequest& WithNamePrefix(NamePrefixT&& value) {
48 SetNamePrefix(std::forward<NamePrefixT>(value));
49 return *this;
50 }
52
54
57 inline ConnectionState GetConnectionState() const { return m_connectionState; }
58 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
60 m_connectionStateHasBeenSet = true;
61 m_connectionState = value;
62 }
64 SetConnectionState(value);
65 return *this;
66 }
68
70
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
96 inline int GetLimit() const { return m_limit; }
97 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
98 inline void SetLimit(int value) {
99 m_limitHasBeenSet = true;
100 m_limit = value;
101 }
103 SetLimit(value);
104 return *this;
105 }
107 private:
108 Aws::String m_namePrefix;
109
110 ConnectionState m_connectionState{ConnectionState::NOT_SET};
111
112 Aws::String m_nextToken;
113
114 int m_limit{0};
115 bool m_namePrefixHasBeenSet = false;
116 bool m_connectionStateHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_limitHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace EventBridge
123} // namespace Aws
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
ListConnectionsRequest & WithNamePrefix(NamePrefixT &&value)
AWS_EVENTBRIDGE_API ListConnectionsRequest()=default
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
ListConnectionsRequest & WithConnectionState(ConnectionState value)
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