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

Specifies additional capacity units configured for your Enterprise Edition * index. You can add and remove capacity units to fit your usage * requirements.

See Also:

AWS * API Reference

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

The amount of extra storage capacity for an index. A single capacity unit * provides 30 GB of storage space or 100,000 documents, whichever is reached * first. You can add up to 100 extra capacity units.

*/ inline int GetStorageCapacityUnits() const{ return m_storageCapacityUnits; } /** *

The amount of extra storage capacity for an index. A single capacity unit * provides 30 GB of storage space or 100,000 documents, whichever is reached * first. You can add up to 100 extra capacity units.

*/ inline bool StorageCapacityUnitsHasBeenSet() const { return m_storageCapacityUnitsHasBeenSet; } /** *

The amount of extra storage capacity for an index. A single capacity unit * provides 30 GB of storage space or 100,000 documents, whichever is reached * first. You can add up to 100 extra capacity units.

*/ inline void SetStorageCapacityUnits(int value) { m_storageCapacityUnitsHasBeenSet = true; m_storageCapacityUnits = value; } /** *

The amount of extra storage capacity for an index. A single capacity unit * provides 30 GB of storage space or 100,000 documents, whichever is reached * first. You can add up to 100 extra capacity units.

*/ inline CapacityUnitsConfiguration& WithStorageCapacityUnits(int value) { SetStorageCapacityUnits(value); return *this;} /** *

The amount of extra query capacity for an index and GetQuerySuggestions * capacity.

A single extra capacity unit for an index provides 0.1 queries * per second or approximately 8,000 queries per day. You can add up to 100 extra * capacity units.

GetQuerySuggestions capacity is five times * the provisioned query capacity for an index, or the base capacity of 2.5 calls * per second, whichever is higher. For example, the base capacity for an index is * 0.1 queries per second, and GetQuerySuggestions capacity has a base * of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 * queries per second for an index, the GetQuerySuggestions capacity * is 2.5 calls per second (higher than five times 0.2 queries per second).

*/ inline int GetQueryCapacityUnits() const{ return m_queryCapacityUnits; } /** *

The amount of extra query capacity for an index and GetQuerySuggestions * capacity.

A single extra capacity unit for an index provides 0.1 queries * per second or approximately 8,000 queries per day. You can add up to 100 extra * capacity units.

GetQuerySuggestions capacity is five times * the provisioned query capacity for an index, or the base capacity of 2.5 calls * per second, whichever is higher. For example, the base capacity for an index is * 0.1 queries per second, and GetQuerySuggestions capacity has a base * of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 * queries per second for an index, the GetQuerySuggestions capacity * is 2.5 calls per second (higher than five times 0.2 queries per second).

*/ inline bool QueryCapacityUnitsHasBeenSet() const { return m_queryCapacityUnitsHasBeenSet; } /** *

The amount of extra query capacity for an index and GetQuerySuggestions * capacity.

A single extra capacity unit for an index provides 0.1 queries * per second or approximately 8,000 queries per day. You can add up to 100 extra * capacity units.

GetQuerySuggestions capacity is five times * the provisioned query capacity for an index, or the base capacity of 2.5 calls * per second, whichever is higher. For example, the base capacity for an index is * 0.1 queries per second, and GetQuerySuggestions capacity has a base * of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 * queries per second for an index, the GetQuerySuggestions capacity * is 2.5 calls per second (higher than five times 0.2 queries per second).

*/ inline void SetQueryCapacityUnits(int value) { m_queryCapacityUnitsHasBeenSet = true; m_queryCapacityUnits = value; } /** *

The amount of extra query capacity for an index and GetQuerySuggestions * capacity.

A single extra capacity unit for an index provides 0.1 queries * per second or approximately 8,000 queries per day. You can add up to 100 extra * capacity units.

GetQuerySuggestions capacity is five times * the provisioned query capacity for an index, or the base capacity of 2.5 calls * per second, whichever is higher. For example, the base capacity for an index is * 0.1 queries per second, and GetQuerySuggestions capacity has a base * of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 * queries per second for an index, the GetQuerySuggestions capacity * is 2.5 calls per second (higher than five times 0.2 queries per second).

*/ inline CapacityUnitsConfiguration& WithQueryCapacityUnits(int value) { SetQueryCapacityUnits(value); return *this;} private: int m_storageCapacityUnits; bool m_storageCapacityUnitsHasBeenSet = false; int m_queryCapacityUnits; bool m_queryCapacityUnitsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws