AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchStopJobRunResult.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/BatchStopJobRunSuccessfulSubmission.h>
11#include <aws/glue/model/BatchStopJobRunError.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GLUE_API BatchStopJobRunResult() = default;
36
37
39
42 inline const Aws::Vector<BatchStopJobRunSuccessfulSubmission>& GetSuccessfulSubmissions() const { return m_successfulSubmissions; }
43 template<typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
44 void SetSuccessfulSubmissions(SuccessfulSubmissionsT&& value) { m_successfulSubmissionsHasBeenSet = true; m_successfulSubmissions = std::forward<SuccessfulSubmissionsT>(value); }
45 template<typename SuccessfulSubmissionsT = Aws::Vector<BatchStopJobRunSuccessfulSubmission>>
46 BatchStopJobRunResult& WithSuccessfulSubmissions(SuccessfulSubmissionsT&& value) { SetSuccessfulSubmissions(std::forward<SuccessfulSubmissionsT>(value)); return *this;}
47 template<typename SuccessfulSubmissionsT = BatchStopJobRunSuccessfulSubmission>
48 BatchStopJobRunResult& AddSuccessfulSubmissions(SuccessfulSubmissionsT&& value) { m_successfulSubmissionsHasBeenSet = true; m_successfulSubmissions.emplace_back(std::forward<SuccessfulSubmissionsT>(value)); return *this; }
50
52
57 inline const Aws::Vector<BatchStopJobRunError>& GetErrors() const { return m_errors; }
58 template<typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
59 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
60 template<typename ErrorsT = Aws::Vector<BatchStopJobRunError>>
61 BatchStopJobRunResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
62 template<typename ErrorsT = BatchStopJobRunError>
63 BatchStopJobRunResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 BatchStopJobRunResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74 private:
75
77 bool m_successfulSubmissionsHasBeenSet = false;
78
80 bool m_errorsHasBeenSet = false;
81
82 Aws::String m_requestId;
83 bool m_requestIdHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Glue
88} // 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