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

For NetworkConnectionAction and PortProbeDetails, * LocalPortDetails provides information about the local port that was * involved in the action.

See Also:

AWS * API Reference

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

The number of the port.

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

The number of the port.

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

The number of the port.

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

The number of the port.

*/ inline ActionLocalPortDetails& 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 ActionLocalPortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;} /** *

The port name of the local connection.

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

The port name of the local connection.

*/ inline ActionLocalPortDetails& 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 SecurityHub } // namespace Aws