Partager via


TagCount Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.TagCount

Implements

public final class TagCount
implements JsonSerializable<TagCount>

Tag count.

Constructor Summary

Constructor Description
TagCount()

Creates an instance of TagCount class.

Method Summary

Modifier and Type Method and Description
static TagCount fromJson(JsonReader jsonReader)

Reads an instance of TagCount from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of count.

void validate()

Validates the instance.

Integer value()

Get the value property: Value of count.

TagCount withType(String type)

Set the type property: Type of count.

TagCount withValue(Integer value)

Set the value property: Value of count.

Methods inherited from java.lang.Object

Constructor Details

TagCount

public TagCount()

Creates an instance of TagCount class.

Method Details

fromJson

public static TagCount fromJson(JsonReader jsonReader)

Reads an instance of TagCount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of count.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public Integer value()

Get the value property: Value of count.

Returns:

the value value.

withType

public TagCount withType(String type)

Set the type property: Type of count.

Parameters:

type - the type value to set.

Returns:

the TagCount object itself.

withValue

public TagCount withValue(Integer value)

Set the value property: Value of count.

Parameters:

value - the value value to set.

Returns:

the TagCount object itself.

Applies to