/* * 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 PutPolicy operation. /// Creates an Firewall Manager policy. /// /// /// /// Firewall Manager provides the following types of policies: /// /// /// /// Each policy is specific to one of the types. If you want to enforce more than one /// policy type across accounts, create multiple policies. You can create multiple policies /// for each type. /// /// /// /// You must be subscribed to Shield Advanced to create a Shield Advanced policy. For /// more information about subscribing to Shield Advanced, see CreateSubscription. /// /// public partial class PutPolicyRequest : AmazonFMSRequest { private Policy _policy; private List _tagList = new List(); /// /// Gets and sets the property Policy. /// /// The details of the Firewall Manager policy to be created. /// /// [AWSProperty(Required=true)] public Policy Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// /// Gets and sets the property TagList. /// /// The tags to add to the Amazon Web Services resource. /// /// [AWSProperty(Min=0, Max=200)] public List TagList { get { return this._tagList; } set { this._tagList = value; } } // Check to see if TagList property is set internal bool IsSetTagList() { return this._tagList != null && this._tagList.Count > 0; } } }