/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #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 actions.

See Also:

AWS * API Reference

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

The GuardDuty finding activity type.

*/ inline const Aws::String& GetActionType() const{ return m_actionType; } /** *

The GuardDuty finding activity type.

*/ inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } /** *

The GuardDuty finding activity type.

*/ inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } /** *

The GuardDuty finding activity type.

*/ inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } /** *

The GuardDuty finding activity type.

*/ inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); } /** *

The GuardDuty finding activity type.

*/ inline Action& WithActionType(const Aws::String& value) { SetActionType(value); return *this;} /** *

The GuardDuty finding activity type.

*/ inline Action& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;} /** *

The GuardDuty finding activity type.

*/ inline Action& WithActionType(const char* value) { SetActionType(value); return *this;} /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline const AwsApiCallAction& GetAwsApiCallAction() const{ return m_awsApiCallAction; } /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline bool AwsApiCallActionHasBeenSet() const { return m_awsApiCallActionHasBeenSet; } /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline void SetAwsApiCallAction(const AwsApiCallAction& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = value; } /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline void SetAwsApiCallAction(AwsApiCallAction&& value) { m_awsApiCallActionHasBeenSet = true; m_awsApiCallAction = std::move(value); } /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline Action& WithAwsApiCallAction(const AwsApiCallAction& value) { SetAwsApiCallAction(value); return *this;} /** *

Information about the AWS_API_CALL action described in this finding.

*/ inline Action& WithAwsApiCallAction(AwsApiCallAction&& value) { SetAwsApiCallAction(std::move(value)); return *this;} /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline const DnsRequestAction& GetDnsRequestAction() const{ return m_dnsRequestAction; } /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline bool DnsRequestActionHasBeenSet() const { return m_dnsRequestActionHasBeenSet; } /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline void SetDnsRequestAction(const DnsRequestAction& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = value; } /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline void SetDnsRequestAction(DnsRequestAction&& value) { m_dnsRequestActionHasBeenSet = true; m_dnsRequestAction = std::move(value); } /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline Action& WithDnsRequestAction(const DnsRequestAction& value) { SetDnsRequestAction(value); return *this;} /** *

Information about the DNS_REQUEST action described in this finding.

*/ inline Action& WithDnsRequestAction(DnsRequestAction&& value) { SetDnsRequestAction(std::move(value)); return *this;} /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline const NetworkConnectionAction& GetNetworkConnectionAction() const{ return m_networkConnectionAction; } /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline bool NetworkConnectionActionHasBeenSet() const { return m_networkConnectionActionHasBeenSet; } /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline void SetNetworkConnectionAction(const NetworkConnectionAction& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = value; } /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline void SetNetworkConnectionAction(NetworkConnectionAction&& value) { m_networkConnectionActionHasBeenSet = true; m_networkConnectionAction = std::move(value); } /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline Action& WithNetworkConnectionAction(const NetworkConnectionAction& value) { SetNetworkConnectionAction(value); return *this;} /** *

Information about the NETWORK_CONNECTION action described in this * finding.

*/ inline Action& WithNetworkConnectionAction(NetworkConnectionAction&& value) { SetNetworkConnectionAction(std::move(value)); return *this;} /** *

Information about the PORT_PROBE action described in this finding.

*/ inline const PortProbeAction& GetPortProbeAction() const{ return m_portProbeAction; } /** *

Information about the PORT_PROBE action described in this finding.

*/ inline bool PortProbeActionHasBeenSet() const { return m_portProbeActionHasBeenSet; } /** *

Information about the PORT_PROBE action described in this finding.

*/ inline void SetPortProbeAction(const PortProbeAction& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = value; } /** *

Information about the PORT_PROBE action described in this finding.

*/ inline void SetPortProbeAction(PortProbeAction&& value) { m_portProbeActionHasBeenSet = true; m_portProbeAction = std::move(value); } /** *

Information about the PORT_PROBE action described in this finding.

*/ inline Action& WithPortProbeAction(const PortProbeAction& value) { SetPortProbeAction(value); return *this;} /** *

Information about the PORT_PROBE action described in this finding.

*/ inline Action& WithPortProbeAction(PortProbeAction&& value) { SetPortProbeAction(std::move(value)); return *this;} /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline const KubernetesApiCallAction& GetKubernetesApiCallAction() const{ return m_kubernetesApiCallAction; } /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline bool KubernetesApiCallActionHasBeenSet() const { return m_kubernetesApiCallActionHasBeenSet; } /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline void SetKubernetesApiCallAction(const KubernetesApiCallAction& value) { m_kubernetesApiCallActionHasBeenSet = true; m_kubernetesApiCallAction = value; } /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline void SetKubernetesApiCallAction(KubernetesApiCallAction&& value) { m_kubernetesApiCallActionHasBeenSet = true; m_kubernetesApiCallAction = std::move(value); } /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline Action& WithKubernetesApiCallAction(const KubernetesApiCallAction& value) { SetKubernetesApiCallAction(value); return *this;} /** *

Information about the Kubernetes API call action described in this * finding.

*/ inline Action& WithKubernetesApiCallAction(KubernetesApiCallAction&& value) { SetKubernetesApiCallAction(std::move(value)); return *this;} /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline const RdsLoginAttemptAction& GetRdsLoginAttemptAction() const{ return m_rdsLoginAttemptAction; } /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline bool RdsLoginAttemptActionHasBeenSet() const { return m_rdsLoginAttemptActionHasBeenSet; } /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline void SetRdsLoginAttemptAction(const RdsLoginAttemptAction& value) { m_rdsLoginAttemptActionHasBeenSet = true; m_rdsLoginAttemptAction = value; } /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline void SetRdsLoginAttemptAction(RdsLoginAttemptAction&& value) { m_rdsLoginAttemptActionHasBeenSet = true; m_rdsLoginAttemptAction = std::move(value); } /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline Action& WithRdsLoginAttemptAction(const RdsLoginAttemptAction& value) { SetRdsLoginAttemptAction(value); return *this;} /** *

Information about RDS_LOGIN_ATTEMPT action described in this * finding.

*/ inline Action& WithRdsLoginAttemptAction(RdsLoginAttemptAction&& value) { SetRdsLoginAttemptAction(std::move(value)); return *this;} private: Aws::String m_actionType; bool m_actionTypeHasBeenSet = false; AwsApiCallAction m_awsApiCallAction; bool m_awsApiCallActionHasBeenSet = false; DnsRequestAction m_dnsRequestAction; bool m_dnsRequestActionHasBeenSet = false; NetworkConnectionAction m_networkConnectionAction; bool m_networkConnectionActionHasBeenSet = false; PortProbeAction m_portProbeAction; bool m_portProbeActionHasBeenSet = false; KubernetesApiCallAction m_kubernetesApiCallAction; bool m_kubernetesApiCallActionHasBeenSet = false; RdsLoginAttemptAction m_rdsLoginAttemptAction; bool m_rdsLoginAttemptActionHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws