/** * 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 OpenSearchServerless { namespace Model { /** *

The maximum capacity limits for all OpenSearch Serverless collections, in * OpenSearch Compute Units (OCUs). These limits are used to scale your collections * based on the current workload. For more information, see Managing * capacity limits for Amazon OpenSearch Serverless.

See Also:

* AWS * API Reference

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

The maximum indexing capacity for collections.

*/ inline int GetMaxIndexingCapacityInOCU() const{ return m_maxIndexingCapacityInOCU; } /** *

The maximum indexing capacity for collections.

*/ inline bool MaxIndexingCapacityInOCUHasBeenSet() const { return m_maxIndexingCapacityInOCUHasBeenSet; } /** *

The maximum indexing capacity for collections.

*/ inline void SetMaxIndexingCapacityInOCU(int value) { m_maxIndexingCapacityInOCUHasBeenSet = true; m_maxIndexingCapacityInOCU = value; } /** *

The maximum indexing capacity for collections.

*/ inline CapacityLimits& WithMaxIndexingCapacityInOCU(int value) { SetMaxIndexingCapacityInOCU(value); return *this;} /** *

The maximum search capacity for collections.

*/ inline int GetMaxSearchCapacityInOCU() const{ return m_maxSearchCapacityInOCU; } /** *

The maximum search capacity for collections.

*/ inline bool MaxSearchCapacityInOCUHasBeenSet() const { return m_maxSearchCapacityInOCUHasBeenSet; } /** *

The maximum search capacity for collections.

*/ inline void SetMaxSearchCapacityInOCU(int value) { m_maxSearchCapacityInOCUHasBeenSet = true; m_maxSearchCapacityInOCU = value; } /** *

The maximum search capacity for collections.

*/ inline CapacityLimits& WithMaxSearchCapacityInOCU(int value) { SetMaxSearchCapacityInOCU(value); return *this;} private: int m_maxIndexingCapacityInOCU; bool m_maxIndexingCapacityInOCUHasBeenSet = false; int m_maxSearchCapacityInOCU; bool m_maxSearchCapacityInOCUHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws