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

package com.azure.resourcemanager.devtestlabs.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** The properties of a lab cost item. */
@Fluent
public final class LabCostDetailsProperties {
    /*
     * The date of the cost item.
     */
    @JsonProperty(value = "date")
    private OffsetDateTime date;

    /*
     * The cost component of the cost item.
     */
    @JsonProperty(value = "cost")
    private Double cost;

    /*
     * The type of the cost.
     */
    @JsonProperty(value = "costType")
    private CostType costType;

    /** Creates an instance of LabCostDetailsProperties class. */
    public LabCostDetailsProperties() {
    }

    /**
     * Get the date property: The date of the cost item.
     *
     * @return the date value.
     */
    public OffsetDateTime date() {
        return this.date;
    }

    /**
     * Set the date property: The date of the cost item.
     *
     * @param date the date value to set.
     * @return the LabCostDetailsProperties object itself.
     */
    public LabCostDetailsProperties withDate(OffsetDateTime date) {
        this.date = date;
        return this;
    }

    /**
     * Get the cost property: The cost component of the cost item.
     *
     * @return the cost value.
     */
    public Double cost() {
        return this.cost;
    }

    /**
     * Set the cost property: The cost component of the cost item.
     *
     * @param cost the cost value to set.
     * @return the LabCostDetailsProperties object itself.
     */
    public LabCostDetailsProperties withCost(Double cost) {
        this.cost = cost;
        return this;
    }

    /**
     * Get the costType property: The type of the cost.
     *
     * @return the costType value.
     */
    public CostType costType() {
        return this.costType;
    }

    /**
     * Set the costType property: The type of the cost.
     *
     * @param costType the costType value to set.
     * @return the LabCostDetailsProperties object itself.
     */
    public LabCostDetailsProperties withCostType(CostType costType) {
        this.costType = costType;
        return this;
    }

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