Class ContentLink

java.lang.Object
com.azure.resourcemanager.automation.models.ContentLink
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContentLink>

public final class ContentLink extends Object implements com.azure.json.JsonSerializable<ContentLink>
Definition of the content link.
  • Constructor Details

    • ContentLink

      public ContentLink()
      Creates an instance of ContentLink class.
  • Method Details

    • uri

      public String uri()
      Get the uri property: Gets or sets the uri of the runbook content.
      Returns:
      the uri value.
    • withUri

      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.
    • contentHash

      public ContentHash contentHash()
      Get the contentHash property: Gets or sets the hash.
      Returns:
      the contentHash value.
    • withContentHash

      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.
    • version

      public String version()
      Get the version property: Gets or sets the version of the content.
      Returns:
      the version value.
    • withVersion

      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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ContentLink>
      Throws:
      IOException
    • fromJson

      public static ContentLink fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.