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

Describes how many instances a stack has for each status.

See * Also:

AWS * API Reference

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

The number of instances in the Assigning state.

*/ inline int GetAssigning() const{ return m_assigning; } /** *

The number of instances in the Assigning state.

*/ inline bool AssigningHasBeenSet() const { return m_assigningHasBeenSet; } /** *

The number of instances in the Assigning state.

*/ inline void SetAssigning(int value) { m_assigningHasBeenSet = true; m_assigning = value; } /** *

The number of instances in the Assigning state.

*/ inline InstancesCount& WithAssigning(int value) { SetAssigning(value); return *this;} /** *

The number of instances with booting status.

*/ inline int GetBooting() const{ return m_booting; } /** *

The number of instances with booting status.

*/ inline bool BootingHasBeenSet() const { return m_bootingHasBeenSet; } /** *

The number of instances with booting status.

*/ inline void SetBooting(int value) { m_bootingHasBeenSet = true; m_booting = value; } /** *

The number of instances with booting status.

*/ inline InstancesCount& WithBooting(int value) { SetBooting(value); return *this;} /** *

The number of instances with connection_lost status.

*/ inline int GetConnectionLost() const{ return m_connectionLost; } /** *

The number of instances with connection_lost status.

*/ inline bool ConnectionLostHasBeenSet() const { return m_connectionLostHasBeenSet; } /** *

The number of instances with connection_lost status.

*/ inline void SetConnectionLost(int value) { m_connectionLostHasBeenSet = true; m_connectionLost = value; } /** *

The number of instances with connection_lost status.

*/ inline InstancesCount& WithConnectionLost(int value) { SetConnectionLost(value); return *this;} /** *

The number of instances in the Deregistering state.

*/ inline int GetDeregistering() const{ return m_deregistering; } /** *

The number of instances in the Deregistering state.

*/ inline bool DeregisteringHasBeenSet() const { return m_deregisteringHasBeenSet; } /** *

The number of instances in the Deregistering state.

*/ inline void SetDeregistering(int value) { m_deregisteringHasBeenSet = true; m_deregistering = value; } /** *

The number of instances in the Deregistering state.

*/ inline InstancesCount& WithDeregistering(int value) { SetDeregistering(value); return *this;} /** *

The number of instances with online status.

*/ inline int GetOnline() const{ return m_online; } /** *

The number of instances with online status.

*/ inline bool OnlineHasBeenSet() const { return m_onlineHasBeenSet; } /** *

The number of instances with online status.

*/ inline void SetOnline(int value) { m_onlineHasBeenSet = true; m_online = value; } /** *

The number of instances with online status.

*/ inline InstancesCount& WithOnline(int value) { SetOnline(value); return *this;} /** *

The number of instances with pending status.

*/ inline int GetPending() const{ return m_pending; } /** *

The number of instances with pending status.

*/ inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; } /** *

The number of instances with pending status.

*/ inline void SetPending(int value) { m_pendingHasBeenSet = true; m_pending = value; } /** *

The number of instances with pending status.

*/ inline InstancesCount& WithPending(int value) { SetPending(value); return *this;} /** *

The number of instances with rebooting status.

*/ inline int GetRebooting() const{ return m_rebooting; } /** *

The number of instances with rebooting status.

*/ inline bool RebootingHasBeenSet() const { return m_rebootingHasBeenSet; } /** *

The number of instances with rebooting status.

*/ inline void SetRebooting(int value) { m_rebootingHasBeenSet = true; m_rebooting = value; } /** *

The number of instances with rebooting status.

*/ inline InstancesCount& WithRebooting(int value) { SetRebooting(value); return *this;} /** *

The number of instances in the Registered state.

*/ inline int GetRegistered() const{ return m_registered; } /** *

The number of instances in the Registered state.

*/ inline bool RegisteredHasBeenSet() const { return m_registeredHasBeenSet; } /** *

The number of instances in the Registered state.

*/ inline void SetRegistered(int value) { m_registeredHasBeenSet = true; m_registered = value; } /** *

The number of instances in the Registered state.

*/ inline InstancesCount& WithRegistered(int value) { SetRegistered(value); return *this;} /** *

The number of instances in the Registering state.

*/ inline int GetRegistering() const{ return m_registering; } /** *

The number of instances in the Registering state.

*/ inline bool RegisteringHasBeenSet() const { return m_registeringHasBeenSet; } /** *

The number of instances in the Registering state.

*/ inline void SetRegistering(int value) { m_registeringHasBeenSet = true; m_registering = value; } /** *

The number of instances in the Registering state.

*/ inline InstancesCount& WithRegistering(int value) { SetRegistering(value); return *this;} /** *

The number of instances with requested status.

*/ inline int GetRequested() const{ return m_requested; } /** *

The number of instances with requested status.

*/ inline bool RequestedHasBeenSet() const { return m_requestedHasBeenSet; } /** *

The number of instances with requested status.

*/ inline void SetRequested(int value) { m_requestedHasBeenSet = true; m_requested = value; } /** *

The number of instances with requested status.

*/ inline InstancesCount& WithRequested(int value) { SetRequested(value); return *this;} /** *

The number of instances with running_setup status.

*/ inline int GetRunningSetup() const{ return m_runningSetup; } /** *

The number of instances with running_setup status.

*/ inline bool RunningSetupHasBeenSet() const { return m_runningSetupHasBeenSet; } /** *

The number of instances with running_setup status.

*/ inline void SetRunningSetup(int value) { m_runningSetupHasBeenSet = true; m_runningSetup = value; } /** *

The number of instances with running_setup status.

*/ inline InstancesCount& WithRunningSetup(int value) { SetRunningSetup(value); return *this;} /** *

The number of instances with setup_failed status.

*/ inline int GetSetupFailed() const{ return m_setupFailed; } /** *

The number of instances with setup_failed status.

*/ inline bool SetupFailedHasBeenSet() const { return m_setupFailedHasBeenSet; } /** *

The number of instances with setup_failed status.

*/ inline void SetSetupFailed(int value) { m_setupFailedHasBeenSet = true; m_setupFailed = value; } /** *

The number of instances with setup_failed status.

*/ inline InstancesCount& WithSetupFailed(int value) { SetSetupFailed(value); return *this;} /** *

The number of instances with shutting_down status.

*/ inline int GetShuttingDown() const{ return m_shuttingDown; } /** *

The number of instances with shutting_down status.

*/ inline bool ShuttingDownHasBeenSet() const { return m_shuttingDownHasBeenSet; } /** *

The number of instances with shutting_down status.

*/ inline void SetShuttingDown(int value) { m_shuttingDownHasBeenSet = true; m_shuttingDown = value; } /** *

The number of instances with shutting_down status.

*/ inline InstancesCount& WithShuttingDown(int value) { SetShuttingDown(value); return *this;} /** *

The number of instances with start_failed status.

*/ inline int GetStartFailed() const{ return m_startFailed; } /** *

The number of instances with start_failed status.

*/ inline bool StartFailedHasBeenSet() const { return m_startFailedHasBeenSet; } /** *

The number of instances with start_failed status.

*/ inline void SetStartFailed(int value) { m_startFailedHasBeenSet = true; m_startFailed = value; } /** *

The number of instances with start_failed status.

*/ inline InstancesCount& WithStartFailed(int value) { SetStartFailed(value); return *this;} /** *

The number of instances with stop_failed status.

*/ inline int GetStopFailed() const{ return m_stopFailed; } /** *

The number of instances with stop_failed status.

*/ inline bool StopFailedHasBeenSet() const { return m_stopFailedHasBeenSet; } /** *

The number of instances with stop_failed status.

*/ inline void SetStopFailed(int value) { m_stopFailedHasBeenSet = true; m_stopFailed = value; } /** *

The number of instances with stop_failed status.

*/ inline InstancesCount& WithStopFailed(int value) { SetStopFailed(value); return *this;} /** *

The number of instances with stopped status.

*/ inline int GetStopped() const{ return m_stopped; } /** *

The number of instances with stopped status.

*/ inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; } /** *

The number of instances with stopped status.

*/ inline void SetStopped(int value) { m_stoppedHasBeenSet = true; m_stopped = value; } /** *

The number of instances with stopped status.

*/ inline InstancesCount& WithStopped(int value) { SetStopped(value); return *this;} /** *

The number of instances with stopping status.

*/ inline int GetStopping() const{ return m_stopping; } /** *

The number of instances with stopping status.

*/ inline bool StoppingHasBeenSet() const { return m_stoppingHasBeenSet; } /** *

The number of instances with stopping status.

*/ inline void SetStopping(int value) { m_stoppingHasBeenSet = true; m_stopping = value; } /** *

The number of instances with stopping status.

*/ inline InstancesCount& WithStopping(int value) { SetStopping(value); return *this;} /** *

The number of instances with terminated status.

*/ inline int GetTerminated() const{ return m_terminated; } /** *

The number of instances with terminated status.

*/ inline bool TerminatedHasBeenSet() const { return m_terminatedHasBeenSet; } /** *

The number of instances with terminated status.

*/ inline void SetTerminated(int value) { m_terminatedHasBeenSet = true; m_terminated = value; } /** *

The number of instances with terminated status.

*/ inline InstancesCount& WithTerminated(int value) { SetTerminated(value); return *this;} /** *

The number of instances with terminating status.

*/ inline int GetTerminating() const{ return m_terminating; } /** *

The number of instances with terminating status.

*/ inline bool TerminatingHasBeenSet() const { return m_terminatingHasBeenSet; } /** *

The number of instances with terminating status.

*/ inline void SetTerminating(int value) { m_terminatingHasBeenSet = true; m_terminating = value; } /** *

The number of instances with terminating status.

*/ inline InstancesCount& WithTerminating(int value) { SetTerminating(value); return *this;} /** *

The number of instances in the Unassigning state.

*/ inline int GetUnassigning() const{ return m_unassigning; } /** *

The number of instances in the Unassigning state.

*/ inline bool UnassigningHasBeenSet() const { return m_unassigningHasBeenSet; } /** *

The number of instances in the Unassigning state.

*/ inline void SetUnassigning(int value) { m_unassigningHasBeenSet = true; m_unassigning = value; } /** *

The number of instances in the Unassigning state.

*/ inline InstancesCount& WithUnassigning(int value) { SetUnassigning(value); return *this;} private: int m_assigning; bool m_assigningHasBeenSet = false; int m_booting; bool m_bootingHasBeenSet = false; int m_connectionLost; bool m_connectionLostHasBeenSet = false; int m_deregistering; bool m_deregisteringHasBeenSet = false; int m_online; bool m_onlineHasBeenSet = false; int m_pending; bool m_pendingHasBeenSet = false; int m_rebooting; bool m_rebootingHasBeenSet = false; int m_registered; bool m_registeredHasBeenSet = false; int m_registering; bool m_registeringHasBeenSet = false; int m_requested; bool m_requestedHasBeenSet = false; int m_runningSetup; bool m_runningSetupHasBeenSet = false; int m_setupFailed; bool m_setupFailedHasBeenSet = false; int m_shuttingDown; bool m_shuttingDownHasBeenSet = false; int m_startFailed; bool m_startFailedHasBeenSet = false; int m_stopFailed; bool m_stopFailedHasBeenSet = false; int m_stopped; bool m_stoppedHasBeenSet = false; int m_stopping; bool m_stoppingHasBeenSet = false; int m_terminated; bool m_terminatedHasBeenSet = false; int m_terminating; bool m_terminatingHasBeenSet = false; int m_unassigning; bool m_unassigningHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws