AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
SearchJobsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/JobSearchSummary.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 deadline {
25namespace Model {
27 public:
28 AWS_DEADLINE_API SearchJobsResult() = default;
31
33
36 inline const Aws::Vector<JobSearchSummary>& GetJobs() const { return m_jobs; }
37 template <typename JobsT = Aws::Vector<JobSearchSummary>>
38 void SetJobs(JobsT&& value) {
39 m_jobsHasBeenSet = true;
40 m_jobs = std::forward<JobsT>(value);
41 }
42 template <typename JobsT = Aws::Vector<JobSearchSummary>>
43 SearchJobsResult& WithJobs(JobsT&& value) {
44 SetJobs(std::forward<JobsT>(value));
45 return *this;
46 }
47 template <typename JobsT = JobSearchSummary>
48 SearchJobsResult& AddJobs(JobsT&& value) {
49 m_jobsHasBeenSet = true;
50 m_jobs.emplace_back(std::forward<JobsT>(value));
51 return *this;
52 }
54
56
59 inline int GetNextItemOffset() const { return m_nextItemOffset; }
60 inline void SetNextItemOffset(int value) {
61 m_nextItemOffsetHasBeenSet = true;
62 m_nextItemOffset = value;
63 }
65 SetNextItemOffset(value);
66 return *this;
67 }
69
71
74 inline int GetTotalResults() const { return m_totalResults; }
75 inline void SetTotalResults(int value) {
76 m_totalResultsHasBeenSet = true;
77 m_totalResults = value;
78 }
80 SetTotalResults(value);
81 return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
94 SearchJobsResult& WithRequestId(RequestIdT&& value) {
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
103
104 int m_nextItemOffset{0};
105
106 int m_totalResults{0};
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_jobsHasBeenSet = false;
111 bool m_nextItemOffsetHasBeenSet = false;
112 bool m_totalResultsHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace deadline
118} // namespace Aws
const Aws::String & GetRequestId() const
AWS_DEADLINE_API SearchJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchJobsResult & WithTotalResults(int value)
AWS_DEADLINE_API SearchJobsResult()=default
SearchJobsResult & WithNextItemOffset(int value)
SearchJobsResult & AddJobs(JobsT &&value)
const Aws::Vector< JobSearchSummary > & GetJobs() const
AWS_DEADLINE_API SearchJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchJobsResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
SearchJobsResult & WithJobs(JobsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue