/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Current status of fleet capacity. The number of active instances should match
* or be in the process of matching the number of desired instances. Pending and
* terminating counts are non-zero only if fleet capacity is adjusting to an
* UpdateFleetCapacity request, or if access to resources is temporarily
* affected.
See Also:
AWS
* API Reference
Ideal number of active instances in the fleet.
*/ inline int GetDESIRED() const{ return m_dESIRED; } /** *Ideal number of active instances in the fleet.
*/ inline bool DESIREDHasBeenSet() const { return m_dESIREDHasBeenSet; } /** *Ideal number of active instances in the fleet.
*/ inline void SetDESIRED(int value) { m_dESIREDHasBeenSet = true; m_dESIRED = value; } /** *Ideal number of active instances in the fleet.
*/ inline EC2InstanceCounts& WithDESIRED(int value) { SetDESIRED(value); return *this;} /** *The minimum value allowed for the fleet's instance count.
*/ inline int GetMINIMUM() const{ return m_mINIMUM; } /** *The minimum value allowed for the fleet's instance count.
*/ inline bool MINIMUMHasBeenSet() const { return m_mINIMUMHasBeenSet; } /** *The minimum value allowed for the fleet's instance count.
*/ inline void SetMINIMUM(int value) { m_mINIMUMHasBeenSet = true; m_mINIMUM = value; } /** *The minimum value allowed for the fleet's instance count.
*/ inline EC2InstanceCounts& WithMINIMUM(int value) { SetMINIMUM(value); return *this;} /** *The maximum value allowed for the fleet's instance count.
*/ inline int GetMAXIMUM() const{ return m_mAXIMUM; } /** *The maximum value allowed for the fleet's instance count.
*/ inline bool MAXIMUMHasBeenSet() const { return m_mAXIMUMHasBeenSet; } /** *The maximum value allowed for the fleet's instance count.
*/ inline void SetMAXIMUM(int value) { m_mAXIMUMHasBeenSet = true; m_mAXIMUM = value; } /** *The maximum value allowed for the fleet's instance count.
*/ inline EC2InstanceCounts& WithMAXIMUM(int value) { SetMAXIMUM(value); return *this;} /** *Number of instances in the fleet that are starting but not yet active.
*/ inline int GetPENDING() const{ return m_pENDING; } /** *Number of instances in the fleet that are starting but not yet active.
*/ inline bool PENDINGHasBeenSet() const { return m_pENDINGHasBeenSet; } /** *Number of instances in the fleet that are starting but not yet active.
*/ inline void SetPENDING(int value) { m_pENDINGHasBeenSet = true; m_pENDING = value; } /** *Number of instances in the fleet that are starting but not yet active.
*/ inline EC2InstanceCounts& WithPENDING(int value) { SetPENDING(value); return *this;} /** *Actual number of active instances in the fleet.
*/ inline int GetACTIVE() const{ return m_aCTIVE; } /** *Actual number of active instances in the fleet.
*/ inline bool ACTIVEHasBeenSet() const { return m_aCTIVEHasBeenSet; } /** *Actual number of active instances in the fleet.
*/ inline void SetACTIVE(int value) { m_aCTIVEHasBeenSet = true; m_aCTIVE = value; } /** *Actual number of active instances in the fleet.
*/ inline EC2InstanceCounts& WithACTIVE(int value) { SetACTIVE(value); return *this;} /** *Number of active instances in the fleet that are not currently hosting a game * session.
*/ inline int GetIDLE() const{ return m_iDLE; } /** *Number of active instances in the fleet that are not currently hosting a game * session.
*/ inline bool IDLEHasBeenSet() const { return m_iDLEHasBeenSet; } /** *Number of active instances in the fleet that are not currently hosting a game * session.
*/ inline void SetIDLE(int value) { m_iDLEHasBeenSet = true; m_iDLE = value; } /** *Number of active instances in the fleet that are not currently hosting a game * session.
*/ inline EC2InstanceCounts& WithIDLE(int value) { SetIDLE(value); return *this;} /** *Number of instances in the fleet that are no longer active but haven't yet * been terminated.
*/ inline int GetTERMINATING() const{ return m_tERMINATING; } /** *Number of instances in the fleet that are no longer active but haven't yet * been terminated.
*/ inline bool TERMINATINGHasBeenSet() const { return m_tERMINATINGHasBeenSet; } /** *Number of instances in the fleet that are no longer active but haven't yet * been terminated.
*/ inline void SetTERMINATING(int value) { m_tERMINATINGHasBeenSet = true; m_tERMINATING = value; } /** *Number of instances in the fleet that are no longer active but haven't yet * been terminated.
*/ inline EC2InstanceCounts& WithTERMINATING(int value) { SetTERMINATING(value); return *this;} private: int m_dESIRED; bool m_dESIREDHasBeenSet; int m_mINIMUM; bool m_mINIMUMHasBeenSet; int m_mAXIMUM; bool m_mAXIMUMHasBeenSet; int m_pENDING; bool m_pENDINGHasBeenSet; int m_aCTIVE; bool m_aCTIVEHasBeenSet; int m_iDLE; bool m_iDLEHasBeenSet; int m_tERMINATING; bool m_tERMINATINGHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws