Compartilhar via


ContentHash Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ContentHash

Implements

public final class ContentHash
implements JsonSerializable<ContentHash>

The content hash.

Constructor Summary

Constructor Description
ContentHash()

Creates an instance of ContentHash class.

Method Summary

Modifier and Type Method and Description
String algorithm()

Get the algorithm property: The algorithm of the content hash.

static ContentHash fromJson(JsonReader jsonReader)

Reads an instance of ContentHash from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: The value of the content hash.

ContentHash withAlgorithm(String algorithm)

Set the algorithm property: The algorithm of the content hash.

ContentHash withValue(String value)

Set the value property: The value of the content hash.

Methods inherited from java.lang.Object

Constructor Details

ContentHash

public ContentHash()

Creates an instance of ContentHash class.

Method Details

algorithm

public String algorithm()

Get the algorithm property: The algorithm of the content hash.

Returns:

the algorithm value.

fromJson

public static ContentHash fromJson(JsonReader jsonReader)

Reads an instance of ContentHash from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ContentHash.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: The value of the content hash.

Returns:

the value value.

withAlgorithm

public ContentHash withAlgorithm(String algorithm)

Set the algorithm property: The algorithm of the content hash.

Parameters:

algorithm - the algorithm value to set.

Returns:

the ContentHash object itself.

withValue

public ContentHash withValue(String value)

Set the value property: The value of the content hash.

Parameters:

value - the value value to set.

Returns:

the ContentHash object itself.

Applies to