Class TemplateHashResultInner

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

public final class TemplateHashResultInner extends Object implements com.azure.json.JsonSerializable<TemplateHashResultInner>
Result of the request to calculate template hash. It contains a string of minified template and its hash.
  • Constructor Details

    • TemplateHashResultInner

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

    • minifiedTemplate

      public String minifiedTemplate()
      Get the minifiedTemplate property: The minified template string.
      Returns:
      the minifiedTemplate value.
    • withMinifiedTemplate

      public TemplateHashResultInner withMinifiedTemplate(String minifiedTemplate)
      Set the minifiedTemplate property: The minified template string.
      Parameters:
      minifiedTemplate - the minifiedTemplate value to set.
      Returns:
      the TemplateHashResultInner object itself.
    • templateHash

      public String templateHash()
      Get the templateHash property: The template hash.
      Returns:
      the templateHash value.
    • withTemplateHash

      public TemplateHashResultInner withTemplateHash(String templateHash)
      Set the templateHash property: The template hash.
      Parameters:
      templateHash - the templateHash value to set.
      Returns:
      the TemplateHashResultInner 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<TemplateHashResultInner>
      Throws:
      IOException
    • fromJson

      public static TemplateHashResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TemplateHashResultInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TemplateHashResultInner 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 TemplateHashResultInner.