Partilhar via


Availability Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.Availability

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 blobDuration property: Duration of the availability blob.

static Availability fromJson(JsonReader jsonReader)

Reads an instance of Availability from the JsonReader.

String retention()

Get the retention property: The retention of the availability.

String timeGrain()

Get the timeGrain property: The time grain of the availability.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Availability withBlobDuration(String blobDuration)

Set the blobDuration property: Duration of the availability blob.

Availability withRetention(String retention)

Set the retention property: The retention of the availability.

Availability withTimeGrain(String timeGrain)

Set the timeGrain property: The time grain of the availability.

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:

the blobDuration value.

fromJson

public static Availability fromJson(JsonReader jsonReader)

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.

retention

public String retention()

Get the retention property: The retention of the availability.

Returns:

the retention value.

timeGrain

public String timeGrain()

Get the timeGrain property: The time grain of the availability.

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBlobDuration

public Availability withBlobDuration(String blobDuration)

Set the blobDuration property: Duration of the availability blob.

Parameters:

blobDuration - the blobDuration value to set.

Returns:

the Availability object itself.

withRetention

public Availability withRetention(String retention)

Set the retention property: The retention of the availability.

Parameters:

retention - the retention value to set.

Returns:

the Availability object itself.

withTimeGrain

public Availability withTimeGrain(String timeGrain)

Set the timeGrain property: The time grain of the availability.

Parameters:

timeGrain - the timeGrain value to set.

Returns:

the Availability object itself.

Applies to