TrackedResource Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. security. models. TrackedResource
- com.
- com.
public final class TrackedResource
extends ProxyResource
Describes an Azure tracked resource.
Constructor Summary
Constructor | Description |
---|---|
TrackedResource() |
Creates an instance of Tracked |
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. |
Tracked |
withEtag(String etag)
Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource. |
Tracked |
withKind(String kind)
Set the kind property: Kind of the resource. |
Tracked |
withLocation(String location)
Set the location property: Location where the resource is stored. |
Tracked |
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:
kind
public String kind()
Get the kind property: Kind of the resource.
Returns:
location
public String location()
Get the location property: Location where the resource is stored.
Returns:
tags
public Map
Get the tags property: A list of key value pairs that describe the resource.
Returns:
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:
Returns:
withKind
public TrackedResource withKind(String kind)
Set the kind property: Kind of the resource.
Parameters:
Returns:
withLocation
public TrackedResource withLocation(String location)
Set the location property: Location where the resource is stored.
Parameters:
Returns:
withTags
public TrackedResource withTags(Map
Set the tags property: A list of key value pairs that describe the resource.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for