AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListConnectionsRequest.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnectionsRequest.h>
8#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
9#include <aws/codestar-connections/model/ProviderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeStarconnections {
16namespace Model {
17
21 public:
22 AWS_CODESTARCONNECTIONS_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_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override;
31
32 AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline ProviderType GetProviderTypeFilter() const { return m_providerTypeFilter; }
40 inline bool ProviderTypeFilterHasBeenSet() const { return m_providerTypeFilterHasBeenSet; }
42 m_providerTypeFilterHasBeenSet = true;
43 m_providerTypeFilter = value;
44 }
47 return *this;
48 }
50
52
56 inline const Aws::String& GetHostArnFilter() const { return m_hostArnFilter; }
57 inline bool HostArnFilterHasBeenSet() const { return m_hostArnFilterHasBeenSet; }
58 template <typename HostArnFilterT = Aws::String>
59 void SetHostArnFilter(HostArnFilterT&& value) {
60 m_hostArnFilterHasBeenSet = true;
61 m_hostArnFilter = std::forward<HostArnFilterT>(value);
62 }
63 template <typename HostArnFilterT = Aws::String>
64 ListConnectionsRequest& WithHostArnFilter(HostArnFilterT&& value) {
65 SetHostArnFilter(std::forward<HostArnFilterT>(value));
66 return *this;
67 }
69
71
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
83 SetMaxResults(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 template <typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) {
97 m_nextTokenHasBeenSet = true;
98 m_nextToken = std::forward<NextTokenT>(value);
99 }
100 template <typename NextTokenT = Aws::String>
102 SetNextToken(std::forward<NextTokenT>(value));
103 return *this;
104 }
106 private:
107 ProviderType m_providerTypeFilter{ProviderType::NOT_SET};
108
109 Aws::String m_hostArnFilter;
110
111 int m_maxResults{0};
112
113 Aws::String m_nextToken;
114 bool m_providerTypeFilterHasBeenSet = false;
115 bool m_hostArnFilterHasBeenSet = false;
116 bool m_maxResultsHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CodeStarconnections
122} // namespace Aws
AWS_CODESTARCONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListConnectionsRequest & WithProviderTypeFilter(ProviderType value)
AWS_CODESTARCONNECTIONS_API Aws::String SerializePayload() const override
ListConnectionsRequest & WithHostArnFilter(HostArnFilterT &&value)
AWS_CODESTARCONNECTIONS_API ListConnectionsRequest()=default
ListConnectionsRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String