AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeBatchPredictionsResult.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/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/BatchPrediction.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace MachineLearning {
24namespace Model {
33 public:
34 AWS_MACHINELEARNING_API DescribeBatchPredictionsResult() = default;
37
39
43 inline const Aws::Vector<BatchPrediction>& GetResults() const { return m_results; }
44 template <typename ResultsT = Aws::Vector<BatchPrediction>>
45 void SetResults(ResultsT&& value) {
46 m_resultsHasBeenSet = true;
47 m_results = std::forward<ResultsT>(value);
48 }
49 template <typename ResultsT = Aws::Vector<BatchPrediction>>
51 SetResults(std::forward<ResultsT>(value));
52 return *this;
53 }
54 template <typename ResultsT = BatchPrediction>
56 m_resultsHasBeenSet = true;
57 m_results.emplace_back(std::forward<ResultsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
75 SetNextToken(std::forward<NextTokenT>(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>
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_nextToken;
98
99 Aws::String m_requestId;
100 bool m_resultsHasBeenSet = false;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MachineLearning
107} // namespace Aws
AWS_MACHINELEARNING_API DescribeBatchPredictionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBatchPredictionsResult & AddResults(ResultsT &&value)
DescribeBatchPredictionsResult & WithResults(ResultsT &&value)
AWS_MACHINELEARNING_API DescribeBatchPredictionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MACHINELEARNING_API DescribeBatchPredictionsResult()=default
DescribeBatchPredictionsResult & WithRequestId(RequestIdT &&value)
DescribeBatchPredictionsResult & WithNextToken(NextTokenT &&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