/* * 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 pi-2018-02-27.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.PI.Model { /// /// An object that includes the requested dimension key values and aggregated metric values /// within a dimension group. /// public partial class DimensionKeyDescription { private Dictionary _additionalMetrics = new Dictionary(); private Dictionary _dimensions = new Dictionary(); private List _partitions = new List(); private double? _total; /// /// Gets and sets the property AdditionalMetrics. /// /// A map that contains the value for each additional metric. /// /// public Dictionary AdditionalMetrics { get { return this._additionalMetrics; } set { this._additionalMetrics = value; } } // Check to see if AdditionalMetrics property is set internal bool IsSetAdditionalMetrics() { return this._additionalMetrics != null && this._additionalMetrics.Count > 0; } /// /// Gets and sets the property Dimensions. /// /// A map of name-value pairs for the dimensions in the group. /// /// public Dictionary Dimensions { get { return this._dimensions; } set { this._dimensions = value; } } // Check to see if Dimensions property is set internal bool IsSetDimensions() { return this._dimensions != null && this._dimensions.Count > 0; } /// /// Gets and sets the property Partitions. /// /// If PartitionBy was specified, PartitionKeys contains the /// dimensions that were. /// /// public List Partitions { get { return this._partitions; } set { this._partitions = value; } } // Check to see if Partitions property is set internal bool IsSetPartitions() { return this._partitions != null && this._partitions.Count > 0; } /// /// Gets and sets the property Total. /// /// The aggregated metric value for the dimensions, over the requested time range. /// /// public double Total { get { return this._total.GetValueOrDefault(); } set { this._total = value; } } // Check to see if Total property is set internal bool IsSetTotal() { return this._total.HasValue; } } }