Class LabCostDetailsProperties

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.LabCostDetailsProperties

public final class LabCostDetailsProperties extends Object
The properties of a lab cost item.
  • Constructor Details

    • LabCostDetailsProperties

      public LabCostDetailsProperties()
      Creates an instance of LabCostDetailsProperties class.
  • Method Details

    • date

      public OffsetDateTime date()
      Get the date property: The date of the cost item.
      Returns:
      the date value.
    • withDate

      public LabCostDetailsProperties withDate(OffsetDateTime date)
      Set the date property: The date of the cost item.
      Parameters:
      date - the date value to set.
      Returns:
      the LabCostDetailsProperties object itself.
    • cost

      public Double cost()
      Get the cost property: The cost component of the cost item.
      Returns:
      the cost value.
    • withCost

      public LabCostDetailsProperties withCost(Double cost)
      Set the cost property: The cost component of the cost item.
      Parameters:
      cost - the cost value to set.
      Returns:
      the LabCostDetailsProperties object itself.
    • costType

      public CostType costType()
      Get the costType property: The type of the cost.
      Returns:
      the costType value.
    • withCostType

      public LabCostDetailsProperties withCostType(CostType costType)
      Set the costType property: The type of the cost.
      Parameters:
      costType - the costType value to set.
      Returns:
      the LabCostDetailsProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.