Sdílet prostřednictvím


ConsumptionCalculatedSavingsProperties Class

Definition

Details of estimated savings.

public class ConsumptionCalculatedSavingsProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Consumption.Models.ConsumptionCalculatedSavingsProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Consumption.Models.ConsumptionCalculatedSavingsProperties>
type ConsumptionCalculatedSavingsProperties = class
    interface IJsonModel<ConsumptionCalculatedSavingsProperties>
    interface IPersistableModel<ConsumptionCalculatedSavingsProperties>
Public Class ConsumptionCalculatedSavingsProperties
Implements IJsonModel(Of ConsumptionCalculatedSavingsProperties), IPersistableModel(Of ConsumptionCalculatedSavingsProperties)
Inheritance
ConsumptionCalculatedSavingsProperties
Implements

Properties

OnDemandCost

The cost without reservation.

OverageCost

The difference between total reservation cost and reservation cost.

Quantity

The quantity for calculated savings.

ReservationCost

The exact cost of the estimated usage using reservation.

ReservedUnitCount

The number of reserved units used to calculate savings. Always 1 for virtual machines.

Savings

The amount saved by purchasing the recommended quantity of reservation.

TotalReservationCost

The cost of the suggested quantity.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ConsumptionCalculatedSavingsProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ConsumptionCalculatedSavingsProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ConsumptionCalculatedSavingsProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ConsumptionCalculatedSavingsProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ConsumptionCalculatedSavingsProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to