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

A structure for a partition index.

See Also:

AWS * API Reference

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

The keys for the partition index.

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

The keys for the partition index.

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

The keys for the partition index.

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

The keys for the partition index.

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

The keys for the partition index.

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

The keys for the partition index.

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

The keys for the partition index.

*/ inline PartitionIndex& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

The keys for the partition index.

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

The keys for the partition index.

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

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 PartitionIndex& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the partition index.

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

The name of the partition index.

*/ inline PartitionIndex& WithIndexName(const char* value) { SetIndexName(value); return *this;} private: Aws::Vector m_keys; bool m_keysHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws