Share via


Commitment Class

Definition

Commitment towards the benefit.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.CommitmentTypeConverter))]
public class Commitment : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ICommitment, Microsoft.Azure.PowerShell.Cmdlets.Reservations.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.CommitmentTypeConverter))>]
type Commitment = class
    interface ICommitment
    interface IJsonSerializable
    interface IPrice
    interface IValidates
Public Class Commitment
Implements ICommitment, IValidates
Inheritance
Commitment
Attributes
Implements

Constructors

Commitment()

Creates an new Commitment instance.

Properties

Amount
CurrencyCode

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

Grain

Commitment grain.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Commitment.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Commitment.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Commitment into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to