/* * 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 { /// /// This is the response object from the GetResourceMetrics operation. /// public partial class GetResourceMetricsResponse : AmazonWebServiceResponse { private DateTime? _alignedEndTime; private DateTime? _alignedStartTime; private string _identifier; private List _metricList = new List(); private string _nextToken; /// /// Gets and sets the property AlignedEndTime. /// /// The end time for the returned metrics, after alignment to a granular boundary (as /// specified by PeriodInSeconds). AlignedEndTime will be greater /// than or equal to the value of the user-specified Endtime. /// /// public DateTime AlignedEndTime { get { return this._alignedEndTime.GetValueOrDefault(); } set { this._alignedEndTime = value; } } // Check to see if AlignedEndTime property is set internal bool IsSetAlignedEndTime() { return this._alignedEndTime.HasValue; } /// /// Gets and sets the property AlignedStartTime. /// /// The start time for the returned metrics, after alignment to a granular boundary (as /// specified by PeriodInSeconds). AlignedStartTime will be /// less than or equal to the value of the user-specified StartTime. /// /// public DateTime AlignedStartTime { get { return this._alignedStartTime.GetValueOrDefault(); } set { this._alignedStartTime = value; } } // Check to see if AlignedStartTime property is set internal bool IsSetAlignedStartTime() { return this._alignedStartTime.HasValue; } /// /// Gets and sets the property Identifier. /// /// An immutable identifier for a data source that is unique for an Amazon Web Services /// Region. Performance Insights gathers metrics from this data source. In the console, /// the identifier is shown as ResourceID. When you call DescribeDBInstances, /// the identifier is returned as DbiResourceId. /// /// [AWSProperty(Min=0, Max=256)] public string Identifier { get { return this._identifier; } set { this._identifier = value; } } // Check to see if Identifier property is set internal bool IsSetIdentifier() { return this._identifier != null; } /// /// Gets and sets the property MetricList. /// /// An array of metric results, where each array element contains all of the data points /// for a particular dimension. /// /// public List MetricList { get { return this._metricList; } set { this._metricList = value; } } // Check to see if MetricList property is set internal bool IsSetMetricList() { return this._metricList != null && this._metricList.Count > 0; } /// /// Gets and sets the property NextToken. /// /// An optional pagination token provided by a previous request. If this parameter is /// specified, the response includes only records beyond the token, up to the value specified /// by MaxRecords. /// /// [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }