Share via


BudgetTimePeriod Class

Definition

The start and end date for a budget.

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

Constructors

BudgetTimePeriod(DateTimeOffset)

Initializes a new instance of BudgetTimePeriod.

Properties

EndOn

The end date for the budget. If not provided, we default this to 10 years from the start date.

StartOn

The start date for the budget.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<BudgetTimePeriod>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BudgetTimePeriod>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BudgetTimePeriod>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BudgetTimePeriod>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BudgetTimePeriod>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to