Share via


Price Class

Definition

Pricing information containing the amount and the currency code

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.PriceTypeConverter))]
public class Price : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IPrice
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.PriceTypeConverter))>]
type Price = class
    interface IPrice
    interface IJsonSerializable
Public Class Price
Implements IPrice
Inheritance
Price
Attributes
Implements

Constructors

Price()

Creates an new Price instance.

Properties

Amount
CurrencyCode

The ISO 4217 3-letter currency code for the currency used by this purchase record.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Price.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Price.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IPrice.

FromJsonString(String)

Creates a new instance of Price, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Price into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to