Class Availability
java.lang.Object
com.azure.resourcemanager.network.models.Availability
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Availability>
public final class Availability
extends Object
implements com.azure.json.JsonSerializable<Availability>
Availability of the metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the blobDuration property: Duration of the availability blob.static AvailabilityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Availability from the JsonReader.Get the retention property: The retention of the availability.Get the timeGrain property: The time grain of the availability.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBlobDuration(String blobDuration) Set the blobDuration property: Duration of the availability blob.withRetention(String retention) Set the retention property: The retention of the availability.withTimeGrain(String timeGrain) Set the timeGrain property: The time grain of the availability.Methods 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
-
Availability
public Availability()Creates an instance of Availability class.
-
-
Method Details
-
timeGrain
Get the timeGrain property: The time grain of the availability.- Returns:
- the timeGrain value.
-
withTimeGrain
Set the timeGrain property: The time grain of the availability.- Parameters:
timeGrain- the timeGrain value to set.- Returns:
- the Availability object itself.
-
retention
Get the retention property: The retention of the availability.- Returns:
- the retention value.
-
withRetention
Set the retention property: The retention of the availability.- Parameters:
retention- the retention value to set.- Returns:
- the Availability object itself.
-
blobDuration
Get the blobDuration property: Duration of the availability blob.- Returns:
- the blobDuration value.
-
withBlobDuration
Set the blobDuration property: Duration of the availability blob.- Parameters:
blobDuration- the blobDuration value to set.- Returns:
- the Availability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Availability>- Throws:
IOException
-
fromJson
Reads an instance of Availability from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Availability 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 Availability.
-