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

Defines the details of a high availability configuration.

See * Also:

AWS * API Reference

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

The number of instances in a high availability configuration. The minimum * possible value is 1 and the maximum is 100.

*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *

The number of instances in a high availability configuration. The minimum * possible value is 1 and the maximum is 100.

*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *

The number of instances in a high availability configuration. The minimum * possible value is 1 and the maximum is 100.

*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *

The number of instances in a high availability configuration. The minimum * possible value is 1 and the maximum is 100.

*/ inline HighAvailabilityConfig& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} private: int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws