Class MeterInfo
java.lang.Object
com.azure.resourcemanager.commerce.models.MeterInfo
Detailed information about the meter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the effectiveDate property: Indicates the date from which the meter rate is effective.Get the includedQuantity property: The resource quantity that is included in the offer at no cost.Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..meterId()
Get the meterId property: The unique identifier of the resource.Get the meterName property: The name of the meter, within the given meter category.Get the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.Get the meterRegion property: The region in which the Azure service is available.Get the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..Get the meterTags property: Provides additional meter data.unit()
Get the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.void
validate()
Validates the instance.withEffectiveDate
(OffsetDateTime effectiveDate) Set the effectiveDate property: Indicates the date from which the meter rate is effective.withIncludedQuantity
(Float includedQuantity) Set the includedQuantity property: The resource quantity that is included in the offer at no cost.withMeterCategory
(String meterCategory) Set the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..withMeterId
(UUID meterId) Set the meterId property: The unique identifier of the resource.withMeterName
(String meterName) Set the meterName property: The name of the meter, within the given meter category.withMeterRates
(Map<String, Float> meterRates) Set the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.withMeterRegion
(String meterRegion) Set the meterRegion property: The region in which the Azure service is available.withMeterSubCategory
(String meterSubCategory) Set the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..withMeterTags
(List<String> meterTags) Set the meterTags property: Provides additional meter data.Set the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.
-
Constructor Details
-
MeterInfo
public MeterInfo()Creates an instance of MeterInfo class.
-
-
Method Details
-
meterId
Get the meterId property: The unique identifier of the resource.- Returns:
- the meterId value.
-
withMeterId
Set the meterId property: The unique identifier of the resource.- Parameters:
meterId
- the meterId value to set.- Returns:
- the MeterInfo object itself.
-
meterName
Get the meterName property: The name of the meter, within the given meter category.- Returns:
- the meterName value.
-
withMeterName
Set the meterName property: The name of the meter, within the given meter category.- Parameters:
meterName
- the meterName value to set.- Returns:
- the MeterInfo object itself.
-
meterCategory
Get the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..- Returns:
- the meterCategory value.
-
withMeterCategory
Set the meterCategory property: The category of the meter, e.g., 'Cloud services', 'Networking', etc..- Parameters:
meterCategory
- the meterCategory value to set.- Returns:
- the MeterInfo object itself.
-
meterSubCategory
Get the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..- Returns:
- the meterSubCategory value.
-
withMeterSubCategory
Set the meterSubCategory property: The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..- Parameters:
meterSubCategory
- the meterSubCategory value to set.- Returns:
- the MeterInfo object itself.
-
unit
Get the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.- Parameters:
unit
- the unit value to set.- Returns:
- the MeterInfo object itself.
-
meterTags
Get the meterTags property: Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party.- Returns:
- the meterTags value.
-
withMeterTags
Set the meterTags property: Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party.- Parameters:
meterTags
- the meterTags value to set.- Returns:
- the MeterInfo object itself.
-
meterRegion
Get the meterRegion property: The region in which the Azure service is available.- Returns:
- the meterRegion value.
-
withMeterRegion
Set the meterRegion property: The region in which the Azure service is available.- Parameters:
meterRegion
- the meterRegion value to set.- Returns:
- the MeterInfo object itself.
-
meterRates
Get the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.- Returns:
- the meterRates value.
-
withMeterRates
Set the meterRates property: The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price.- Parameters:
meterRates
- the meterRates value to set.- Returns:
- the MeterInfo object itself.
-
effectiveDate
Get the effectiveDate property: Indicates the date from which the meter rate is effective.- Returns:
- the effectiveDate value.
-
withEffectiveDate
Set the effectiveDate property: Indicates the date from which the meter rate is effective.- Parameters:
effectiveDate
- the effectiveDate value to set.- Returns:
- the MeterInfo object itself.
-
includedQuantity
Get the includedQuantity property: The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged.- Returns:
- the includedQuantity value.
-
withIncludedQuantity
Set the includedQuantity property: The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged.- Parameters:
includedQuantity
- the includedQuantity value to set.- Returns:
- the MeterInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-