Share via


BenefitsCommitment Class

Definition

Commitment towards the benefit.

public class BenefitsCommitment : Azure.ResourceManager.Reservations.Models.PurchasePrice, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Reservations.Models.BenefitsCommitment>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Reservations.Models.BenefitsCommitment>
public class BenefitsCommitment : Azure.ResourceManager.Reservations.Models.PurchasePrice
type BenefitsCommitment = class
    inherit PurchasePrice
    interface IJsonModel<BenefitsCommitment>
    interface IPersistableModel<BenefitsCommitment>
type BenefitsCommitment = class
    inherit PurchasePrice
Public Class BenefitsCommitment
Inherits PurchasePrice
Implements IJsonModel(Of BenefitsCommitment), IPersistableModel(Of BenefitsCommitment)
Public Class BenefitsCommitment
Inherits PurchasePrice
Inheritance
BenefitsCommitment
Implements

Constructors

BenefitsCommitment()

Initializes a new instance of BenefitsCommitment.

Properties

Amount

Gets or sets the amount.

(Inherited from PurchasePrice)
CurrencyCode

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

(Inherited from PurchasePrice)
Grain

Commitment grain.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BenefitsCommitment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BenefitsCommitment>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<PurchasePrice>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from PurchasePrice)
IJsonModel<PurchasePrice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from PurchasePrice)
IPersistableModel<BenefitsCommitment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BenefitsCommitment>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BenefitsCommitment>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<PurchasePrice>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from PurchasePrice)
IPersistableModel<PurchasePrice>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from PurchasePrice)
IPersistableModel<PurchasePrice>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from PurchasePrice)

Applies to