AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/events/CloudWatchEventsRequest.h>
9#include <aws/events/CloudWatchEvents_EXPORTS.h>
10#include <aws/events/model/ConnectionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchEvents {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHEVENTS_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_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHEVENTS_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
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
92 inline int GetLimit() const { return m_limit; }
93 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
94 inline void SetLimit(int value) {
95 m_limitHasBeenSet = true;
96 m_limit = value;
97 }
98 inline ListConnectionsRequest& WithLimit(int value) {
99 SetLimit(value);
100 return *this;
101 }
103 private:
104 Aws::String m_namePrefix;
105
106 ConnectionState m_connectionState{ConnectionState::NOT_SET};
107
108 Aws::String m_nextToken;
109
110 int m_limit{0};
111 bool m_namePrefixHasBeenSet = false;
112 bool m_connectionStateHasBeenSet = false;
113 bool m_nextTokenHasBeenSet = false;
114 bool m_limitHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CloudWatchEvents
119} // namespace Aws
ListConnectionsRequest & WithNamePrefix(NamePrefixT &&value)
ListConnectionsRequest & WithConnectionState(ConnectionState value)
AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHEVENTS_API ListConnectionsRequest()=default
AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String