AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ListExecutionsResult.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/ListedExecution.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Transfer {
25namespace Model {
27 public:
28 AWS_TRANSFER_API ListExecutionsResult() = default;
31
33
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
45 ListExecutionsResult& WithNextToken(NextTokenT&& value) {
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
56 template <typename WorkflowIdT = Aws::String>
57 void SetWorkflowId(WorkflowIdT&& value) {
58 m_workflowIdHasBeenSet = true;
59 m_workflowId = std::forward<WorkflowIdT>(value);
60 }
61 template <typename WorkflowIdT = Aws::String>
62 ListExecutionsResult& WithWorkflowId(WorkflowIdT&& value) {
63 SetWorkflowId(std::forward<WorkflowIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::Vector<ListedExecution>& GetExecutions() const { return m_executions; }
74 template <typename ExecutionsT = Aws::Vector<ListedExecution>>
75 void SetExecutions(ExecutionsT&& value) {
76 m_executionsHasBeenSet = true;
77 m_executions = std::forward<ExecutionsT>(value);
78 }
79 template <typename ExecutionsT = Aws::Vector<ListedExecution>>
80 ListExecutionsResult& WithExecutions(ExecutionsT&& value) {
81 SetExecutions(std::forward<ExecutionsT>(value));
82 return *this;
83 }
84 template <typename ExecutionsT = ListedExecution>
85 ListExecutionsResult& AddExecutions(ExecutionsT&& value) {
86 m_executionsHasBeenSet = true;
87 m_executions.emplace_back(std::forward<ExecutionsT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
101 ListExecutionsResult& WithRequestId(RequestIdT&& value) {
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 Aws::String m_nextToken;
110
111 Aws::String m_workflowId;
112
113 Aws::Vector<ListedExecution> m_executions;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_workflowIdHasBeenSet = false;
119 bool m_executionsHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Transfer
125} // namespace Aws
ListExecutionsResult & WithWorkflowId(WorkflowIdT &&value)
AWS_TRANSFER_API ListExecutionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListExecutionsResult & WithRequestId(RequestIdT &&value)
ListExecutionsResult & WithNextToken(NextTokenT &&value)
AWS_TRANSFER_API ListExecutionsResult()=default
const Aws::Vector< ListedExecution > & GetExecutions() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListExecutionsResult & WithExecutions(ExecutionsT &&value)
ListExecutionsResult & AddExecutions(ExecutionsT &&value)
AWS_TRANSFER_API ListExecutionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue