AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
46 inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
47 inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
48 inline ListConnectionsRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
49 inline ListConnectionsRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
50 inline ListConnectionsRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
52
54
57 inline const ConnectionState& GetConnectionState() const{ return m_connectionState; }
58 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
59 inline void SetConnectionState(const ConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
60 inline void SetConnectionState(ConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); }
62 inline ListConnectionsRequest& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
64
66
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline ListConnectionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline ListConnectionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline ListConnectionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
84 inline int GetLimit() const{ return m_limit; }
85 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
86 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
87 inline ListConnectionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
89 private:
90
91 Aws::String m_namePrefix;
92 bool m_namePrefixHasBeenSet = false;
93
94 ConnectionState m_connectionState;
95 bool m_connectionStateHasBeenSet = false;
96
97 Aws::String m_nextToken;
98 bool m_nextTokenHasBeenSet = false;
99
100 int m_limit;
101 bool m_limitHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace EventBridge
106} // namespace Aws
AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override
ListConnectionsRequest & WithNamePrefix(const Aws::String &value)
ListConnectionsRequest & WithNamePrefix(Aws::String &&value)
ListConnectionsRequest & WithConnectionState(const ConnectionState &value)
ListConnectionsRequest & WithConnectionState(ConnectionState &&value)
void SetConnectionState(const ConnectionState &value)
AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListConnectionsRequest & WithNextToken(Aws::String &&value)
ListConnectionsRequest & WithNextToken(const Aws::String &value)
ListConnectionsRequest & WithNextToken(const char *value)
ListConnectionsRequest & WithNamePrefix(const char *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