TrackedResource Class

public final class TrackedResource
extends ProxyResource

Describes an Azure tracked resource.

Constructor Summary

Constructor Description
TrackedResource()

Creates an instance of TrackedResource class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

String kind()

Get the kind property: Kind of the resource.

String location()

Get the location property: Location where the resource is stored.

Map<String,String> tags()

Get the tags property: A list of key value pairs that describe the resource.

void validate()

Validates the instance.

TrackedResource withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

TrackedResource withKind(String kind)

Set the kind property: Kind of the resource.

TrackedResource withLocation(String location)

Set the location property: Location where the resource is stored.

TrackedResource withTags(Map<String,String> tags)

Set the tags property: A list of key value pairs that describe the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

TrackedResource

public TrackedResource()

Creates an instance of TrackedResource class.

Method Details

etag

public String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Returns:

the etag value.

kind

public String kind()

Get the kind property: Kind of the resource.

Returns:

the kind value.

location

public String location()

Get the location property: Location where the resource is stored.

Returns:

the location value.

tags

public Map tags()

Get the tags property: A list of key value pairs that describe the resource.

Returns:

the tags value.

validate

public void validate()

Validates the instance.

withEtag

public TrackedResource withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Parameters:

etag - the etag value to set.

Returns:

the TrackedResource object itself.

withKind

public TrackedResource withKind(String kind)

Set the kind property: Kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the TrackedResource object itself.

withLocation

public TrackedResource withLocation(String location)

Set the location property: Location where the resource is stored.

Parameters:

location - the location value to set.

Returns:

the TrackedResource object itself.

withTags

public TrackedResource withTags(Map tags)

Set the tags property: A list of key value pairs that describe the resource.

Parameters:

tags - the tags value to set.

Returns:

the TrackedResource object itself.

Applies to