CommitInner Class

public final class CommitInner
extends ChildResource

The commit resource.

Constructor Summary

Constructor Description
CommitInner()

Creates an instance of CommitInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static CommitInner fromJson(JsonReader jsonReader)

Reads an instance of CommitInner from the JsonReader.

String name()

Get the name property: The name of the resource.

CommitProperties properties()

Get the properties property: The Commit properties.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CommitInner withId(String id)

Set the id property: Resource ID.

CommitInner withProperties(CommitProperties properties)

Set the properties property: The Commit properties.

Methods inherited from ChildResource

Methods inherited from java.lang.Object

Constructor Details

CommitInner

public CommitInner()

Creates an instance of CommitInner class.

Method Details

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Overrides:

CommitInner.etag()

Returns:

the etag value.

fromJson

public static CommitInner fromJson(JsonReader jsonReader)

Reads an instance of CommitInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CommitInner 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CommitInner.name()

Returns:

the name value.

properties

public CommitProperties properties()

Get the properties property: The Commit properties.

Returns:

the properties value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CommitInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CommitInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

CommitInner.validate()

withId

public CommitInner withId(String id)

Set the id property: Resource ID.

Overrides:

CommitInner.withId(String id)

Parameters:

id

withProperties

public CommitInner withProperties(CommitProperties properties)

Set the properties property: The Commit properties.

Parameters:

properties - the properties value to set.

Returns:

the CommitInner object itself.

Applies to