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

Contains information about the port for the local connection.

See * Also:

AWS * API Reference

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

The port number of the local connection.

*/ inline int GetPort() const{ return m_port; } /** *

The port number of the local connection.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port number of the local connection.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port number of the local connection.

*/ inline LocalPortDetails& WithPort(int value) { SetPort(value); return *this;} /** *

The port name of the local connection.

*/ inline const Aws::String& GetPortName() const{ return m_portName; } /** *

The port name of the local connection.

*/ inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; } /** *

The port name of the local connection.

*/ inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; } /** *

The port name of the local connection.

*/ inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); } /** *

The port name of the local connection.

*/ inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); } /** *

The port name of the local connection.

*/ inline LocalPortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;} /** *

The port name of the local connection.

*/ inline LocalPortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;} /** *

The port name of the local connection.

*/ inline LocalPortDetails& WithPortName(const char* value) { SetPortName(value); return *this;} private: int m_port; bool m_portHasBeenSet = false; Aws::String m_portName; bool m_portNameHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws