Compartilhar via


ContentLink Class

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

Implements

public final class ContentLink
implements JsonSerializable<ContentLink>

The content link.

Constructor Summary

Constructor Description
ContentLink()

Creates an instance of ContentLink class.

Method Summary

Modifier and Type Method and Description
ContentHash contentHash()

Get the contentHash property: The content hash.

Long contentSize()

Get the contentSize property: The content size.

String contentVersion()

Get the contentVersion property: The content version.

static ContentLink fromJson(JsonReader jsonReader)

Reads an instance of ContentLink from the JsonReader.

Object metadata()

Get the metadata property: The metadata.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The content link URI.

void validate()

Validates the instance.

ContentLink withUri(String uri)

Set the uri property: The content link URI.

Methods inherited from java.lang.Object

Constructor Details

public ContentLink()

Creates an instance of ContentLink class.

Method Details

public ContentHash contentHash()

Get the contentHash property: The content hash.

Returns:

the contentHash value.

public Long contentSize()

Get the contentSize property: The content size.

Returns:

the contentSize value.

public String contentVersion()

Get the contentVersion property: The content version.

Returns:

the contentVersion value.

public static ContentLink fromJson(JsonReader jsonReader)

Reads an instance of ContentLink from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

public Object metadata()

Get the metadata property: The metadata.

Returns:

the metadata value.

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

public String uri()

Get the uri property: The content link URI.

Returns:

the uri value.

public void validate()

Validates the instance.

public ContentLink withUri(String uri)

Set the uri property: The content link URI.

Parameters:

uri - the uri value to set.

Returns:

the ContentLink object itself.

Applies to