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

A list of port ranges that are permitted to allow inbound traffic from all * public IP addresses. To specify a single port, use the same value for * MinRange and MaxRange.

See Also:

AWS * API Reference

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

The smallest port number in a specified range of port numbers.

*/ inline int GetMinRange() const{ return m_minRange; } /** *

The smallest port number in a specified range of port numbers.

*/ inline bool MinRangeHasBeenSet() const { return m_minRangeHasBeenSet; } /** *

The smallest port number in a specified range of port numbers.

*/ inline void SetMinRange(int value) { m_minRangeHasBeenSet = true; m_minRange = value; } /** *

The smallest port number in a specified range of port numbers.

*/ inline PortRange& WithMinRange(int value) { SetMinRange(value); return *this;} /** *

The smallest port number in a specified range of port numbers.

*/ inline int GetMaxRange() const{ return m_maxRange; } /** *

The smallest port number in a specified range of port numbers.

*/ inline bool MaxRangeHasBeenSet() const { return m_maxRangeHasBeenSet; } /** *

The smallest port number in a specified range of port numbers.

*/ inline void SetMaxRange(int value) { m_maxRangeHasBeenSet = true; m_maxRange = value; } /** *

The smallest port number in a specified range of port numbers.

*/ inline PortRange& WithMaxRange(int value) { SetMaxRange(value); return *this;} private: int m_minRange; bool m_minRangeHasBeenSet = false; int m_maxRange; bool m_maxRangeHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws