105 lines
3.4 KiB
C++
105 lines
3.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kendra/Kendra_EXPORTS.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace kendra
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Specifies capacity units configured for your index. You can add and remove
|
|
* capacity units to tune an index to your requirements.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CapacityUnitsConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_KENDRA_API CapacityUnitsConfiguration
|
|
{
|
|
public:
|
|
CapacityUnitsConfiguration();
|
|
CapacityUnitsConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
CapacityUnitsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The amount of extra storage capacity for an index. Each capacity unit
|
|
* provides 150 Gb of storage space or 500,000 documents, whichever is reached
|
|
* first.</p>
|
|
*/
|
|
inline int GetStorageCapacityUnits() const{ return m_storageCapacityUnits; }
|
|
|
|
/**
|
|
* <p>The amount of extra storage capacity for an index. Each capacity unit
|
|
* provides 150 Gb of storage space or 500,000 documents, whichever is reached
|
|
* first.</p>
|
|
*/
|
|
inline bool StorageCapacityUnitsHasBeenSet() const { return m_storageCapacityUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The amount of extra storage capacity for an index. Each capacity unit
|
|
* provides 150 Gb of storage space or 500,000 documents, whichever is reached
|
|
* first.</p>
|
|
*/
|
|
inline void SetStorageCapacityUnits(int value) { m_storageCapacityUnitsHasBeenSet = true; m_storageCapacityUnits = value; }
|
|
|
|
/**
|
|
* <p>The amount of extra storage capacity for an index. Each capacity unit
|
|
* provides 150 Gb of storage space or 500,000 documents, whichever is reached
|
|
* first.</p>
|
|
*/
|
|
inline CapacityUnitsConfiguration& WithStorageCapacityUnits(int value) { SetStorageCapacityUnits(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The amount of extra query capacity for an index. Each capacity unit provides
|
|
* 0.5 queries per second and 40,000 queries per day.</p>
|
|
*/
|
|
inline int GetQueryCapacityUnits() const{ return m_queryCapacityUnits; }
|
|
|
|
/**
|
|
* <p>The amount of extra query capacity for an index. Each capacity unit provides
|
|
* 0.5 queries per second and 40,000 queries per day.</p>
|
|
*/
|
|
inline bool QueryCapacityUnitsHasBeenSet() const { return m_queryCapacityUnitsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The amount of extra query capacity for an index. Each capacity unit provides
|
|
* 0.5 queries per second and 40,000 queries per day.</p>
|
|
*/
|
|
inline void SetQueryCapacityUnits(int value) { m_queryCapacityUnitsHasBeenSet = true; m_queryCapacityUnits = value; }
|
|
|
|
/**
|
|
* <p>The amount of extra query capacity for an index. Each capacity unit provides
|
|
* 0.5 queries per second and 40,000 queries per day.</p>
|
|
*/
|
|
inline CapacityUnitsConfiguration& WithQueryCapacityUnits(int value) { SetQueryCapacityUnits(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_storageCapacityUnits;
|
|
bool m_storageCapacityUnitsHasBeenSet;
|
|
|
|
int m_queryCapacityUnits;
|
|
bool m_queryCapacityUnitsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace kendra
|
|
} // namespace Aws
|