AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
BatchStopJobRunResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/BatchStopJobRunError.h>
11#include <aws/glue/model/BatchStopJobRunSuccessfulSubmission.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 Glue {
25namespace Model {
27 public:
28 AWS_GLUE_API BatchStopJobRunResult() = default;
31
33
36 inline const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& GetSuccessfulSubmissions() const { return m_successfulSubmissions; }
37 template <typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
38 void SetSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
39 m_successfulSubmissionsHasBeenSet = true;
40 m_successfulSubmissions = std::forward<SuccessfulSubmissionsT>(value);
41 }
42 template <typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
43 BatchStopJobRunResult& WithSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
44 SetSuccessfulSubmissions(std::forward<SuccessfulSubmissionsT>(value));
45 return *this;
46 }
47 template <typename SuccessfulSubmissionsT = BatchStopJobRunSuccessfulSubmission>
48 BatchStopJobRunResult& AddSuccessfulSubmissions(SuccessfulSubmissionsT&& value) {
49 m_successfulSubmissionsHasBeenSet = true;
50 m_successfulSubmissions.emplace_back(std::forward<SuccessfulSubmissionsT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<BatchStopJobRunError>& GetErrors() const { return m_errors; }
62 template <typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
63 void SetErrors(ErrorsT&& value) {
64 m_errorsHasBeenSet = true;
65 m_errors = std::forward<ErrorsT>(value);
66 }
67 template <typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
69 SetErrors(std::forward<ErrorsT>(value));
70 return *this;
71 }
72 template <typename ErrorsT = BatchStopJobRunError>
73 BatchStopJobRunResult& AddErrors(ErrorsT&& value) {
74 m_errorsHasBeenSet = true;
75 m_errors.emplace_back(std::forward<ErrorsT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 BatchStopJobRunResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
96 bool m_successfulSubmissionsHasBeenSet = false;
97
99 bool m_errorsHasBeenSet = false;
100
101 Aws::String m_requestId;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Glue
107} // 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)
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