AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListWorkflowsRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/CodeCatalystRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecatalyst/model/WorkflowSortCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace CodeCatalyst
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CODECATALYST_API ListWorkflowsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListWorkflows"; }
37
38 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
39
40 AWS_CODECATALYST_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
48 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
49 template<typename SpaceNameT = Aws::String>
50 void SetSpaceName(SpaceNameT&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::forward<SpaceNameT>(value); }
51 template<typename SpaceNameT = Aws::String>
52 ListWorkflowsRequest& WithSpaceName(SpaceNameT&& value) { SetSpaceName(std::forward<SpaceNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetProjectName() const { return m_projectName; }
60 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
61 template<typename ProjectNameT = Aws::String>
62 void SetProjectName(ProjectNameT&& value) { m_projectNameHasBeenSet = true; m_projectName = std::forward<ProjectNameT>(value); }
63 template<typename ProjectNameT = Aws::String>
64 ListWorkflowsRequest& WithProjectName(ProjectNameT&& value) { SetProjectName(std::forward<ProjectNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetNextToken() const { return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 template<typename NextTokenT = Aws::String>
75 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
76 template<typename NextTokenT = Aws::String>
77 ListWorkflowsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
79
81
87 inline int GetMaxResults() const { return m_maxResults; }
88 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
90 inline ListWorkflowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
92
94
97 inline const Aws::Vector<WorkflowSortCriteria>& GetSortBy() const { return m_sortBy; }
98 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
99 template<typename SortByT = Aws::Vector<WorkflowSortCriteria>>
100 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
101 template<typename SortByT = Aws::Vector<WorkflowSortCriteria>>
102 ListWorkflowsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
103 template<typename SortByT = WorkflowSortCriteria>
104 ListWorkflowsRequest& AddSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy.emplace_back(std::forward<SortByT>(value)); return *this; }
106 private:
107
108 Aws::String m_spaceName;
109 bool m_spaceNameHasBeenSet = false;
110
111 Aws::String m_projectName;
112 bool m_projectNameHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 int m_maxResults{0};
118 bool m_maxResultsHasBeenSet = false;
119
121 bool m_sortByHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CodeCatalyst
126} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CODECATALYST_API Aws::String SerializePayload() const override
ListWorkflowsRequest & WithNextToken(NextTokenT &&value)
ListWorkflowsRequest & WithMaxResults(int value)
const Aws::Vector< WorkflowSortCriteria > & GetSortBy() const
AWS_CODECATALYST_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListWorkflowsRequest & AddSortBy(SortByT &&value)
ListWorkflowsRequest & WithProjectName(ProjectNameT &&value)
ListWorkflowsRequest & WithSpaceName(SpaceNameT &&value)
AWS_CODECATALYST_API ListWorkflowsRequest()=default
ListWorkflowsRequest & WithSortBy(SortByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector