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

Provided if ActionType is PORT_PROBE. It provides * details about the attempted port probe that was detected.

See * Also:

AWS * API Reference

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

Information about the ports affected by the port probe.

*/ inline const Aws::Vector& GetPortProbeDetails() const{ return m_portProbeDetails; } /** *

Information about the ports affected by the port probe.

*/ inline bool PortProbeDetailsHasBeenSet() const { return m_portProbeDetailsHasBeenSet; } /** *

Information about the ports affected by the port probe.

*/ inline void SetPortProbeDetails(const Aws::Vector& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = value; } /** *

Information about the ports affected by the port probe.

*/ inline void SetPortProbeDetails(Aws::Vector&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = std::move(value); } /** *

Information about the ports affected by the port probe.

*/ inline PortProbeAction& WithPortProbeDetails(const Aws::Vector& value) { SetPortProbeDetails(value); return *this;} /** *

Information about the ports affected by the port probe.

*/ inline PortProbeAction& WithPortProbeDetails(Aws::Vector&& value) { SetPortProbeDetails(std::move(value)); return *this;} /** *

Information about the ports affected by the port probe.

*/ inline PortProbeAction& AddPortProbeDetails(const PortProbeDetail& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(value); return *this; } /** *

Information about the ports affected by the port probe.

*/ inline PortProbeAction& AddPortProbeDetails(PortProbeDetail&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(std::move(value)); return *this; } /** *

Indicates whether the port probe was blocked.

*/ inline bool GetBlocked() const{ return m_blocked; } /** *

Indicates whether the port probe was blocked.

*/ inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; } /** *

Indicates whether the port probe was blocked.

*/ inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; } /** *

Indicates whether the port probe was blocked.

*/ inline PortProbeAction& WithBlocked(bool value) { SetBlocked(value); return *this;} private: Aws::Vector m_portProbeDetails; bool m_portProbeDetailsHasBeenSet = false; bool m_blocked; bool m_blockedHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws