Class ContentLink
java.lang.Object
com.azure.resourcemanager.appservice.models.ContentLink
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContentLink>
public final class ContentLink
extends Object
implements com.azure.json.JsonSerializable<ContentLink>
The content link.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the contentHash property: The content hash.Get the contentSize property: The content size.Get the contentVersion property: The content version.static ContentLink
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContentLink from the JsonReader.metadata()
Get the metadata property: The metadata.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) uri()
Get the uri property: The content link URI.void
validate()
Validates the instance.Set the uri property: The content link URI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContentLink
public ContentLink()Creates an instance of ContentLink class.
-
-
Method Details
-
uri
Get the uri property: The content link URI.- Returns:
- the uri value.
-
withUri
Set the uri property: The content link URI.- Parameters:
uri
- the uri value to set.- Returns:
- the ContentLink object itself.
-
contentVersion
Get the contentVersion property: The content version.- Returns:
- the contentVersion value.
-
contentSize
Get the contentSize property: The content size.- Returns:
- the contentSize value.
-
contentHash
Get the contentHash property: The content hash.- Returns:
- the contentHash value.
-
metadata
Get the metadata property: The metadata.- Returns:
- the metadata value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ContentLink>
- Throws:
IOException
-
fromJson
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.
-