/* * 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 { /// /// The value to be compared with the metric. /// public partial class MetricValue { private List _cidrs = new List(); private long? _count; private double? _number; private List _numbers = new List(); private List _ports = new List(); private List _strings = new List(); /// /// Gets and sets the property Cidrs. /// /// If the comparisonOperator calls for a set of CIDRs, use this to specify /// that set to be compared with the metric. /// /// public List Cidrs { get { return this._cidrs; } set { this._cidrs = value; } } // Check to see if Cidrs property is set internal bool IsSetCidrs() { return this._cidrs != null && this._cidrs.Count > 0; } /// /// Gets and sets the property Count. /// /// If the comparisonOperator calls for a numeric value, use this to specify /// that numeric value to be compared with the metric. /// /// [AWSProperty(Min=0)] public long Count { get { return this._count.GetValueOrDefault(); } set { this._count = value; } } // Check to see if Count property is set internal bool IsSetCount() { return this._count.HasValue; } /// /// Gets and sets the property Number. /// /// The numeral value of a metric. /// /// public double Number { get { return this._number.GetValueOrDefault(); } set { this._number = value; } } // Check to see if Number property is set internal bool IsSetNumber() { return this._number.HasValue; } /// /// Gets and sets the property Numbers. /// /// The numeral values of a metric. /// /// public List Numbers { get { return this._numbers; } set { this._numbers = value; } } // Check to see if Numbers property is set internal bool IsSetNumbers() { return this._numbers != null && this._numbers.Count > 0; } /// /// Gets and sets the property Ports. /// /// If the comparisonOperator calls for a set of ports, use this to specify /// that set to be compared with the metric. /// /// public List Ports { get { return this._ports; } set { this._ports = value; } } // Check to see if Ports property is set internal bool IsSetPorts() { return this._ports != null && this._ports.Count > 0; } /// /// Gets and sets the property Strings. /// /// The string values of a metric. /// /// public List Strings { get { return this._strings; } set { this._strings = value; } } // Check to see if Strings property is set internal bool IsSetStrings() { return this._strings != null && this._strings.Count > 0; } } }