AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchStopJobRunResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/BatchStopJobRunError.h>
12#include <aws/glue/model/BatchStopJobRunSuccessfulSubmission.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
28 public:
29 AWS_GLUE_API BatchStopJobRunResult() = default;
32
34
37 inline const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& GetSuccessfulSubmissions() const { return m_successfulSubmissions; }
38 template <typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
39 void SetSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
40 m_successfulSubmissionsHasBeenSet = true;
41 m_successfulSubmissions = std::forward<SuccessfulSubmissionsT>(value);
42 }
43 template <typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
44 BatchStopJobRunResult& WithSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
45 SetSuccessfulSubmissions(std::forward<SuccessfulSubmissionsT>(value));
46 return *this;
47 }
48 template <typename SuccessfulSubmissionsT = BatchStopJobRunSuccessfulSubmission>
49 BatchStopJobRunResult& AddSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
50 m_successfulSubmissionsHasBeenSet = true;
51 m_successfulSubmissions.emplace_back(std::forward<SuccessfulSubmissionsT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<BatchStopJobRunError>& GetErrors() const { return m_errors; }
63 template <typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = BatchStopJobRunError>
74 BatchStopJobRunResult& AddErrors(ErrorsT&& value) {
75 m_errorsHasBeenSet = true;
76 m_errors.emplace_back(std::forward<ErrorsT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 BatchStopJobRunResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
99
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_successfulSubmissionsHasBeenSet = false;
105 bool m_errorsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Glue
111} // namespace Aws
AWS_GLUE_API BatchStopJobRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< BatchStopJobRunError > & GetErrors() const
void SetSuccessfulSubmissions(SuccessfulSubmissionsT &&value)
BatchStopJobRunResult & AddSuccessfulSubmissions(SuccessfulSubmissionsT &&value)
const Aws::Vector< BatchStopJobRunSuccessfulSubmission > & GetSuccessfulSubmissions() const
AWS_GLUE_API BatchStopJobRunResult()=default
AWS_GLUE_API BatchStopJobRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchStopJobRunResult & WithErrors(ErrorsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchStopJobRunResult & WithRequestId(RequestIdT &&value)
BatchStopJobRunResult & AddErrors(ErrorsT &&value)
BatchStopJobRunResult & WithSuccessfulSubmissions(SuccessfulSubmissionsT &&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