// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.edgeorder.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Dimensions of a configuration. */
@Immutable
public final class Dimensions {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(Dimensions.class);

    /*
     * Length of the device.
     */
    @JsonProperty(value = "length", access = JsonProperty.Access.WRITE_ONLY)
    private Double length;

    /*
     * Height of the device.
     */
    @JsonProperty(value = "height", access = JsonProperty.Access.WRITE_ONLY)
    private Double height;

    /*
     * Width of the device.
     */
    @JsonProperty(value = "width", access = JsonProperty.Access.WRITE_ONLY)
    private Double width;

    /*
     * Unit for the dimensions of length, height and width.
     */
    @JsonProperty(value = "lengthHeightUnit", access = JsonProperty.Access.WRITE_ONLY)
    private LengthHeightUnit lengthHeightUnit;

    /*
     * Weight of the device.
     */
    @JsonProperty(value = "weight", access = JsonProperty.Access.WRITE_ONLY)
    private Double weight;

    /*
     * Depth of the device.
     */
    @JsonProperty(value = "depth", access = JsonProperty.Access.WRITE_ONLY)
    private Double depth;

    /*
     * Unit for the dimensions of weight.
     */
    @JsonProperty(value = "weightUnit", access = JsonProperty.Access.WRITE_ONLY)
    private WeightMeasurementUnit weightUnit;

    /**
     * Get the length property: Length of the device.
     *
     * @return the length value.
     */
    public Double length() {
        return this.length;
    }

    /**
     * Get the height property: Height of the device.
     *
     * @return the height value.
     */
    public Double height() {
        return this.height;
    }

    /**
     * Get the width property: Width of the device.
     *
     * @return the width value.
     */
    public Double width() {
        return this.width;
    }

    /**
     * Get the lengthHeightUnit property: Unit for the dimensions of length, height and width.
     *
     * @return the lengthHeightUnit value.
     */
    public LengthHeightUnit lengthHeightUnit() {
        return this.lengthHeightUnit;
    }

    /**
     * Get the weight property: Weight of the device.
     *
     * @return the weight value.
     */
    public Double weight() {
        return this.weight;
    }

    /**
     * Get the depth property: Depth of the device.
     *
     * @return the depth value.
     */
    public Double depth() {
        return this.depth;
    }

    /**
     * Get the weightUnit property: Unit for the dimensions of weight.
     *
     * @return the weightUnit value.
     */
    public WeightMeasurementUnit weightUnit() {
        return this.weightUnit;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
