AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
TerminateServiceJobsResult.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/TerminateServiceJobsErrorDetail.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 {
34 public:
35 AWS_BATCH_API TerminateServiceJobsResult() = default;
38
40
43 inline const Aws::Vector<Aws::String>& GetSuccessful() const { return m_successful; }
44 template <typename SuccessfulT = Aws::Vector<Aws::String>>
45 void SetSuccessful(SuccessfulT&& value) {
46 m_successfulHasBeenSet = true;
47 m_successful = std::forward<SuccessfulT>(value);
48 }
49 template <typename SuccessfulT = Aws::Vector<Aws::String>>
51 SetSuccessful(std::forward<SuccessfulT>(value));
52 return *this;
53 }
54 template <typename SuccessfulT = Aws::String>
56 m_successfulHasBeenSet = true;
57 m_successful.emplace_back(std::forward<SuccessfulT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::Vector<TerminateServiceJobsErrorDetail>& GetErrors() const { return m_errors; }
70 template <typename ErrorsT = Aws::Vector<TerminateServiceJobsErrorDetail>>
71 void SetErrors(ErrorsT&& value) {
72 m_errorsHasBeenSet = true;
73 m_errors = std::forward<ErrorsT>(value);
74 }
75 template <typename ErrorsT = Aws::Vector<TerminateServiceJobsErrorDetail>>
77 SetErrors(std::forward<ErrorsT>(value));
78 return *this;
79 }
80 template <typename ErrorsT = TerminateServiceJobsErrorDetail>
82 m_errorsHasBeenSet = true;
83 m_errors.emplace_back(std::forward<ErrorsT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::Vector<Aws::String> m_successful;
106
108
109 Aws::String m_requestId;
110 Aws::Http::HttpResponseCode m_HttpResponseCode;
111 bool m_successfulHasBeenSet = false;
112 bool m_errorsHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Batch
118} // namespace Aws
AWS_BATCH_API TerminateServiceJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
TerminateServiceJobsResult & WithSuccessful(SuccessfulT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< TerminateServiceJobsErrorDetail > & GetErrors() const
TerminateServiceJobsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetSuccessful() const
AWS_BATCH_API TerminateServiceJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BATCH_API TerminateServiceJobsResult()=default
TerminateServiceJobsResult & AddErrors(ErrorsT &&value)
TerminateServiceJobsResult & AddSuccessful(SuccessfulT &&value)
TerminateServiceJobsResult & WithErrors(ErrorsT &&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