AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/EventBridgeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/model/ConnectionState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EventBridge
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EVENTBRIDGE_API ListConnectionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListConnections"; }
32
33 AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override;
34
35 AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
44 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
45 template<typename NamePrefixT = Aws::String>
46 void SetNamePrefix(NamePrefixT&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::forward<NamePrefixT>(value); }
47 template<typename NamePrefixT = Aws::String>
48 ListConnectionsRequest& WithNamePrefix(NamePrefixT&& value) { SetNamePrefix(std::forward<NamePrefixT>(value)); return *this;}
50
52
55 inline ConnectionState GetConnectionState() const { return m_connectionState; }
56 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
57 inline void SetConnectionState(ConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
60
62
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template<typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
74 template<typename NextTokenT = Aws::String>
75 ListConnectionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
77
79
82 inline int GetLimit() const { return m_limit; }
83 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
84 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
85 inline ListConnectionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
87 private:
88
89 Aws::String m_namePrefix;
90 bool m_namePrefixHasBeenSet = false;
91
93 bool m_connectionStateHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 int m_limit{0};
99 bool m_limitHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EventBridge
104} // 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