ChargeSummary Class

public class ChargeSummary
extends ProxyResource

A charge summary resource.

Constructor Summary

Constructor Description
ChargeSummary()

Creates an instance of ChargeSummary class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: eTag of the resource.

static ChargeSummary fromJson(JsonReader jsonReader)

Reads an instance of ChargeSummary from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ChargeSummaryKind kind()

Get the kind property: Specifies the kind of charge summary.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ChargeSummary withEtag(String etag)

Set the etag property: eTag of the resource.

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:

the etag value.

fromJson

public static ChargeSummary fromJson(JsonReader jsonReader)

Reads an instance of ChargeSummary from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ChargeSummary if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ChargeSummary.id()

Returns:

the id value.

kind

public ChargeSummaryKind kind()

Get the kind property: Specifies the kind of charge summary.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ChargeSummary.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ChargeSummary.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ChargeSummary.type()

Returns:

the type value.

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:

etag - the etag value to set.

Returns:

the ChargeSummary object itself.

Applies to