/*
* 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 devops-guru-2020-12-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.DevOpsGuru.Model
{
///
/// This is the response object from the GetCostEstimation operation.
///
public partial class GetCostEstimationResponse : AmazonWebServiceResponse
{
private List _costs = new List();
private string _nextToken;
private CostEstimationResourceCollectionFilter _resourceCollection;
private CostEstimationStatus _status;
private CostEstimationTimeRange _timeRange;
private double? _totalCost;
///
/// Gets and sets the property Costs.
///
/// An array of ResourceCost
objects that each contains details about the
/// monthly cost estimate to analyze one of your Amazon Web Services resources.
///
///
public List Costs
{
get { return this._costs; }
set { this._costs = value; }
}
// Check to see if Costs property is set
internal bool IsSetCosts()
{
return this._costs != null && this._costs.Count > 0;
}
///
/// Gets and sets the property NextToken.
///
/// The pagination token to use to retrieve the next page of results for this operation.
/// If there are no more pages, this value is null.
///
///
[AWSProperty(Min=36, Max=36)]
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;
}
///
/// Gets and sets the property ResourceCollection.
///
/// The collection of the Amazon Web Services resources used to create your monthly DevOps
/// Guru cost estimate.
///
///
public CostEstimationResourceCollectionFilter ResourceCollection
{
get { return this._resourceCollection; }
set { this._resourceCollection = value; }
}
// Check to see if ResourceCollection property is set
internal bool IsSetResourceCollection()
{
return this._resourceCollection != null;
}
///
/// Gets and sets the property Status.
///
/// The status of creating this cost estimate. If it's still in progress, the status ONGOING
/// is returned. If it is finished, the status COMPLETED
is returned.
///
///
public CostEstimationStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property TimeRange.
///
/// The start and end time of the cost estimation.
///
///
public CostEstimationTimeRange TimeRange
{
get { return this._timeRange; }
set { this._timeRange = value; }
}
// Check to see if TimeRange property is set
internal bool IsSetTimeRange()
{
return this._timeRange != null;
}
///
/// Gets and sets the property TotalCost.
///
/// The estimated monthly cost to analyze the Amazon Web Services resources. This value
/// is the sum of the estimated costs to analyze each resource in the Costs
/// object in this response.
///
///
public double TotalCost
{
get { return this._totalCost.GetValueOrDefault(); }
set { this._totalCost = value; }
}
// Check to see if TotalCost property is set
internal bool IsSetTotalCost()
{
return this._totalCost.HasValue;
}
}
}