/* * 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 iot-2015-05-28.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.IoT.Model { /// /// Container for the parameters to the CreateSecurityProfile operation. /// Creates a Device Defender security profile. /// /// /// /// Requires permission to access the CreateSecurityProfile /// action. /// /// public partial class CreateSecurityProfileRequest : AmazonIoTRequest { private List _additionalMetricsToRetain = new List(); private List _additionalMetricsToRetainV2 = new List(); private Dictionary _alertTargets = new Dictionary(); private List _behaviors = new List(); private string _securityProfileDescription; private string _securityProfileName; private List _tags = new List(); /// /// Gets and sets the property AdditionalMetricsToRetain. /// /// Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead. /// /// /// /// /// A list of metrics whose data is retained (stored). By default, data is retained for /// any metric used in the profile's behaviors, but it is also retained for /// any metric specified here. Can be used with custom metrics; cannot be used with dimensions. /// /// [Obsolete("Use additionalMetricsToRetainV2.")] public List AdditionalMetricsToRetain { get { return this._additionalMetricsToRetain; } set { this._additionalMetricsToRetain = value; } } // Check to see if AdditionalMetricsToRetain property is set internal bool IsSetAdditionalMetricsToRetain() { return this._additionalMetricsToRetain != null && this._additionalMetricsToRetain.Count > 0; } /// /// Gets and sets the property AdditionalMetricsToRetainV2. /// /// A list of metrics whose data is retained (stored). By default, data is retained for /// any metric used in the profile's behaviors, but it is also retained for /// any metric specified here. Can be used with custom metrics; cannot be used with dimensions. /// /// public List AdditionalMetricsToRetainV2 { get { return this._additionalMetricsToRetainV2; } set { this._additionalMetricsToRetainV2 = value; } } // Check to see if AdditionalMetricsToRetainV2 property is set internal bool IsSetAdditionalMetricsToRetainV2() { return this._additionalMetricsToRetainV2 != null && this._additionalMetricsToRetainV2.Count > 0; } /// /// Gets and sets the property AlertTargets. /// /// Specifies the destinations to which alerts are sent. (Alerts are always sent to the /// console.) Alerts are generated when a device (thing) violates a behavior. /// /// public Dictionary AlertTargets { get { return this._alertTargets; } set { this._alertTargets = value; } } // Check to see if AlertTargets property is set internal bool IsSetAlertTargets() { return this._alertTargets != null && this._alertTargets.Count > 0; } /// /// Gets and sets the property Behaviors. /// /// Specifies the behaviors that, when violated by a device (thing), cause an alert. /// /// [AWSProperty(Max=100)] public List Behaviors { get { return this._behaviors; } set { this._behaviors = value; } } // Check to see if Behaviors property is set internal bool IsSetBehaviors() { return this._behaviors != null && this._behaviors.Count > 0; } /// /// Gets and sets the property SecurityProfileDescription. /// /// A description of the security profile. /// /// [AWSProperty(Max=1000)] public string SecurityProfileDescription { get { return this._securityProfileDescription; } set { this._securityProfileDescription = value; } } // Check to see if SecurityProfileDescription property is set internal bool IsSetSecurityProfileDescription() { return this._securityProfileDescription != null; } /// /// Gets and sets the property SecurityProfileName. /// /// The name you are giving to the security profile. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string SecurityProfileName { get { return this._securityProfileName; } set { this._securityProfileName = value; } } // Check to see if SecurityProfileName property is set internal bool IsSetSecurityProfileName() { return this._securityProfileName != null; } /// /// Gets and sets the property Tags. /// /// Metadata that can be used to manage the security profile. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }