/*
* 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 compute-optimizer-2019-11-01.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.ComputeOptimizer.Model
{
///
/// Container for the parameters to the GetECSServiceRecommendationProjectedMetrics operation.
/// Returns the projected metrics of Amazon ECS service recommendations.
///
public partial class GetECSServiceRecommendationProjectedMetricsRequest : AmazonComputeOptimizerRequest
{
private DateTime? _endTime;
private int? _period;
private string _serviceArn;
private DateTime? _startTime;
private MetricStatistic _stat;
///
/// Gets and sets the property EndTime.
///
/// The timestamp of the last projected metrics data point to return.
///
///
[AWSProperty(Required=true)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property Period.
///
/// The granularity, in seconds, of the projected metrics data points.
///
///
[AWSProperty(Required=true)]
public int Period
{
get { return this._period.GetValueOrDefault(); }
set { this._period = value; }
}
// Check to see if Period property is set
internal bool IsSetPeriod()
{
return this._period.HasValue;
}
///
/// Gets and sets the property ServiceArn.
///
/// The ARN that identifies the Amazon ECS service.
///
///
///
/// The following is the format of the ARN:
///
///
///
/// arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name
///
///
///
[AWSProperty(Required=true)]
public string ServiceArn
{
get { return this._serviceArn; }
set { this._serviceArn = value; }
}
// Check to see if ServiceArn property is set
internal bool IsSetServiceArn()
{
return this._serviceArn != null;
}
///
/// Gets and sets the property StartTime.
///
/// The timestamp of the first projected metrics data point to return.
///
///
[AWSProperty(Required=true)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property Stat.
///
/// The statistic of the projected metrics.
///
///
[AWSProperty(Required=true)]
public MetricStatistic Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
}
}