Class BillingMeterProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.BillingMeterProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BillingMeterProperties>
public final class BillingMeterProperties
extends Object
implements com.azure.json.JsonSerializable<BillingMeterProperties>
Revision resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BillingMeterProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Get the category property: Used to categorize billing meters.Get the displayName property: The everyday name of the billing meter.static BillingMeterProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BillingMeterProperties from the JsonReader.Get the meterType property: Billing meter type.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCategory
(String category) Set the category property: Used to categorize billing meters.withDisplayName
(String displayName) Set the displayName property: The everyday name of the billing meter.withMeterType
(String meterType) Set the meterType property: Billing meter type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BillingMeterProperties
public BillingMeterProperties()Creates an instance of BillingMeterProperties class.
-
-
Method Details
-
category
Get the category property: Used to categorize billing meters.- Returns:
- the category value.
-
withCategory
Set the category property: Used to categorize billing meters.- Parameters:
category
- the category value to set.- Returns:
- the BillingMeterProperties object itself.
-
meterType
Get the meterType property: Billing meter type.- Returns:
- the meterType value.
-
withMeterType
Set the meterType property: Billing meter type.- Parameters:
meterType
- the meterType value to set.- Returns:
- the BillingMeterProperties object itself.
-
displayName
Get the displayName property: The everyday name of the billing meter.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The everyday name of the billing meter.- Parameters:
displayName
- the displayName value to set.- Returns:
- the BillingMeterProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BillingMeterProperties>
- Throws:
IOException
-
fromJson
public static BillingMeterProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BillingMeterProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BillingMeterProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the BillingMeterProperties.
-