AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeJobsRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Batch {
16namespace Model {
17
25 public:
26 AWS_BATCH_API DescribeJobsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeJobs"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::Vector<Aws::String>& GetJobs() const { return m_jobs; }
41 inline bool JobsHasBeenSet() const { return m_jobsHasBeenSet; }
42 template <typename JobsT = Aws::Vector<Aws::String>>
43 void SetJobs(JobsT&& value) {
44 m_jobsHasBeenSet = true;
45 m_jobs = std::forward<JobsT>(value);
46 }
47 template <typename JobsT = Aws::Vector<Aws::String>>
48 DescribeJobsRequest& WithJobs(JobsT&& value) {
49 SetJobs(std::forward<JobsT>(value));
50 return *this;
51 }
52 template <typename JobsT = Aws::String>
53 DescribeJobsRequest& AddJobs(JobsT&& value) {
54 m_jobsHasBeenSet = true;
55 m_jobs.emplace_back(std::forward<JobsT>(value));
56 return *this;
57 }
59 private:
61 bool m_jobsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace Batch
66} // namespace Aws
DescribeJobsRequest & WithJobs(JobsT &&value)
DescribeJobsRequest & AddJobs(JobsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetJobs() const
AWS_BATCH_API DescribeJobsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector