/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SecurityHub.Model { /// /// Provides details about one of the following actions that affects or that was taken /// on a resource: /// /// /// public partial class Action { private string _actionType; private AwsApiCallAction _awsApiCallAction; private DnsRequestAction _dnsRequestAction; private NetworkConnectionAction _networkConnectionAction; private PortProbeAction _portProbeAction; /// /// Gets and sets the property ActionType. /// /// The type of action that was detected. The possible action types are: /// /// /// public string ActionType { get { return this._actionType; } set { this._actionType = value; } } // Check to see if ActionType property is set internal bool IsSetActionType() { return this._actionType != null; } /// /// Gets and sets the property AwsApiCallAction. /// /// Included if ActionType is AWS_API_CALL. Provides details /// about the API call that was detected. /// /// public AwsApiCallAction AwsApiCallAction { get { return this._awsApiCallAction; } set { this._awsApiCallAction = value; } } // Check to see if AwsApiCallAction property is set internal bool IsSetAwsApiCallAction() { return this._awsApiCallAction != null; } /// /// Gets and sets the property DnsRequestAction. /// /// Included if ActionType is DNS_REQUEST. Provides details /// about the DNS request that was detected. /// /// public DnsRequestAction DnsRequestAction { get { return this._dnsRequestAction; } set { this._dnsRequestAction = value; } } // Check to see if DnsRequestAction property is set internal bool IsSetDnsRequestAction() { return this._dnsRequestAction != null; } /// /// Gets and sets the property NetworkConnectionAction. /// /// Included if ActionType is NETWORK_CONNECTION. Provides details /// about the network connection that was detected. /// /// public NetworkConnectionAction NetworkConnectionAction { get { return this._networkConnectionAction; } set { this._networkConnectionAction = value; } } // Check to see if NetworkConnectionAction property is set internal bool IsSetNetworkConnectionAction() { return this._networkConnectionAction != null; } /// /// Gets and sets the property PortProbeAction. /// /// Included if ActionType is PORT_PROBE. Provides details about /// the port probe that was detected. /// /// public PortProbeAction PortProbeAction { get { return this._portProbeAction; } set { this._portProbeAction = value; } } // Check to see if PortProbeAction property is set internal bool IsSetPortProbeAction() { return this._portProbeAction != null; } } }