AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
42
43
45
48 inline const Aws::String& GetIndexName() const{ return m_indexName; }
49 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
50 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
51 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
52 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
53 inline PartitionIndexDescriptor& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
54 inline PartitionIndexDescriptor& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
55 inline PartitionIndexDescriptor& WithIndexName(const char* value) { SetIndexName(value); return *this;}
57
59
63 inline const Aws::Vector<KeySchemaElement>& GetKeys() const{ return m_keys; }
64 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
65 inline void SetKeys(const Aws::Vector<KeySchemaElement>& value) { m_keysHasBeenSet = true; m_keys = value; }
66 inline void SetKeys(Aws::Vector<KeySchemaElement>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
67 inline PartitionIndexDescriptor& WithKeys(const Aws::Vector<KeySchemaElement>& value) { SetKeys(value); return *this;}
68 inline PartitionIndexDescriptor& WithKeys(Aws::Vector<KeySchemaElement>&& value) { SetKeys(std::move(value)); return *this;}
69 inline PartitionIndexDescriptor& AddKeys(const KeySchemaElement& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
70 inline PartitionIndexDescriptor& AddKeys(KeySchemaElement&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
72
74
82 inline const PartitionIndexStatus& GetIndexStatus() const{ return m_indexStatus; }
83 inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; }
84 inline void SetIndexStatus(const PartitionIndexStatus& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
85 inline void SetIndexStatus(PartitionIndexStatus&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = std::move(value); }
86 inline PartitionIndexDescriptor& WithIndexStatus(const PartitionIndexStatus& value) { SetIndexStatus(value); return *this;}
87 inline PartitionIndexDescriptor& WithIndexStatus(PartitionIndexStatus&& value) { SetIndexStatus(std::move(value)); return *this;}
89
91
95 inline const Aws::Vector<BackfillError>& GetBackfillErrors() const{ return m_backfillErrors; }
96 inline bool BackfillErrorsHasBeenSet() const { return m_backfillErrorsHasBeenSet; }
97 inline void SetBackfillErrors(const Aws::Vector<BackfillError>& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors = value; }
98 inline void SetBackfillErrors(Aws::Vector<BackfillError>&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors = std::move(value); }
101 inline PartitionIndexDescriptor& AddBackfillErrors(const BackfillError& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors.push_back(value); return *this; }
102 inline PartitionIndexDescriptor& AddBackfillErrors(BackfillError&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors.push_back(std::move(value)); return *this; }
104 private:
105
106 Aws::String m_indexName;
107 bool m_indexNameHasBeenSet = false;
108
110 bool m_keysHasBeenSet = false;
111
112 PartitionIndexStatus m_indexStatus;
113 bool m_indexStatusHasBeenSet = false;
114
115 Aws::Vector<BackfillError> m_backfillErrors;
116 bool m_backfillErrorsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Glue
121} // namespace Aws
const PartitionIndexStatus & GetIndexStatus() const
PartitionIndexDescriptor & AddBackfillErrors(BackfillError &&value)
void SetBackfillErrors(Aws::Vector< BackfillError > &&value)
PartitionIndexDescriptor & WithIndexName(const char *value)
AWS_GLUE_API PartitionIndexDescriptor(Aws::Utils::Json::JsonView jsonValue)
PartitionIndexDescriptor & AddKeys(const KeySchemaElement &value)
AWS_GLUE_API PartitionIndexDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BackfillError > & GetBackfillErrors() const
PartitionIndexDescriptor & WithKeys(Aws::Vector< KeySchemaElement > &&value)
PartitionIndexDescriptor & AddBackfillErrors(const BackfillError &value)
PartitionIndexDescriptor & WithBackfillErrors(const Aws::Vector< BackfillError > &value)
PartitionIndexDescriptor & WithIndexName(Aws::String &&value)
PartitionIndexDescriptor & WithIndexName(const Aws::String &value)
PartitionIndexDescriptor & AddKeys(KeySchemaElement &&value)
PartitionIndexDescriptor & WithKeys(const Aws::Vector< KeySchemaElement > &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
PartitionIndexDescriptor & WithBackfillErrors(Aws::Vector< BackfillError > &&value)
void SetKeys(const Aws::Vector< KeySchemaElement > &value)
PartitionIndexDescriptor & WithIndexStatus(PartitionIndexStatus &&value)
void SetKeys(Aws::Vector< KeySchemaElement > &&value)
void SetIndexStatus(PartitionIndexStatus &&value)
void SetBackfillErrors(const Aws::Vector< BackfillError > &value)
const Aws::Vector< KeySchemaElement > & GetKeys() const
PartitionIndexDescriptor & WithIndexStatus(const PartitionIndexStatus &value)
void SetIndexStatus(const PartitionIndexStatus &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