Class ChargeSummary
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.consumption.models.ChargeSummary
-
- Direct Known Subclasses:
LegacyChargeSummary
,ModernChargeSummary
public class ChargeSummary extends com.azure.core.management.ProxyResource
A charge summary resource.
-
-
Constructor Summary
Constructors Constructor Description ChargeSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
etag()
Get the etag property: eTag of the resource.void
validate()
Validates the instance.ChargeSummary
withEtag(String etag)
Set the etag property: eTag of the resource.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.- Returns:
- the etag value.
-
withEtag
public ChargeSummary withEtag(String etag)
Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.- Parameters:
etag
- the etag value to set.- Returns:
- the ChargeSummary object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-