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

Contains information about the PORT_PROBE action described in the * finding.

See Also:

AWS * API Reference

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

Indicates whether EC2 blocked the port probe to the instance, such as with an * ACL.

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

Indicates whether EC2 blocked the port probe to the instance, such as with an * ACL.

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

Indicates whether EC2 blocked the port probe to the instance, such as with an * ACL.

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

Indicates whether EC2 blocked the port probe to the instance, such as with an * ACL.

*/ inline PortProbeAction& WithBlocked(bool value) { SetBlocked(value); return *this;} /** *

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

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

A list of objects related to port probe details.

*/ inline PortProbeAction& AddPortProbeDetails(PortProbeDetail&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(std::move(value)); return *this; } private: bool m_blocked; bool m_blockedHasBeenSet = false; Aws::Vector m_portProbeDetails; bool m_portProbeDetailsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws