Class ParametersLink

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

public final class ParametersLink extends Object implements com.azure.json.JsonSerializable<ParametersLink>
Entity representing the reference to the deployment parameters.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ParametersLink class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the contentVersion property: If included, must match the ContentVersion in the template.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ParametersLink from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    uri()
    Get the uri property: The URI of the parameters file.
    void
    Validates the instance.
    withContentVersion(String contentVersion)
    Set the contentVersion property: If included, must match the ContentVersion in the template.
    Set the uri property: The URI of the parameters file.

    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

    • ParametersLink

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

    • uri

      public String uri()
      Get the uri property: The URI of the parameters file.
      Returns:
      the uri value.
    • withUri

      public ParametersLink withUri(String uri)
      Set the uri property: The URI of the parameters file.
      Parameters:
      uri - the uri value to set.
      Returns:
      the ParametersLink object itself.
    • contentVersion

      public String contentVersion()
      Get the contentVersion property: If included, must match the ContentVersion in the template.
      Returns:
      the contentVersion value.
    • withContentVersion

      public ParametersLink withContentVersion(String contentVersion)
      Set the contentVersion property: If included, must match the ContentVersion in the template.
      Parameters:
      contentVersion - the contentVersion value to set.
      Returns:
      the ParametersLink 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<ParametersLink>
      Throws:
      IOException
    • fromJson

      public static ParametersLink fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ParametersLink from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ParametersLink if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ParametersLink.