/* * 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 { /// /// This is the response object from the UpdateSecurityProfile operation. /// public partial class UpdateSecurityProfileResponse : AmazonWebServiceResponse { private List _additionalMetricsToRetain = new List(); private List _additionalMetricsToRetainV2 = new List(); private Dictionary _alertTargets = new Dictionary(); private List _behaviors = new List(); private DateTime? _creationDate; private DateTime? _lastModifiedDate; private string _securityProfileArn; private string _securityProfileDescription; private string _securityProfileName; private long? _version; /// /// Gets and sets the property AdditionalMetricsToRetain. /// /// Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead. /// /// /// /// /// A list of metrics whose data is retained (stored). By default, data is retained for /// any metric used in the security profile's behaviors, but it is also retained /// for any metric specified here. /// /// [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. /// /// Where the alerts are sent. (Alerts are always sent to the console.) /// /// 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 CreationDate. /// /// The time the security profile was created. /// /// public DateTime CreationDate { get { return this._creationDate.GetValueOrDefault(); } set { this._creationDate = value; } } // Check to see if CreationDate property is set internal bool IsSetCreationDate() { return this._creationDate.HasValue; } /// /// Gets and sets the property LastModifiedDate. /// /// The time the security profile was last modified. /// /// public DateTime LastModifiedDate { get { return this._lastModifiedDate.GetValueOrDefault(); } set { this._lastModifiedDate = value; } } // Check to see if LastModifiedDate property is set internal bool IsSetLastModifiedDate() { return this._lastModifiedDate.HasValue; } /// /// Gets and sets the property SecurityProfileArn. /// /// The ARN of the security profile that was updated. /// /// public string SecurityProfileArn { get { return this._securityProfileArn; } set { this._securityProfileArn = value; } } // Check to see if SecurityProfileArn property is set internal bool IsSetSecurityProfileArn() { return this._securityProfileArn != null; } /// /// Gets and sets the property SecurityProfileDescription. /// /// The 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 of the security profile that was updated. /// /// [AWSProperty(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 Version. /// /// The updated version of the security profile. /// /// public long Version { get { return this._version.GetValueOrDefault(); } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version.HasValue; } } }