/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents summary information about the health of an instance. For more
* information, see Health
* Colors and Statuses.See Also:
AWS
* API Reference
Grey. AWS Elastic Beanstalk and the health agent are reporting no * data on an instance.
*/ inline int GetNoData() const{ return m_noData; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting no * data on an instance.
*/ inline bool NoDataHasBeenSet() const { return m_noDataHasBeenSet; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting no * data on an instance.
*/ inline void SetNoData(int value) { m_noDataHasBeenSet = true; m_noData = value; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting no * data on an instance.
*/ inline InstanceHealthSummary& WithNoData(int value) { SetNoData(value); return *this;} /** *Grey. AWS Elastic Beanstalk and the health agent are reporting an * insufficient amount of data on an instance.
*/ inline int GetUnknown() const{ return m_unknown; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting an * insufficient amount of data on an instance.
*/ inline bool UnknownHasBeenSet() const { return m_unknownHasBeenSet; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting an * insufficient amount of data on an instance.
*/ inline void SetUnknown(int value) { m_unknownHasBeenSet = true; m_unknown = value; } /** *Grey. AWS Elastic Beanstalk and the health agent are reporting an * insufficient amount of data on an instance.
*/ inline InstanceHealthSummary& WithUnknown(int value) { SetUnknown(value); return *this;} /** *Grey. An operation is in progress on an instance within the command * timeout.
*/ inline int GetPending() const{ return m_pending; } /** *Grey. An operation is in progress on an instance within the command * timeout.
*/ inline bool PendingHasBeenSet() const { return m_pendingHasBeenSet; } /** *Grey. An operation is in progress on an instance within the command * timeout.
*/ inline void SetPending(int value) { m_pendingHasBeenSet = true; m_pending = value; } /** *Grey. An operation is in progress on an instance within the command * timeout.
*/ inline InstanceHealthSummary& WithPending(int value) { SetPending(value); return *this;} /** *Green. An instance is passing health checks and the health agent is * not reporting any problems.
*/ inline int GetOk() const{ return m_ok; } /** *Green. An instance is passing health checks and the health agent is * not reporting any problems.
*/ inline bool OkHasBeenSet() const { return m_okHasBeenSet; } /** *Green. An instance is passing health checks and the health agent is * not reporting any problems.
*/ inline void SetOk(int value) { m_okHasBeenSet = true; m_ok = value; } /** *Green. An instance is passing health checks and the health agent is * not reporting any problems.
*/ inline InstanceHealthSummary& WithOk(int value) { SetOk(value); return *this;} /** *Green. An operation is in progress on an instance.
*/ inline int GetInfo() const{ return m_info; } /** *Green. An operation is in progress on an instance.
*/ inline bool InfoHasBeenSet() const { return m_infoHasBeenSet; } /** *Green. An operation is in progress on an instance.
*/ inline void SetInfo(int value) { m_infoHasBeenSet = true; m_info = value; } /** *Green. An operation is in progress on an instance.
*/ inline InstanceHealthSummary& WithInfo(int value) { SetInfo(value); return *this;} /** *Yellow. The health agent is reporting a moderate number of request * failures or other issues for an instance or environment.
*/ inline int GetWarning() const{ return m_warning; } /** *Yellow. The health agent is reporting a moderate number of request * failures or other issues for an instance or environment.
*/ inline bool WarningHasBeenSet() const { return m_warningHasBeenSet; } /** *Yellow. The health agent is reporting a moderate number of request * failures or other issues for an instance or environment.
*/ inline void SetWarning(int value) { m_warningHasBeenSet = true; m_warning = value; } /** *Yellow. The health agent is reporting a moderate number of request * failures or other issues for an instance or environment.
*/ inline InstanceHealthSummary& WithWarning(int value) { SetWarning(value); return *this;} /** *Red. The health agent is reporting a high number of request failures * or other issues for an instance or environment.
*/ inline int GetDegraded() const{ return m_degraded; } /** *Red. The health agent is reporting a high number of request failures * or other issues for an instance or environment.
*/ inline bool DegradedHasBeenSet() const { return m_degradedHasBeenSet; } /** *Red. The health agent is reporting a high number of request failures * or other issues for an instance or environment.
*/ inline void SetDegraded(int value) { m_degradedHasBeenSet = true; m_degraded = value; } /** *Red. The health agent is reporting a high number of request failures * or other issues for an instance or environment.
*/ inline InstanceHealthSummary& WithDegraded(int value) { SetDegraded(value); return *this;} /** *Red. The health agent is reporting a very high number of request * failures or other issues for an instance or environment.
*/ inline int GetSevere() const{ return m_severe; } /** *Red. The health agent is reporting a very high number of request * failures or other issues for an instance or environment.
*/ inline bool SevereHasBeenSet() const { return m_severeHasBeenSet; } /** *Red. The health agent is reporting a very high number of request * failures or other issues for an instance or environment.
*/ inline void SetSevere(int value) { m_severeHasBeenSet = true; m_severe = value; } /** *Red. The health agent is reporting a very high number of request * failures or other issues for an instance or environment.
*/ inline InstanceHealthSummary& WithSevere(int value) { SetSevere(value); return *this;} private: int m_noData; bool m_noDataHasBeenSet = false; int m_unknown; bool m_unknownHasBeenSet = false; int m_pending; bool m_pendingHasBeenSet = false; int m_ok; bool m_okHasBeenSet = false; int m_info; bool m_infoHasBeenSet = false; int m_warning; bool m_warningHasBeenSet = false; int m_degraded; bool m_degradedHasBeenSet = false; int m_severe; bool m_severeHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws