/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

A descriptor for a partition index in a table.

See Also:

AWS * API Reference

*/ class PartitionIndexDescriptor { public: AWS_GLUE_API PartitionIndexDescriptor(); AWS_GLUE_API PartitionIndexDescriptor(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API PartitionIndexDescriptor& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the partition index.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the partition index.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The name of the partition index.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The name of the partition index.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The name of the partition index.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The name of the partition index.

*/ inline PartitionIndexDescriptor& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the partition index.

*/ inline PartitionIndexDescriptor& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the partition index.

*/ inline PartitionIndexDescriptor& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline const Aws::Vector& GetKeys() const{ return m_keys; } /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline void SetKeys(const Aws::Vector& value) { m_keysHasBeenSet = true; m_keys = value; } /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline void SetKeys(Aws::Vector&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); } /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline PartitionIndexDescriptor& WithKeys(const Aws::Vector& value) { SetKeys(value); return *this;} /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline PartitionIndexDescriptor& WithKeys(Aws::Vector&& value) { SetKeys(std::move(value)); return *this;} /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline PartitionIndexDescriptor& AddKeys(const KeySchemaElement& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

A list of one or more keys, as KeySchemaElement structures, for * the partition index.

*/ inline PartitionIndexDescriptor& AddKeys(KeySchemaElement&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline const PartitionIndexStatus& GetIndexStatus() const{ return m_indexStatus; } /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; } /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline void SetIndexStatus(const PartitionIndexStatus& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; } /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline void SetIndexStatus(PartitionIndexStatus&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = std::move(value); } /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline PartitionIndexDescriptor& WithIndexStatus(const PartitionIndexStatus& value) { SetIndexStatus(value); return *this;} /** *

The status of the partition index.

The possible statuses are:

*
  • CREATING: The index is being created. When an index is in a * CREATING state, the index or its table cannot be deleted.

  • *

    ACTIVE: The index creation succeeds.

  • FAILED: The index * creation fails.

  • DELETING: The index is deleted from the list * of indexes.

*/ inline PartitionIndexDescriptor& WithIndexStatus(PartitionIndexStatus&& value) { SetIndexStatus(std::move(value)); return *this;} /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline const Aws::Vector& GetBackfillErrors() const{ return m_backfillErrors; } /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline bool BackfillErrorsHasBeenSet() const { return m_backfillErrorsHasBeenSet; } /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline void SetBackfillErrors(const Aws::Vector& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors = value; } /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline void SetBackfillErrors(Aws::Vector&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors = std::move(value); } /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline PartitionIndexDescriptor& WithBackfillErrors(const Aws::Vector& value) { SetBackfillErrors(value); return *this;} /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline PartitionIndexDescriptor& WithBackfillErrors(Aws::Vector&& value) { SetBackfillErrors(std::move(value)); return *this;} /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline PartitionIndexDescriptor& AddBackfillErrors(const BackfillError& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors.push_back(value); return *this; } /** *

A list of errors that can occur when registering partition indexes for an * existing table.

*/ inline PartitionIndexDescriptor& AddBackfillErrors(BackfillError&& value) { m_backfillErrorsHasBeenSet = true; m_backfillErrors.push_back(std::move(value)); return *this; } private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::Vector m_keys; bool m_keysHasBeenSet = false; PartitionIndexStatus m_indexStatus; bool m_indexStatusHasBeenSet = false; Aws::Vector m_backfillErrors; bool m_backfillErrorsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws