AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PartitionIndexDescriptor.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/BackfillError.h>
11#include <aws/glue/model/KeySchemaElement.h>
12#include <aws/glue/model/PartitionIndexStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue {
24namespace Model {
25
32 public:
33 AWS_GLUE_API PartitionIndexDescriptor() = default;
37
39
42 inline const Aws::String& GetIndexName() const { return m_indexName; }
43 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
44 template <typename IndexNameT = Aws::String>
45 void SetIndexName(IndexNameT&& value) {
46 m_indexNameHasBeenSet = true;
47 m_indexName = std::forward<IndexNameT>(value);
48 }
49 template <typename IndexNameT = Aws::String>
51 SetIndexName(std::forward<IndexNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<KeySchemaElement>& GetKeys() const { return m_keys; }
62 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
63 template <typename KeysT = Aws::Vector<KeySchemaElement>>
64 void SetKeys(KeysT&& value) {
65 m_keysHasBeenSet = true;
66 m_keys = std::forward<KeysT>(value);
67 }
68 template <typename KeysT = Aws::Vector<KeySchemaElement>>
70 SetKeys(std::forward<KeysT>(value));
71 return *this;
72 }
73 template <typename KeysT = KeySchemaElement>
75 m_keysHasBeenSet = true;
76 m_keys.emplace_back(std::forward<KeysT>(value));
77 return *this;
78 }
80
82
90 inline PartitionIndexStatus GetIndexStatus() const { return m_indexStatus; }
91 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
93 m_indexStatusHasBeenSet = true;
94 m_indexStatus = value;
95 }
97 SetIndexStatus(value);
98 return *this;
99 }
101
103
107 inline const Aws::Vector<BackfillError>& GetBackfillErrors() const { return m_backfillErrors; }
108 inline bool BackfillErrorsHasBeenSet() const { return m_backfillErrorsHasBeenSet; }
109 template <typename BackfillErrorsT = Aws::Vector<BackfillError>>
110 void SetBackfillErrors(BackfillErrorsT&& value) {
111 m_backfillErrorsHasBeenSet = true;
112 m_backfillErrors = std::forward<BackfillErrorsT>(value);
113 }
114 template <typename BackfillErrorsT = Aws::Vector<BackfillError>>
116 SetBackfillErrors(std::forward<BackfillErrorsT>(value));
117 return *this;
118 }
119 template <typename BackfillErrorsT = BackfillError>
120 PartitionIndexDescriptor& AddBackfillErrors(BackfillErrorsT&& value) {
121 m_backfillErrorsHasBeenSet = true;
122 m_backfillErrors.emplace_back(std::forward<BackfillErrorsT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_indexName;
128
130
132
133 Aws::Vector<BackfillError> m_backfillErrors;
134 bool m_indexNameHasBeenSet = false;
135 bool m_keysHasBeenSet = false;
136 bool m_indexStatusHasBeenSet = false;
137 bool m_backfillErrorsHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Glue
142} // namespace Aws
PartitionIndexDescriptor & WithIndexStatus(PartitionIndexStatus value)
void SetIndexStatus(PartitionIndexStatus value)
PartitionIndexDescriptor & AddBackfillErrors(BackfillErrorsT &&value)
AWS_GLUE_API PartitionIndexDescriptor(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API PartitionIndexDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BackfillError > & GetBackfillErrors() const
AWS_GLUE_API PartitionIndexDescriptor()=default
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
PartitionIndexDescriptor & WithIndexName(IndexNameT &&value)
PartitionIndexDescriptor & WithKeys(KeysT &&value)
const Aws::Vector< KeySchemaElement > & GetKeys() const
PartitionIndexDescriptor & WithBackfillErrors(BackfillErrorsT &&value)
PartitionIndexDescriptor & AddKeys(KeysT &&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