ArmConsumptionModelFactory.ConsumptionCalculatedSavingsProperties Method

Definition

Initializes a new instance of ConsumptionCalculatedSavingsProperties.

public static Azure.ResourceManager.Consumption.Models.ConsumptionCalculatedSavingsProperties ConsumptionCalculatedSavingsProperties (float? onDemandCost = default, float? overageCost = default, float? quantity = default, float? reservationCost = default, float? totalReservationCost = default, float? reservedUnitCount = default, float? savings = default);
static member ConsumptionCalculatedSavingsProperties : Nullable<single> * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<single> * Nullable<single> -> Azure.ResourceManager.Consumption.Models.ConsumptionCalculatedSavingsProperties
Public Shared Function ConsumptionCalculatedSavingsProperties (Optional onDemandCost As Nullable(Of Single) = Nothing, Optional overageCost As Nullable(Of Single) = Nothing, Optional quantity As Nullable(Of Single) = Nothing, Optional reservationCost As Nullable(Of Single) = Nothing, Optional totalReservationCost As Nullable(Of Single) = Nothing, Optional reservedUnitCount As Nullable(Of Single) = Nothing, Optional savings As Nullable(Of Single) = Nothing) As ConsumptionCalculatedSavingsProperties

Parameters

onDemandCost
Nullable<Single>

The cost without reservation.

overageCost
Nullable<Single>

The difference between total reservation cost and reservation cost.

quantity
Nullable<Single>

The quantity for calculated savings.

reservationCost
Nullable<Single>

The exact cost of the estimated usage using reservation.

totalReservationCost
Nullable<Single>

The cost of the suggested quantity.

reservedUnitCount
Nullable<Single>

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

savings
Nullable<Single>

The amount saved by purchasing the recommended quantity of reservation.

Returns

A new ConsumptionCalculatedSavingsProperties instance for mocking.

Applies to