/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

Represents the percentage of requests over the last 10 seconds that resulted * in each type of status code response. For more information, see Status Code * Definitions.

See Also:

AWS * API Reference

*/ class StatusCodes { public: AWS_ELASTICBEANSTALK_API StatusCodes(); AWS_ELASTICBEANSTALK_API StatusCodes(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API StatusCodes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The percentage of requests over the last 10 seconds that resulted in a 2xx * (200, 201, etc.) status code.

*/ inline int GetStatus2xx() const{ return m_status2xx; } /** *

The percentage of requests over the last 10 seconds that resulted in a 2xx * (200, 201, etc.) status code.

*/ inline bool Status2xxHasBeenSet() const { return m_status2xxHasBeenSet; } /** *

The percentage of requests over the last 10 seconds that resulted in a 2xx * (200, 201, etc.) status code.

*/ inline void SetStatus2xx(int value) { m_status2xxHasBeenSet = true; m_status2xx = value; } /** *

The percentage of requests over the last 10 seconds that resulted in a 2xx * (200, 201, etc.) status code.

*/ inline StatusCodes& WithStatus2xx(int value) { SetStatus2xx(value); return *this;} /** *

The percentage of requests over the last 10 seconds that resulted in a 3xx * (300, 301, etc.) status code.

*/ inline int GetStatus3xx() const{ return m_status3xx; } /** *

The percentage of requests over the last 10 seconds that resulted in a 3xx * (300, 301, etc.) status code.

*/ inline bool Status3xxHasBeenSet() const { return m_status3xxHasBeenSet; } /** *

The percentage of requests over the last 10 seconds that resulted in a 3xx * (300, 301, etc.) status code.

*/ inline void SetStatus3xx(int value) { m_status3xxHasBeenSet = true; m_status3xx = value; } /** *

The percentage of requests over the last 10 seconds that resulted in a 3xx * (300, 301, etc.) status code.

*/ inline StatusCodes& WithStatus3xx(int value) { SetStatus3xx(value); return *this;} /** *

The percentage of requests over the last 10 seconds that resulted in a 4xx * (400, 401, etc.) status code.

*/ inline int GetStatus4xx() const{ return m_status4xx; } /** *

The percentage of requests over the last 10 seconds that resulted in a 4xx * (400, 401, etc.) status code.

*/ inline bool Status4xxHasBeenSet() const { return m_status4xxHasBeenSet; } /** *

The percentage of requests over the last 10 seconds that resulted in a 4xx * (400, 401, etc.) status code.

*/ inline void SetStatus4xx(int value) { m_status4xxHasBeenSet = true; m_status4xx = value; } /** *

The percentage of requests over the last 10 seconds that resulted in a 4xx * (400, 401, etc.) status code.

*/ inline StatusCodes& WithStatus4xx(int value) { SetStatus4xx(value); return *this;} /** *

The percentage of requests over the last 10 seconds that resulted in a 5xx * (500, 501, etc.) status code.

*/ inline int GetStatus5xx() const{ return m_status5xx; } /** *

The percentage of requests over the last 10 seconds that resulted in a 5xx * (500, 501, etc.) status code.

*/ inline bool Status5xxHasBeenSet() const { return m_status5xxHasBeenSet; } /** *

The percentage of requests over the last 10 seconds that resulted in a 5xx * (500, 501, etc.) status code.

*/ inline void SetStatus5xx(int value) { m_status5xxHasBeenSet = true; m_status5xx = value; } /** *

The percentage of requests over the last 10 seconds that resulted in a 5xx * (500, 501, etc.) status code.

*/ inline StatusCodes& WithStatus5xx(int value) { SetStatus5xx(value); return *this;} private: int m_status2xx; bool m_status2xxHasBeenSet = false; int m_status3xx; bool m_status3xxHasBeenSet = false; int m_status4xx; bool m_status4xxHasBeenSet = false; int m_status5xx; bool m_status5xxHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws