AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TerminateJobRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Batch {
15namespace Model {
16
24 public:
25 AWS_BATCH_API TerminateJobRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TerminateJob"; }
32
33 AWS_BATCH_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetJobId() const { return m_jobId; }
40 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
41 template <typename JobIdT = Aws::String>
42 void SetJobId(JobIdT&& value) {
43 m_jobIdHasBeenSet = true;
44 m_jobId = std::forward<JobIdT>(value);
45 }
46 template <typename JobIdT = Aws::String>
47 TerminateJobRequest& WithJobId(JobIdT&& value) {
48 SetJobId(std::forward<JobIdT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetReason() const { return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 template <typename ReasonT = Aws::String>
63 void SetReason(ReasonT&& value) {
64 m_reasonHasBeenSet = true;
65 m_reason = std::forward<ReasonT>(value);
66 }
67 template <typename ReasonT = Aws::String>
68 TerminateJobRequest& WithReason(ReasonT&& value) {
69 SetReason(std::forward<ReasonT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_jobId;
75
76 Aws::String m_reason;
77 bool m_jobIdHasBeenSet = false;
78 bool m_reasonHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Batch
83} // namespace Aws
AWS_BATCH_API TerminateJobRequest()=default
TerminateJobRequest & WithReason(ReasonT &&value)
virtual const char * GetServiceRequestName() const override
TerminateJobRequest & WithJobId(JobIdT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String