AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; }
50 inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); }
51 inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); }
52 inline ListWorkflowsRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;}
53 inline ListWorkflowsRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;}
54 inline ListWorkflowsRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;}
56
58
61 inline const Aws::String& GetProjectName() const{ return m_projectName; }
62 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
63 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
64 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
65 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
66 inline ListWorkflowsRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
67 inline ListWorkflowsRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
68 inline ListWorkflowsRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
70
72
76 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
79 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
80 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 inline ListWorkflowsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 inline ListWorkflowsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
83 inline ListWorkflowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
85
87
93 inline int GetMaxResults() const{ return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 inline ListWorkflowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98
100
103 inline const Aws::Vector<WorkflowSortCriteria>& GetSortBy() const{ return m_sortBy; }
104 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
105 inline void SetSortBy(const Aws::Vector<WorkflowSortCriteria>& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
106 inline void SetSortBy(Aws::Vector<WorkflowSortCriteria>&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
107 inline ListWorkflowsRequest& WithSortBy(const Aws::Vector<WorkflowSortCriteria>& value) { SetSortBy(value); return *this;}
108 inline ListWorkflowsRequest& WithSortBy(Aws::Vector<WorkflowSortCriteria>&& value) { SetSortBy(std::move(value)); return *this;}
109 inline ListWorkflowsRequest& AddSortBy(const WorkflowSortCriteria& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(value); return *this; }
110 inline ListWorkflowsRequest& AddSortBy(WorkflowSortCriteria&& value) { m_sortByHasBeenSet = true; m_sortBy.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_spaceName;
115 bool m_spaceNameHasBeenSet = false;
116
117 Aws::String m_projectName;
118 bool m_projectNameHasBeenSet = false;
119
120 Aws::String m_nextToken;
121 bool m_nextTokenHasBeenSet = false;
122
123 int m_maxResults;
124 bool m_maxResultsHasBeenSet = false;
125
127 bool m_sortByHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodeCatalyst
132} // namespace Aws
ListWorkflowsRequest & WithNextToken(const char *value)
ListWorkflowsRequest & WithSpaceName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListWorkflowsRequest & AddSortBy(const WorkflowSortCriteria &value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
ListWorkflowsRequest & WithSortBy(Aws::Vector< WorkflowSortCriteria > &&value)
ListWorkflowsRequest & WithSpaceName(const Aws::String &value)
ListWorkflowsRequest & WithSortBy(const Aws::Vector< WorkflowSortCriteria > &value)
ListWorkflowsRequest & WithProjectName(const Aws::String &value)
ListWorkflowsRequest & WithSpaceName(const char *value)
ListWorkflowsRequest & AddSortBy(WorkflowSortCriteria &&value)
ListWorkflowsRequest & WithNextToken(const Aws::String &value)
ListWorkflowsRequest & WithMaxResults(int value)
ListWorkflowsRequest & WithNextToken(Aws::String &&value)
ListWorkflowsRequest & WithProjectName(Aws::String &&value)
const Aws::Vector< WorkflowSortCriteria > & GetSortBy() const
void SetSortBy(Aws::Vector< WorkflowSortCriteria > &&value)
void SetSortBy(const Aws::Vector< WorkflowSortCriteria > &value)
ListWorkflowsRequest & WithProjectName(const char *value)
AWS_CODECATALYST_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector