Dimensions Class

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

Implements

public final class Dimensions
implements JsonSerializable<Dimensions>

Dimensions of a configuration.

Constructor Summary

Constructor Description
Dimensions()

Creates an instance of Dimensions class.

Method Summary

Modifier and Type Method and Description
Double depth()

Get the depth property: Depth of the device.

static Dimensions fromJson(JsonReader jsonReader)

Reads an instance of Dimensions from the JsonReader.

Double height()

Get the height property: Height of the device.

Double length()

Get the length property: Length of the device.

LengthHeightUnit lengthHeightUnit()

Get the lengthHeightUnit property: Unit for the dimensions of length, height and width.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Double weight()

Get the weight property: Weight of the device.

WeightMeasurementUnit weightUnit()

Get the weightUnit property: Unit for the dimensions of weight.

Double width()

Get the width property: Width of the device.

Methods inherited from java.lang.Object

Constructor Details

Dimensions

public Dimensions()

Creates an instance of Dimensions class.

Method Details

depth

public Double depth()

Get the depth property: Depth of the device.

Returns:

the depth value.

fromJson

public static Dimensions fromJson(JsonReader jsonReader)

Reads an instance of Dimensions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Dimensions 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 Dimensions.

height

public Double height()

Get the height property: Height of the device.

Returns:

the height value.

length

public Double length()

Get the length property: Length of the device.

Returns:

the length value.

lengthHeightUnit

public LengthHeightUnit lengthHeightUnit()

Get the lengthHeightUnit property: Unit for the dimensions of length, height and width.

Returns:

the lengthHeightUnit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weight

public Double weight()

Get the weight property: Weight of the device.

Returns:

the weight value.

weightUnit

public WeightMeasurementUnit weightUnit()

Get the weightUnit property: Unit for the dimensions of weight.

Returns:

the weightUnit value.

width

public Double width()

Get the width property: Width of the device.

Returns:

the width value.

Applies to