Availability Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. Availability
- com.
Implements
public final class Availability
implements JsonSerializable<Availability>
Availability of the metric.
Constructor Summary
Constructor | Description |
---|---|
Availability() |
Creates an instance of Availability class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
blobDuration()
Get the blob |
static Availability |
fromJson(JsonReader jsonReader)
Reads an instance of Availability from the Json |
String |
retention()
Get the retention property: The retention of the availability. |
String |
timeGrain()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Availability |
withBlobDuration(String blobDuration)
Set the blob |
Availability |
withRetention(String retention)
Set the retention property: The retention of the availability. |
Availability |
withTimeGrain(String timeGrain)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
Availability
public Availability()
Creates an instance of Availability class.
Method Details
blobDuration
public String blobDuration()
Get the blobDuration property: Duration of the availability blob.
Returns:
fromJson
public static Availability fromJson(JsonReader jsonReader)
Reads an instance of Availability from the JsonReader.
Parameters:
Returns:
Throws:
retention
public String retention()
Get the retention property: The retention of the availability.
Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: The time grain of the availability.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBlobDuration
public Availability withBlobDuration(String blobDuration)
Set the blobDuration property: Duration of the availability blob.
Parameters:
Returns:
withRetention
public Availability withRetention(String retention)
Set the retention property: The retention of the availability.
Parameters:
Returns:
withTimeGrain
public Availability withTimeGrain(String timeGrain)
Set the timeGrain property: The time grain of the availability.
Parameters:
Returns:
Applies to
Azure SDK for Java