/* * 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 { /// /// An object that contains information about the estimated monthly cost to analyze an /// Amazon Web Services resource. For more information, see Estimate /// your Amazon DevOps Guru costs and Amazon /// DevOps Guru pricing. /// public partial class ServiceResourceCost { private double? _cost; private int? _count; private CostEstimationServiceResourceState _state; private string _type; private double? _unitCost; /// /// Gets and sets the property Cost. /// /// The total estimated monthly cost to analyze the active resources for this resource. /// /// public double Cost { get { return this._cost.GetValueOrDefault(); } set { this._cost = value; } } // Check to see if Cost property is set internal bool IsSetCost() { return this._cost.HasValue; } /// /// Gets and sets the property Count. /// /// The number of active resources analyzed for this service to create a monthly cost /// estimate. /// /// public int 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 State. /// /// The state of the resource. The resource is ACTIVE if it produces metrics, /// events, or logs within an hour, otherwise it is INACTIVE. You pay for /// the number of active Amazon Web Services resource hours analyzed for each resource. /// Inactive resources are not charged. /// /// public CostEstimationServiceResourceState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Type. /// /// The type of the Amazon Web Services resource. /// /// [AWSProperty(Min=1, Max=256)] public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property UnitCost. /// /// The price per hour to analyze the resources in the service. For more information, /// see Estimate /// your Amazon DevOps Guru costs and Amazon /// DevOps Guru pricing. /// /// public double UnitCost { get { return this._unitCost.GetValueOrDefault(); } set { this._unitCost = value; } } // Check to see if UnitCost property is set internal bool IsSetUnitCost() { return this._unitCost.HasValue; } } }