AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/nova-act/NovaActRequest.h>
9#include <aws/nova-act/NovaAct_EXPORTS.h>
10#include <aws/nova-act/model/SortOrder.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace NovaAct {
19namespace Model {
20
24 public:
25 AWS_NOVAACT_API ListSessionsRequest() = default;
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 "ListSessions"; }
32
33 AWS_NOVAACT_API Aws::String SerializePayload() const override;
34
35 AWS_NOVAACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetWorkflowDefinitionName() const { return m_workflowDefinitionName; }
42 inline bool WorkflowDefinitionNameHasBeenSet() const { return m_workflowDefinitionNameHasBeenSet; }
43 template <typename WorkflowDefinitionNameT = Aws::String>
44 void SetWorkflowDefinitionName(WorkflowDefinitionNameT&& value) {
45 m_workflowDefinitionNameHasBeenSet = true;
46 m_workflowDefinitionName = std::forward<WorkflowDefinitionNameT>(value);
47 }
48 template <typename WorkflowDefinitionNameT = Aws::String>
49 ListSessionsRequest& WithWorkflowDefinitionName(WorkflowDefinitionNameT&& value) {
50 SetWorkflowDefinitionName(std::forward<WorkflowDefinitionNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetWorkflowRunId() const { return m_workflowRunId; }
60 inline bool WorkflowRunIdHasBeenSet() const { return m_workflowRunIdHasBeenSet; }
61 template <typename WorkflowRunIdT = Aws::String>
62 void SetWorkflowRunId(WorkflowRunIdT&& value) {
63 m_workflowRunIdHasBeenSet = true;
64 m_workflowRunId = std::forward<WorkflowRunIdT>(value);
65 }
66 template <typename WorkflowRunIdT = Aws::String>
67 ListSessionsRequest& WithWorkflowRunId(WorkflowRunIdT&& value) {
68 SetWorkflowRunId(std::forward<WorkflowRunIdT>(value));
69 return *this;
70 }
72
74
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) {
80 m_maxResultsHasBeenSet = true;
81 m_maxResults = value;
82 }
84 SetMaxResults(value);
85 return *this;
86 }
88
90
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>
101 ListSessionsRequest& WithNextToken(NextTokenT&& value) {
102 SetNextToken(std::forward<NextTokenT>(value));
103 return *this;
104 }
106
108
111 inline SortOrder GetSortOrder() const { return m_sortOrder; }
112 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
113 inline void SetSortOrder(SortOrder value) {
114 m_sortOrderHasBeenSet = true;
115 m_sortOrder = value;
116 }
118 SetSortOrder(value);
119 return *this;
120 }
122 private:
123 Aws::String m_workflowDefinitionName;
124
125 Aws::String m_workflowRunId;
126
127 int m_maxResults{0};
128
129 Aws::String m_nextToken;
130
131 SortOrder m_sortOrder{SortOrder::NOT_SET};
132 bool m_workflowDefinitionNameHasBeenSet = false;
133 bool m_workflowRunIdHasBeenSet = false;
134 bool m_maxResultsHasBeenSet = false;
135 bool m_nextTokenHasBeenSet = false;
136 bool m_sortOrderHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace NovaAct
141} // namespace Aws
ListSessionsRequest & WithWorkflowDefinitionName(WorkflowDefinitionNameT &&value)
void SetWorkflowDefinitionName(WorkflowDefinitionNameT &&value)
const Aws::String & GetWorkflowRunId() const
ListSessionsRequest & WithMaxResults(int value)
const Aws::String & GetWorkflowDefinitionName() const
void SetWorkflowRunId(WorkflowRunIdT &&value)
ListSessionsRequest & WithNextToken(NextTokenT &&value)
ListSessionsRequest & WithSortOrder(SortOrder value)
ListSessionsRequest & WithWorkflowRunId(WorkflowRunIdT &&value)
AWS_NOVAACT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_NOVAACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_NOVAACT_API ListSessionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String