/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the remote port.See Also:
AWS
* API Reference
The port number of the remote connection.
*/ inline int GetPort() const{ return m_port; } /** *The port number of the remote connection.
*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *The port number of the remote connection.
*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *The port number of the remote connection.
*/ inline RemotePortDetails& WithPort(int value) { SetPort(value); return *this;} /** *The port name of the remote connection.
*/ inline const Aws::String& GetPortName() const{ return m_portName; } /** *The port name of the remote connection.
*/ inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; } /** *The port name of the remote connection.
*/ inline void SetPortName(const Aws::String& value) { m_portNameHasBeenSet = true; m_portName = value; } /** *The port name of the remote connection.
*/ inline void SetPortName(Aws::String&& value) { m_portNameHasBeenSet = true; m_portName = std::move(value); } /** *The port name of the remote connection.
*/ inline void SetPortName(const char* value) { m_portNameHasBeenSet = true; m_portName.assign(value); } /** *The port name of the remote connection.
*/ inline RemotePortDetails& WithPortName(const Aws::String& value) { SetPortName(value); return *this;} /** *The port name of the remote connection.
*/ inline RemotePortDetails& WithPortName(Aws::String&& value) { SetPortName(std::move(value)); return *this;} /** *The port name of the remote connection.
*/ inline RemotePortDetails& 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