Class LabResourceCostProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.LabResourceCostProperties
The properties of a resource cost item.
-
Constructor Summary
ConstructorDescriptionCreates an instance of LabResourceCostProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the externalResourceId property: The ID of the external resource.Get the resourceCost property: The cost component of the resource cost item.Get the resourceId property: The ID of the resource.Get the resourcename property: The name of the resource.Get the resourceOwner property: The owner of the resource (ex.Get the resourcePricingTier property: The category of the resource (ex.Get the resourceStatus property: The status of the resource (ex.Get the resourceType property: The logical resource type (ex.Get the resourceUId property: The unique identifier of the resource.void
validate()
Validates the instance.withExternalResourceId
(String externalResourceId) Set the externalResourceId property: The ID of the external resource.withResourceCost
(Double resourceCost) Set the resourceCost property: The cost component of the resource cost item.withResourceId
(String resourceId) Set the resourceId property: The ID of the resource.withResourcename
(String resourcename) Set the resourcename property: The name of the resource.withResourceOwner
(String resourceOwner) Set the resourceOwner property: The owner of the resource (ex.withResourcePricingTier
(String resourcePricingTier) Set the resourcePricingTier property: The category of the resource (ex.withResourceStatus
(String resourceStatus) Set the resourceStatus property: The status of the resource (ex.withResourceType
(String resourceType) Set the resourceType property: The logical resource type (ex.withResourceUId
(String resourceUId) Set the resourceUId property: The unique identifier of the resource.
-
Constructor Details
-
LabResourceCostProperties
public LabResourceCostProperties()Creates an instance of LabResourceCostProperties class.
-
-
Method Details
-
resourcename
Get the resourcename property: The name of the resource.- Returns:
- the resourcename value.
-
withResourcename
Set the resourcename property: The name of the resource.- Parameters:
resourcename
- the resourcename value to set.- Returns:
- the LabResourceCostProperties object itself.
-
resourceUId
Get the resourceUId property: The unique identifier of the resource.- Returns:
- the resourceUId value.
-
withResourceUId
Set the resourceUId property: The unique identifier of the resource.- Parameters:
resourceUId
- the resourceUId value to set.- Returns:
- the LabResourceCostProperties object itself.
-
resourceCost
Get the resourceCost property: The cost component of the resource cost item.- Returns:
- the resourceCost value.
-
withResourceCost
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
Get the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the LabResourceCostProperties object itself.
-
resourceOwner
Get the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).- Returns:
- the resourceOwner value.
-
withResourceOwner
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
Get the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).- Returns:
- the resourcePricingTier value.
-
withResourcePricingTier
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
Get the resourceStatus property: The status of the resource (ex. Active).- Returns:
- the resourceStatus value.
-
withResourceStatus
Set the resourceStatus property: The status of the resource (ex. Active).- Parameters:
resourceStatus
- the resourceStatus value to set.- Returns:
- the LabResourceCostProperties object itself.
-
resourceId
Get the resourceId property: The ID of the resource.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The ID of the resource.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the LabResourceCostProperties object itself.
-
externalResourceId
Get the externalResourceId property: The ID of the external resource.- Returns:
- the externalResourceId value.
-
withExternalResourceId
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.
-