Class Dimension
java.lang.Object
com.azure.resourcemanager.appservice.models.Dimension
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Dimension>
Dimension of a resource metric. For e.g. instance specific HTTP requests for a web app,
where instance name is dimension of the metric HTTP request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: The displayName property.static Dimension
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of Dimension from the JsonReader.Get the internalName property: The internalName property.name()
Get the name property: The name property.Get the toBeExportedForShoebox property: The toBeExportedForShoebox property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDisplayName
(String displayName) Set the displayName property: The displayName property.withInternalName
(String internalName) Set the internalName property: The internalName property.Set the name property: The name property.withToBeExportedForShoebox
(Boolean toBeExportedForShoebox) Set the toBeExportedForShoebox property: The toBeExportedForShoebox property.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
-
Dimension
public Dimension()Creates an instance of Dimension class.
-
-
Method Details
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name
- the name value to set.- Returns:
- the Dimension object itself.
-
displayName
Get the displayName property: The displayName property.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The displayName property.- Parameters:
displayName
- the displayName value to set.- Returns:
- the Dimension object itself.
-
internalName
Get the internalName property: The internalName property.- Returns:
- the internalName value.
-
withInternalName
Set the internalName property: The internalName property.- Parameters:
internalName
- the internalName value to set.- Returns:
- the Dimension object itself.
-
toBeExportedForShoebox
Get the toBeExportedForShoebox property: The toBeExportedForShoebox property.- Returns:
- the toBeExportedForShoebox value.
-
withToBeExportedForShoebox
Set the toBeExportedForShoebox property: The toBeExportedForShoebox property.- Parameters:
toBeExportedForShoebox
- the toBeExportedForShoebox value to set.- Returns:
- the Dimension 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<Dimension>
- Throws:
IOException
-
fromJson
Reads an instance of Dimension from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of Dimension 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 Dimension.
-