AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListPipesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pipes/PipesRequest.h>
9#include <aws/pipes/Pipes_EXPORTS.h>
10#include <aws/pipes/model/PipeState.h>
11#include <aws/pipes/model/RequestedPipeState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace Pipes {
20namespace Model {
21
25 public:
26 AWS_PIPES_API ListPipesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListPipes"; }
33
34 AWS_PIPES_API Aws::String SerializePayload() const override;
35
36 AWS_PIPES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
44 inline const Aws::String& GetNamePrefix() const { return m_namePrefix; }
45 inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
46 template <typename NamePrefixT = Aws::String>
47 void SetNamePrefix(NamePrefixT&& value) {
48 m_namePrefixHasBeenSet = true;
49 m_namePrefix = std::forward<NamePrefixT>(value);
50 }
51 template <typename NamePrefixT = Aws::String>
52 ListPipesRequest& WithNamePrefix(NamePrefixT&& value) {
53 SetNamePrefix(std::forward<NamePrefixT>(value));
54 return *this;
55 }
57
59
62 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
63 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
65 m_desiredStateHasBeenSet = true;
66 m_desiredState = value;
67 }
69 SetDesiredState(value);
70 return *this;
71 }
73
75
78 inline PipeState GetCurrentState() const { return m_currentState; }
79 inline bool CurrentStateHasBeenSet() const { return m_currentStateHasBeenSet; }
80 inline void SetCurrentState(PipeState value) {
81 m_currentStateHasBeenSet = true;
82 m_currentState = value;
83 }
85 SetCurrentState(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetSourcePrefix() const { return m_sourcePrefix; }
95 inline bool SourcePrefixHasBeenSet() const { return m_sourcePrefixHasBeenSet; }
96 template <typename SourcePrefixT = Aws::String>
97 void SetSourcePrefix(SourcePrefixT&& value) {
98 m_sourcePrefixHasBeenSet = true;
99 m_sourcePrefix = std::forward<SourcePrefixT>(value);
100 }
101 template <typename SourcePrefixT = Aws::String>
102 ListPipesRequest& WithSourcePrefix(SourcePrefixT&& value) {
103 SetSourcePrefix(std::forward<SourcePrefixT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetTargetPrefix() const { return m_targetPrefix; }
113 inline bool TargetPrefixHasBeenSet() const { return m_targetPrefixHasBeenSet; }
114 template <typename TargetPrefixT = Aws::String>
115 void SetTargetPrefix(TargetPrefixT&& value) {
116 m_targetPrefixHasBeenSet = true;
117 m_targetPrefix = std::forward<TargetPrefixT>(value);
118 }
119 template <typename TargetPrefixT = Aws::String>
120 ListPipesRequest& WithTargetPrefix(TargetPrefixT&& value) {
121 SetTargetPrefix(std::forward<TargetPrefixT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 template <typename NextTokenT = Aws::String>
137 void SetNextToken(NextTokenT&& value) {
138 m_nextTokenHasBeenSet = true;
139 m_nextToken = std::forward<NextTokenT>(value);
140 }
141 template <typename NextTokenT = Aws::String>
142 ListPipesRequest& WithNextToken(NextTokenT&& value) {
143 SetNextToken(std::forward<NextTokenT>(value));
144 return *this;
145 }
147
149
152 inline int GetLimit() const { return m_limit; }
153 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
154 inline void SetLimit(int value) {
155 m_limitHasBeenSet = true;
156 m_limit = value;
157 }
158 inline ListPipesRequest& WithLimit(int value) {
159 SetLimit(value);
160 return *this;
161 }
163 private:
164 Aws::String m_namePrefix;
165
167
168 PipeState m_currentState{PipeState::NOT_SET};
169
170 Aws::String m_sourcePrefix;
171
172 Aws::String m_targetPrefix;
173
174 Aws::String m_nextToken;
175
176 int m_limit{0};
177 bool m_namePrefixHasBeenSet = false;
178 bool m_desiredStateHasBeenSet = false;
179 bool m_currentStateHasBeenSet = false;
180 bool m_sourcePrefixHasBeenSet = false;
181 bool m_targetPrefixHasBeenSet = false;
182 bool m_nextTokenHasBeenSet = false;
183 bool m_limitHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace Pipes
188} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetTargetPrefix(TargetPrefixT &&value)
const Aws::String & GetNextToken() const
void SetNextToken(NextTokenT &&value)
ListPipesRequest & WithCurrentState(PipeState value)
RequestedPipeState GetDesiredState() const
ListPipesRequest & WithNextToken(NextTokenT &&value)
ListPipesRequest & WithNamePrefix(NamePrefixT &&value)
ListPipesRequest & WithSourcePrefix(SourcePrefixT &&value)
const Aws::String & GetTargetPrefix() const
ListPipesRequest & WithDesiredState(RequestedPipeState value)
ListPipesRequest & WithLimit(int value)
const Aws::String & GetSourcePrefix() const
void SetSourcePrefix(SourcePrefixT &&value)
AWS_PIPES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetNamePrefix(NamePrefixT &&value)
void SetDesiredState(RequestedPipeState value)
AWS_PIPES_API Aws::String SerializePayload() const override
AWS_PIPES_API ListPipesRequest()=default
const Aws::String & GetNamePrefix() const
ListPipesRequest & WithTargetPrefix(TargetPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String