AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
BatchGetPartitionResult.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/Partition.h>
12#include <aws/glue/model/PartitionValueList.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 BatchGetPartitionResult() = default;
32
34
37 inline const Aws::Vector<Partition>& GetPartitions() const { return m_partitions; }
38 template <typename PartitionsT = Aws::Vector<Partition>>
39 void SetPartitions(PartitionsT&& value) {
40 m_partitionsHasBeenSet = true;
41 m_partitions = std::forward<PartitionsT>(value);
42 }
43 template <typename PartitionsT = Aws::Vector<Partition>>
45 SetPartitions(std::forward<PartitionsT>(value));
46 return *this;
47 }
48 template <typename PartitionsT = Partition>
49 BatchGetPartitionResult& AddPartitions(PartitionsT&& value) {
50 m_partitionsHasBeenSet = true;
51 m_partitions.emplace_back(std::forward<PartitionsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<PartitionValueList>& GetUnprocessedKeys() const { return m_unprocessedKeys; }
62 template <typename UnprocessedKeysT = Aws::Vector<PartitionValueList>>
63 void SetUnprocessedKeys(UnprocessedKeysT&& value) {
64 m_unprocessedKeysHasBeenSet = true;
65 m_unprocessedKeys = std::forward<UnprocessedKeysT>(value);
66 }
67 template <typename UnprocessedKeysT = Aws::Vector<PartitionValueList>>
68 BatchGetPartitionResult& WithUnprocessedKeys(UnprocessedKeysT&& value) {
69 SetUnprocessedKeys(std::forward<UnprocessedKeysT>(value));
70 return *this;
71 }
72 template <typename UnprocessedKeysT = PartitionValueList>
73 BatchGetPartitionResult& AddUnprocessedKeys(UnprocessedKeysT&& value) {
74 m_unprocessedKeysHasBeenSet = true;
75 m_unprocessedKeys.emplace_back(std::forward<UnprocessedKeysT>(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 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
95
96 private:
97 Aws::Vector<Partition> m_partitions;
98
99 Aws::Vector<PartitionValueList> m_unprocessedKeys;
100
101 Aws::String m_requestId;
102 Aws::Http::HttpResponseCode m_HttpResponseCode;
103 bool m_partitionsHasBeenSet = false;
104 bool m_unprocessedKeysHasBeenSet = false;
105 bool m_requestIdHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Glue
110} // namespace Aws
BatchGetPartitionResult & AddPartitions(PartitionsT &&value)
AWS_GLUE_API BatchGetPartitionResult()=default
AWS_GLUE_API BatchGetPartitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GLUE_API BatchGetPartitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PartitionValueList > & GetUnprocessedKeys() const
const Aws::Vector< Partition > & GetPartitions() const
BatchGetPartitionResult & WithRequestId(RequestIdT &&value)
BatchGetPartitionResult & AddUnprocessedKeys(UnprocessedKeysT &&value)
BatchGetPartitionResult & WithPartitions(PartitionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetPartitionResult & WithUnprocessedKeys(UnprocessedKeysT &&value)
void SetUnprocessedKeys(UnprocessedKeysT &&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