AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DescribeJobsResult.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/JobDetail.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 Batch {
25namespace Model {
27 public:
28 AWS_BATCH_API DescribeJobsResult() = default;
31
33
36 inline const Aws::Vector<JobDetail>& GetJobs() const { return m_jobs; }
37 template <typename JobsT = Aws::Vector<JobDetail>>
38 void SetJobs(JobsT&& value) {
39 m_jobsHasBeenSet = true;
40 m_jobs = std::forward<JobsT>(value);
41 }
42 template <typename JobsT = Aws::Vector<JobDetail>>
43 DescribeJobsResult& WithJobs(JobsT&& value) {
44 SetJobs(std::forward<JobsT>(value));
45 return *this;
46 }
47 template <typename JobsT = JobDetail>
48 DescribeJobsResult& AddJobs(JobsT&& value) {
49 m_jobsHasBeenSet = true;
50 m_jobs.emplace_back(std::forward<JobsT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetRequestId() const { return m_requestId; }
58 template <typename RequestIdT = Aws::String>
59 void SetRequestId(RequestIdT&& value) {
60 m_requestIdHasBeenSet = true;
61 m_requestId = std::forward<RequestIdT>(value);
62 }
63 template <typename RequestIdT = Aws::String>
64 DescribeJobsResult& WithRequestId(RequestIdT&& value) {
65 SetRequestId(std::forward<RequestIdT>(value));
66 return *this;
67 }
69 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
70
71 private:
73
74 Aws::String m_requestId;
75 Aws::Http::HttpResponseCode m_HttpResponseCode;
76 bool m_jobsHasBeenSet = false;
77 bool m_requestIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Batch
82} // namespace Aws
AWS_BATCH_API DescribeJobsResult()=default
DescribeJobsResult & WithJobs(JobsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_BATCH_API DescribeJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
DescribeJobsResult & WithRequestId(RequestIdT &&value)
AWS_BATCH_API DescribeJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< JobDetail > & GetJobs() const
DescribeJobsResult & AddJobs(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