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

Instance-related attributes that are available for a given instance * type.

See Also:

AWS * API Reference

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

Limits on the number of instances that can be created for a given instance * type.

*/ inline const InstanceCountLimits& GetInstanceCountLimits() const{ return m_instanceCountLimits; } /** *

Limits on the number of instances that can be created for a given instance * type.

*/ inline bool InstanceCountLimitsHasBeenSet() const { return m_instanceCountLimitsHasBeenSet; } /** *

Limits on the number of instances that can be created for a given instance * type.

*/ inline void SetInstanceCountLimits(const InstanceCountLimits& value) { m_instanceCountLimitsHasBeenSet = true; m_instanceCountLimits = value; } /** *

Limits on the number of instances that can be created for a given instance * type.

*/ inline void SetInstanceCountLimits(InstanceCountLimits&& value) { m_instanceCountLimitsHasBeenSet = true; m_instanceCountLimits = std::move(value); } /** *

Limits on the number of instances that can be created for a given instance * type.

*/ inline InstanceLimits& WithInstanceCountLimits(const InstanceCountLimits& value) { SetInstanceCountLimits(value); return *this;} /** *

Limits on the number of instances that can be created for a given instance * type.

*/ inline InstanceLimits& WithInstanceCountLimits(InstanceCountLimits&& value) { SetInstanceCountLimits(std::move(value)); return *this;} private: InstanceCountLimits m_instanceCountLimits; bool m_instanceCountLimitsHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws