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

A socket address with a port range.

See Also:

AWS * API Reference

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

IPv4 socket address.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

IPv4 socket address.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

IPv4 socket address.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

IPv4 socket address.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

IPv4 socket address.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

IPv4 socket address.

*/ inline RangedSocketAddress& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

IPv4 socket address.

*/ inline RangedSocketAddress& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

IPv4 socket address.

*/ inline RangedSocketAddress& WithName(const char* value) { SetName(value); return *this;} /** *

Port range of a socket address.

*/ inline const IntegerRange& GetPortRange() const{ return m_portRange; } /** *

Port range of a socket address.

*/ inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; } /** *

Port range of a socket address.

*/ inline void SetPortRange(const IntegerRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; } /** *

Port range of a socket address.

*/ inline void SetPortRange(IntegerRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); } /** *

Port range of a socket address.

*/ inline RangedSocketAddress& WithPortRange(const IntegerRange& value) { SetPortRange(value); return *this;} /** *

Port range of a socket address.

*/ inline RangedSocketAddress& WithPortRange(IntegerRange&& value) { SetPortRange(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; IntegerRange m_portRange; bool m_portRangeHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws