LabResourceCostProperties Class

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

public final class LabResourceCostProperties

The properties of a resource cost item.

Constructor Summary

Constructor Description
LabResourceCostProperties()

Creates an instance of LabResourceCostProperties class.

Method Summary

Modifier and Type Method and Description
String externalResourceId()

Get the externalResourceId property: The ID of the external resource.

Double resourceCost()

Get the resourceCost property: The cost component of the resource cost item.

String resourceId()

Get the resourceId property: The ID of the resource.

String resourceOwner()

Get the resourceOwner property: The owner of the resource (ex.

String resourcePricingTier()

Get the resourcePricingTier property: The category of the resource (ex.

String resourceStatus()

Get the resourceStatus property: The status of the resource (ex.

String resourceType()

Get the resourceType property: The logical resource type (ex.

String resourceUId()

Get the resourceUId property: The unique identifier of the resource.

String resourcename()

Get the resourcename property: The name of the resource.

void validate()

Validates the instance.

LabResourceCostProperties withExternalResourceId(String externalResourceId)

Set the externalResourceId property: The ID of the external resource.

LabResourceCostProperties withResourceCost(Double resourceCost)

Set the resourceCost property: The cost component of the resource cost item.

LabResourceCostProperties withResourceId(String resourceId)

Set the resourceId property: The ID of the resource.

LabResourceCostProperties withResourceOwner(String resourceOwner)

Set the resourceOwner property: The owner of the resource (ex.

LabResourceCostProperties withResourcePricingTier(String resourcePricingTier)

Set the resourcePricingTier property: The category of the resource (ex.

LabResourceCostProperties withResourceStatus(String resourceStatus)

Set the resourceStatus property: The status of the resource (ex.

LabResourceCostProperties withResourceType(String resourceType)

Set the resourceType property: The logical resource type (ex.

LabResourceCostProperties withResourceUId(String resourceUId)

Set the resourceUId property: The unique identifier of the resource.

LabResourceCostProperties 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:

the externalResourceId value.

resourceCost

public Double resourceCost()

Get the resourceCost property: The cost component of the resource cost item.

Returns:

the resourceCost value.

resourceId

public String resourceId()

Get the resourceId property: The ID of the resource.

Returns:

the resourceId value.

resourceOwner

public String resourceOwner()

Get the resourceOwner property: The owner of the resource (ex. janedoe@microsoft.com).

Returns:

the resourceOwner value.

resourcePricingTier

public String resourcePricingTier()

Get the resourcePricingTier property: The category of the resource (ex. Premium_LRS, Standard_DS1).

Returns:

the resourcePricingTier value.

resourceStatus

public String resourceStatus()

Get the resourceStatus property: The status of the resource (ex. Active).

Returns:

the resourceStatus value.

resourceType

public String resourceType()

Get the resourceType property: The logical resource type (ex. virtualmachine, storageaccount).

Returns:

the resourceType value.

resourceUId

public String resourceUId()

Get the resourceUId property: The unique identifier of the resource.

Returns:

the resourceUId value.

resourcename

public String resourcename()

Get the resourcename property: The name of the resource.

Returns:

the resourcename value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to