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

Describes the capacity for a fleet.

See Also:

AWS * API Reference

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

The desired number of streaming instances.

*/ inline int GetDesiredInstances() const{ return m_desiredInstances; } /** *

The desired number of streaming instances.

*/ inline bool DesiredInstancesHasBeenSet() const { return m_desiredInstancesHasBeenSet; } /** *

The desired number of streaming instances.

*/ inline void SetDesiredInstances(int value) { m_desiredInstancesHasBeenSet = true; m_desiredInstances = value; } /** *

The desired number of streaming instances.

*/ inline ComputeCapacity& WithDesiredInstances(int value) { SetDesiredInstances(value); return *this;} private: int m_desiredInstances; bool m_desiredInstancesHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws