Class BillingMeterInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.BillingMeterInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
App Service billing entity that contains information about meter which the Azure billing system utilizes to charge
users for services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the billingLocation property: Azure Location of billable resource.Get the friendlyName property: Friendly name of the meter.static BillingMeterInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BillingMeterInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.meterId()Get the meterId property: Meter GUID onboarded in Commerce.Get the multiplier property: Meter Multiplier.name()Get the name property: The name of the resource.osType()Get the osType property: App Service OS type meter used for.Get the resourceType property: App Service ResourceType meter used for.Get the shortName property: Short Name from App Service Azure pricing Page.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withBillingLocation(String billingLocation) Set the billingLocation property: Azure Location of billable resource.withFriendlyName(String friendlyName) Set the friendlyName property: Friendly name of the meter.Set the kind property: Kind of resource.withMeterId(String meterId) Set the meterId property: Meter GUID onboarded in Commerce.withMultiplier(Double multiplier) Set the multiplier property: Meter Multiplier.withOsType(String osType) Set the osType property: App Service OS type meter used for.withResourceType(String resourceType) Set the resourceType property: App Service ResourceType meter used for.withShortName(String shortName) Set the shortName property: Short Name from App Service Azure pricing Page.Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BillingMeterInner
public BillingMeterInner()Creates an instance of BillingMeterInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
meterId
Get the meterId property: Meter GUID onboarded in Commerce.- Returns:
- the meterId value.
-
withMeterId
Set the meterId property: Meter GUID onboarded in Commerce.- Parameters:
meterId- the meterId value to set.- Returns:
- the BillingMeterInner object itself.
-
billingLocation
Get the billingLocation property: Azure Location of billable resource.- Returns:
- the billingLocation value.
-
withBillingLocation
Set the billingLocation property: Azure Location of billable resource.- Parameters:
billingLocation- the billingLocation value to set.- Returns:
- the BillingMeterInner object itself.
-
shortName
Get the shortName property: Short Name from App Service Azure pricing Page.- Returns:
- the shortName value.
-
withShortName
Set the shortName property: Short Name from App Service Azure pricing Page.- Parameters:
shortName- the shortName value to set.- Returns:
- the BillingMeterInner object itself.
-
friendlyName
Get the friendlyName property: Friendly name of the meter.- Returns:
- the friendlyName value.
-
withFriendlyName
Set the friendlyName property: Friendly name of the meter.- Parameters:
friendlyName- the friendlyName value to set.- Returns:
- the BillingMeterInner object itself.
-
resourceType
Get the resourceType property: App Service ResourceType meter used for.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: App Service ResourceType meter used for.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the BillingMeterInner object itself.
-
osType
Get the osType property: App Service OS type meter used for.- Returns:
- the osType value.
-
withOsType
Set the osType property: App Service OS type meter used for.- Parameters:
osType- the osType value to set.- Returns:
- the BillingMeterInner object itself.
-
multiplier
Get the multiplier property: Meter Multiplier.- Returns:
- the multiplier value.
-
withMultiplier
Set the multiplier property: Meter Multiplier.- Parameters:
multiplier- the multiplier value to set.- Returns:
- the BillingMeterInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
Reads an instance of BillingMeterInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BillingMeterInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BillingMeterInner.
-