Partager via


StatusCodeCount Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.StatusCodeCount

Implements

public final class StatusCodeCount
implements JsonSerializable<StatusCodeCount>

The status code and count of the cloud service instance view statuses.

Constructor Summary

Constructor Description
StatusCodeCount()

Creates an instance of StatusCodeCount class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The instance view status code.

Integer count()

Get the count property: Number of instances having this status code.

static StatusCodeCount fromJson(JsonReader jsonReader)

Reads an instance of StatusCodeCount from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

StatusCodeCount

public StatusCodeCount()

Creates an instance of StatusCodeCount class.

Method Details

code

public String code()

Get the code property: The instance view status code.

Returns:

the code value.

count

public Integer count()

Get the count property: Number of instances having this status code.

Returns:

the count value.

fromJson

public static StatusCodeCount fromJson(JsonReader jsonReader)

Reads an instance of StatusCodeCount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StatusCodeCount 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 StatusCodeCount.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to