/* * 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 fms-2018-01-01.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.FMS.Model { /// /// Container for the parameters to the GetViolationDetails operation. /// Retrieves violations for a resource based on the specified Firewall Manager policy /// and Amazon Web Services account. /// public partial class GetViolationDetailsRequest : AmazonFMSRequest { private string _memberAccount; private string _policyId; private string _resourceId; private string _resourceType; /// /// Gets and sets the property MemberAccount. /// /// The Amazon Web Services account ID that you want the details for. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string MemberAccount { get { return this._memberAccount; } set { this._memberAccount = value; } } // Check to see if MemberAccount property is set internal bool IsSetMemberAccount() { return this._memberAccount != null; } /// /// Gets and sets the property PolicyId. /// /// The ID of the Firewall Manager policy that you want the details for. This currently /// only supports security group content audit policies. /// /// [AWSProperty(Required=true, Min=36, Max=36)] public string PolicyId { get { return this._policyId; } set { this._policyId = value; } } // Check to see if PolicyId property is set internal bool IsSetPolicyId() { return this._policyId != null; } /// /// Gets and sets the property ResourceId. /// /// The ID of the resource that has violations. /// /// [AWSProperty(Required=true, Min=1, Max=1024)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// /// Gets and sets the property ResourceType. /// /// The resource type. This is in the format shown in the Amazon /// Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance, /// AWS::EC2::NetworkInterface, AWS::EC2::SecurityGroup, AWS::NetworkFirewall::FirewallPolicy, /// and AWS::EC2::Subnet. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } } }