Class TrackedResource
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.security.models.TrackedResource
public final class TrackedResource
extends com.azure.core.management.ProxyResource
Describes an Azure tracked resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionetag()
Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.kind()
Get the kind property: Kind of the resource.location()
Get the location property: Location where the resource is stored.tags()
Get the tags property: A list of key value pairs that describe the resource.void
validate()
Validates the instance.Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.Set the kind property: Kind of the resource.withLocation
(String location) Set the location property: Location where the resource is stored.Set the tags property: A list of key value pairs that describe the resource.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
TrackedResource
public TrackedResource()
-
-
Method Details
-
location
Get the location property: Location where the resource is stored.- Returns:
- the location value.
-
withLocation
Set the location property: Location where the resource is stored.- Parameters:
location
- the location value to set.- Returns:
- the TrackedResource object itself.
-
kind
Get the kind property: Kind of the resource.- Returns:
- the kind value.
-
withKind
Set the kind property: Kind of the resource.- Parameters:
kind
- the kind value to set.- Returns:
- the TrackedResource object itself.
-
etag
Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.- Returns:
- the etag value.
-
withEtag
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.
-
tags
Get the tags property: A list of key value pairs that describe the resource.- Returns:
- the tags value.
-
withTags
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-