Поделиться через


TrackedResourceUpdate Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.TrackedResourceUpdate

Implements

public class TrackedResourceUpdate
implements JsonSerializable<TrackedResourceUpdate>

Base tracked resource type for PATCH updates.

Constructor Summary

Constructor Description
TrackedResourceUpdate()

Creates an instance of TrackedResourceUpdate class.

Method Summary

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

Reads an instance of TrackedResourceUpdate from the JsonReader.

String location()

Get the location property: The geo-location where the resource lives.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TrackedResourceUpdate withLocation(String location)

Set the location property: The geo-location where the resource lives.

TrackedResourceUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

TrackedResourceUpdate

public TrackedResourceUpdate()

Creates an instance of TrackedResourceUpdate class.

Method Details

fromJson

public static TrackedResourceUpdate fromJson(JsonReader jsonReader)

Reads an instance of TrackedResourceUpdate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public TrackedResourceUpdate withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the TrackedResourceUpdate object itself.

withTags

public TrackedResourceUpdate withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the TrackedResourceUpdate object itself.

Applies to