Class LabResourceCostProperties

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

public final class LabResourceCostProperties extends Object
The properties of a resource cost item.
  • Constructor Details

    • LabResourceCostProperties

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

    • resourcename

      public String resourcename()
      Get the resourcename property: The name of the resource.
      Returns:
      the resourcename value.
    • withResourcename

      public LabResourceCostProperties withResourcename(String resourcename)
      Set the resourcename property: The name of the resource.
      Parameters:
      resourcename - the resourcename value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceUId

      public String resourceUId()
      Get the resourceUId property: The unique identifier of the resource.
      Returns:
      the resourceUId value.
    • withResourceUId

      public LabResourceCostProperties withResourceUId(String resourceUId)
      Set the resourceUId property: The unique identifier of the resource.
      Parameters:
      resourceUId - the resourceUId value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceCost

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

      public LabResourceCostProperties withResourceCost(Double resourceCost)
      Set the resourceCost property: The cost component of the resource cost item.
      Parameters:
      resourceCost - the resourceCost value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceType

      public String resourceType()
      Get the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).
      Returns:
      the resourceType value.
    • withResourceType

      public LabResourceCostProperties withResourceType(String resourceType)
      Set the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).
      Parameters:
      resourceType - the resourceType value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceOwner

      public String resourceOwner()
      Get the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).
      Returns:
      the resourceOwner value.
    • withResourceOwner

      public LabResourceCostProperties withResourceOwner(String resourceOwner)
      Set the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).
      Parameters:
      resourceOwner - the resourceOwner value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourcePricingTier

      public String resourcePricingTier()
      Get the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).
      Returns:
      the resourcePricingTier value.
    • withResourcePricingTier

      public LabResourceCostProperties withResourcePricingTier(String resourcePricingTier)
      Set the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).
      Parameters:
      resourcePricingTier - the resourcePricingTier value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceStatus

      public String resourceStatus()
      Get the resourceStatus property: The status of the resource (ex. Active).
      Returns:
      the resourceStatus value.
    • withResourceStatus

      public LabResourceCostProperties withResourceStatus(String resourceStatus)
      Set the resourceStatus property: The status of the resource (ex. Active).
      Parameters:
      resourceStatus - the resourceStatus value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: The ID of the resource.
      Returns:
      the resourceId value.
    • withResourceId

      public LabResourceCostProperties withResourceId(String resourceId)
      Set the resourceId property: The ID of the resource.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • externalResourceId

      public String externalResourceId()
      Get the externalResourceId property: The ID of the external resource.
      Returns:
      the externalResourceId value.
    • withExternalResourceId

      public LabResourceCostProperties withExternalResourceId(String externalResourceId)
      Set the externalResourceId property: The ID of the external resource.
      Parameters:
      externalResourceId - the externalResourceId value to set.
      Returns:
      the LabResourceCostProperties object itself.
    • validate

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