AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PartitionIndexDescriptor.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/PartitionIndexStatus.h>
11#include <aws/glue/model/KeySchemaElement.h>
12#include <aws/glue/model/BackfillError.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_GLUE_API PartitionIndexDescriptor() = default;
42
43
45
48 inline const Aws::String& GetIndexName() const { return m_indexName; }
49 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
50 template<typename IndexNameT = Aws::String>
51 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
52 template<typename IndexNameT = Aws::String>
53 PartitionIndexDescriptor& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
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) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
65 template<typename KeysT = Aws::Vector<KeySchemaElement>>
66 PartitionIndexDescriptor& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
67 template<typename KeysT = KeySchemaElement>
68 PartitionIndexDescriptor& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
70
72
80 inline PartitionIndexStatus GetIndexStatus() const { return m_indexStatus; }
81 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
82 inline void SetIndexStatus(PartitionIndexStatus value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
85
87
91 inline const Aws::Vector<BackfillError>& GetBackfillErrors() const { return m_backfillErrors; }
92 inline bool BackfillErrorsHasBeenSet() const { return m_backfillErrorsHasBeenSet; }
93 template<typename BackfillErrorsT = Aws::Vector<BackfillError>>
94 void SetBackfillErrors(BackfillErrorsT&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors = std::forward<BackfillErrorsT>(value); }
95 template<typename BackfillErrorsT = Aws::Vector<BackfillError>>
96 PartitionIndexDescriptor& WithBackfillErrors(BackfillErrorsT&& value) { SetBackfillErrors(std::forward<BackfillErrorsT>(value)); return *this;}
97 template<typename BackfillErrorsT = BackfillError>
98 PartitionIndexDescriptor& AddBackfillErrors(BackfillErrorsT&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors.emplace_back(std::forward<BackfillErrorsT>(value)); return *this; }
100 private:
101
102 Aws::String m_indexName;
103 bool m_indexNameHasBeenSet = false;
104
106 bool m_keysHasBeenSet = false;
107
109 bool m_indexStatusHasBeenSet = false;
110
111 Aws::Vector<BackfillError> m_backfillErrors;
112 bool m_backfillErrorsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Glue
117} // 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