AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TerminateServiceJobRequest.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
20 public:
21 AWS_BATCH_API TerminateServiceJobRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "TerminateServiceJob"; }
28
29 AWS_BATCH_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetJobId() const { return m_jobId; }
36 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
37 template <typename JobIdT = Aws::String>
38 void SetJobId(JobIdT&& value) {
39 m_jobIdHasBeenSet = true;
40 m_jobId = std::forward<JobIdT>(value);
41 }
42 template <typename JobIdT = Aws::String>
44 SetJobId(std::forward<JobIdT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetReason() const { return m_reason; }
56 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
57 template <typename ReasonT = Aws::String>
58 void SetReason(ReasonT&& value) {
59 m_reasonHasBeenSet = true;
60 m_reason = std::forward<ReasonT>(value);
61 }
62 template <typename ReasonT = Aws::String>
64 SetReason(std::forward<ReasonT>(value));
65 return *this;
66 }
68 private:
69 Aws::String m_jobId;
70
71 Aws::String m_reason;
72 bool m_jobIdHasBeenSet = false;
73 bool m_reasonHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Batch
78} // namespace Aws
TerminateServiceJobRequest & WithReason(ReasonT &&value)
AWS_BATCH_API TerminateServiceJobRequest()=default
AWS_BATCH_API Aws::String SerializePayload() const override
TerminateServiceJobRequest & WithJobId(JobIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String