TagProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.fluent.models.TagProperties

Implements

public final class TagProperties
implements JsonSerializable<TagProperties>

The properties of the tag.

Constructor Summary

Constructor Description
TagProperties()

Creates an instance of TagProperties class.

Method Summary

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

Reads an instance of TagProperties from the JsonReader.

String nextLink()

Get the nextLink property: The link (url) to the next page of results.

String previousLink()

Get the previousLink property: The link (url) to the previous page of results.

List<Tag> tags()

Get the tags property: A list of Tag.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TagProperties withTags(List<Tag> tags)

Set the tags property: A list of Tag.

Methods inherited from java.lang.Object

Constructor Details

TagProperties

public TagProperties()

Creates an instance of TagProperties class.

Method Details

fromJson

public static TagProperties fromJson(JsonReader jsonReader)

Reads an instance of TagProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextLink

public String nextLink()

Get the nextLink property: The link (url) to the next page of results.

Returns:

the nextLink value.

previousLink

public String previousLink()

Get the previousLink property: The link (url) to the previous page of results.

Returns:

the previousLink value.

tags

public List<Tag> tags()

Get the tags property: A list of Tag.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTags

public TagProperties withTags(List<Tag> tags)

Set the tags property: A list of Tag.

Parameters:

tags - the tags value to set.

Returns:

the TagProperties object itself.

Applies to