ChargeSummary Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. consumption. models. ChargeSummary
- com.
- com.
public class ChargeSummary
extends ProxyResource
A charge summary resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ChargeSummary() |
Creates an instance of Charge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
etag()
Get the etag property: e |
|
static
Charge |
fromJson(JsonReader jsonReader)
Reads an instance of Charge |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Charge |
kind()
Get the kind property: Specifies the kind of charge summary. |
| String |
name()
Get the name property: The name of the resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Charge |
withEtag(String etag)
Set the etag property: e |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ChargeSummary
public ChargeSummary()
Creates an instance of ChargeSummary class.
Method Details
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:
fromJson
public static ChargeSummary fromJson(JsonReader jsonReader)
Reads an instance of ChargeSummary from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ChargeSummary.id()Returns:
kind
public ChargeSummaryKind kind()
Get the kind property: Specifies the kind of charge summary.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ChargeSummary.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ChargeSummary.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ChargeSummary.type()Returns:
validate
public void validate()
Validates the instance.
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:
Returns: