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

A range of ports.

See Also:

AWS * API Reference

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

The first port in the port range.

*/ inline int GetBegin() const{ return m_begin; } /** *

The first port in the port range.

*/ inline bool BeginHasBeenSet() const { return m_beginHasBeenSet; } /** *

The first port in the port range.

*/ inline void SetBegin(int value) { m_beginHasBeenSet = true; m_begin = value; } /** *

The first port in the port range.

*/ inline PortRange& WithBegin(int value) { SetBegin(value); return *this;} /** *

The last port in the port range.

*/ inline int GetEnd() const{ return m_end; } /** *

The last port in the port range.

*/ inline bool EndHasBeenSet() const { return m_endHasBeenSet; } /** *

The last port in the port range.

*/ inline void SetEnd(int value) { m_endHasBeenSet = true; m_end = value; } /** *

The last port in the port range.

*/ inline PortRange& WithEnd(int value) { SetEnd(value); return *this;} private: int m_begin; bool m_beginHasBeenSet = false; int m_end; bool m_endHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws