Share via


ContentLink Class

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

Implements

public final class ContentLink
implements JsonSerializable<ContentLink>

Definition of 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: Gets or sets the hash.

static ContentLink fromJson(JsonReader jsonReader)

Reads an instance of ContentLink from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: Gets or sets the uri of the runbook content.

void validate()

Validates the instance.

String version()

Get the version property: Gets or sets the version of the content.

ContentLink withContentHash(ContentHash contentHash)

Set the contentHash property: Gets or sets the hash.

ContentLink withUri(String uri)

Set the uri property: Gets or sets the uri of the runbook content.

ContentLink withVersion(String version)

Set the version property: Gets or sets the version of the content.

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: Gets or sets the hash.

Returns:

the contentHash 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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

public String uri()

Get the uri property: Gets or sets the uri of the runbook content.

Returns:

the uri value.

public void validate()

Validates the instance.

public String version()

Get the version property: Gets or sets the version of the content.

Returns:

the version value.

public ContentLink withContentHash(ContentHash contentHash)

Set the contentHash property: Gets or sets the hash.

Parameters:

contentHash - the contentHash value to set.

Returns:

the ContentLink object itself.

public ContentLink withUri(String uri)

Set the uri property: Gets or sets the uri of the runbook content.

Parameters:

uri - the uri value to set.

Returns:

the ContentLink object itself.

public ContentLink withVersion(String version)

Set the version property: Gets or sets the version of the content.

Parameters:

version - the version value to set.

Returns:

the ContentLink object itself.

Applies to