MeterDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.edgeorder.models.MeterDetails

Implements

public class MeterDetails
implements JsonSerializable<MeterDetails>

Holds details about billing type and its meter guids.

Constructor Summary

Constructor Description
MeterDetails()

Creates an instance of MeterDetails class.

Method Summary

Modifier and Type Method and Description
BillingType billingType()

Get the billingType property: Represents billing type.

ChargingType chargingType()

Get the chargingType property: Charging type.

static MeterDetails fromJson(JsonReader jsonReader)

Reads an instance of MeterDetails from the JsonReader.

Double multiplier()

Get the multiplier property: Billing unit applicable for Pav2 billing.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

MeterDetails

public MeterDetails()

Creates an instance of MeterDetails class.

Method Details

billingType

public BillingType billingType()

Get the billingType property: Represents billing type.

Returns:

the billingType value.

chargingType

public ChargingType chargingType()

Get the chargingType property: Charging type.

Returns:

the chargingType value.

fromJson

public static MeterDetails fromJson(JsonReader jsonReader)

Reads an instance of MeterDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MeterDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MeterDetails.

multiplier

public Double multiplier()

Get the multiplier property: Billing unit applicable for Pav2 billing.

Returns:

the multiplier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to