AWS SDK for C++

AWS SDK for C++ Version 1.11.892

Loading...
Searching...
No Matches
TerminateServiceJobsRequest.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 TerminateServiceJobsRequest() = 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 "TerminateServiceJobs"; }
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>>
49 SetJobs(std::forward<JobsT>(value));
50 return *this;
51 }
52 template <typename JobsT = Aws::String>
54 m_jobsHasBeenSet = true;
55 m_jobs.emplace_back(std::forward<JobsT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetReason() const { return m_reason; }
67 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
68 template <typename ReasonT = Aws::String>
69 void SetReason(ReasonT&& value) {
70 m_reasonHasBeenSet = true;
71 m_reason = std::forward<ReasonT>(value);
72 }
73 template <typename ReasonT = Aws::String>
75 SetReason(std::forward<ReasonT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::String m_reason;
83 bool m_jobsHasBeenSet = false;
84 bool m_reasonHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Batch
89} // namespace Aws
AWS_BATCH_API Aws::String SerializePayload() const override
TerminateServiceJobsRequest & AddJobs(JobsT &&value)
TerminateServiceJobsRequest & WithJobs(JobsT &&value)
TerminateServiceJobsRequest & WithReason(ReasonT &&value)
AWS_BATCH_API TerminateServiceJobsRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetJobs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector