LabResourceCostProperties Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. LabResourceCostProperties
- com.
public final class LabResourceCostProperties
The properties of a resource cost item.
Constructor Summary
Constructor | Description |
---|---|
LabResourceCostProperties() |
Creates an instance of Lab |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
externalResourceId()
Get the external |
Double |
resourceCost()
Get the resource |
String |
resourceId()
Get the resource |
String |
resourceOwner()
Get the resource |
String |
resourcePricingTier()
Get the resource |
String |
resourceStatus()
Get the resource |
String |
resourceType()
Get the resource |
String |
resourceUId()
Get the resource |
String |
resourcename()
Get the resourcename property: The name of the resource. |
void |
validate()
Validates the instance. |
Lab |
withExternalResourceId(String externalResourceId)
Set the external |
Lab |
withResourceCost(Double resourceCost)
Set the resource |
Lab |
withResourceId(String resourceId)
Set the resource |
Lab |
withResourceOwner(String resourceOwner)
Set the resource |
Lab |
withResourcePricingTier(String resourcePricingTier)
Set the resource |
Lab |
withResourceStatus(String resourceStatus)
Set the resource |
Lab |
withResourceType(String resourceType)
Set the resource |
Lab |
withResourceUId(String resourceUId)
Set the resource |
Lab |
withResourcename(String resourcename)
Set the resourcename property: The name of the resource. |
Methods inherited from java.lang.Object
Constructor Details
LabResourceCostProperties
public LabResourceCostProperties()
Creates an instance of LabResourceCostProperties class.
Method Details
externalResourceId
public String externalResourceId()
Get the externalResourceId property: The ID of the external resource.
Returns:
resourceCost
public Double resourceCost()
Get the resourceCost property: The cost component of the resource cost item.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource.
Returns:
resourceOwner
public String resourceOwner()
Get the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).
Returns:
resourcePricingTier
public String resourcePricingTier()
Get the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).
Returns:
resourceStatus
public String resourceStatus()
Get the resourceStatus property: The status of the resource (ex. Active).
Returns:
resourceType
public String resourceType()
Get the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).
Returns:
resourceUId
public String resourceUId()
Get the resourceUId property: The unique identifier of the resource.
Returns:
resourcename
public String resourcename()
Get the resourcename property: The name of the resource.
Returns:
validate
public void validate()
Validates the instance.
withExternalResourceId
public LabResourceCostProperties withExternalResourceId(String externalResourceId)
Set the externalResourceId property: The ID of the external resource.
Parameters:
Returns:
withResourceCost
public LabResourceCostProperties withResourceCost(Double resourceCost)
Set the resourceCost property: The cost component of the resource cost item.
Parameters:
Returns:
withResourceId
public LabResourceCostProperties withResourceId(String resourceId)
Set the resourceId property: The ID of the resource.
Parameters:
Returns:
withResourceOwner
public LabResourceCostProperties withResourceOwner(String resourceOwner)
Set the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).
Parameters:
Returns:
withResourcePricingTier
public LabResourceCostProperties withResourcePricingTier(String resourcePricingTier)
Set the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).
Parameters:
Returns:
withResourceStatus
public LabResourceCostProperties withResourceStatus(String resourceStatus)
Set the resourceStatus property: The status of the resource (ex. Active).
Parameters:
Returns:
withResourceType
public LabResourceCostProperties withResourceType(String resourceType)
Set the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).
Parameters:
Returns:
withResourceUId
public LabResourceCostProperties withResourceUId(String resourceUId)
Set the resourceUId property: The unique identifier of the resource.
Parameters:
Returns:
withResourcename
public LabResourceCostProperties withResourcename(String resourcename)
Set the resourcename property: The name of the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for