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 Summary
ConstructorsConstructorDescriptionCreates an instance of TemplateHashResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateHashResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TemplateHashResultInner from the JsonReader.Get the minifiedTemplate property: The minified template string.Get the templateHash property: The template hash.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMinifiedTemplate(String minifiedTemplate) Set the minifiedTemplate property: The minified template string.withTemplateHash(String templateHash) Set the templateHash property: The template hash.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TemplateHashResultInner
public TemplateHashResultInner()Creates an instance of TemplateHashResultInner class.
-
-
Method Details
-
minifiedTemplate
Get the minifiedTemplate property: The minified template string.- Returns:
- the minifiedTemplate value.
-
withMinifiedTemplate
Set the minifiedTemplate property: The minified template string.- Parameters:
minifiedTemplate- the minifiedTemplate value to set.- Returns:
- the TemplateHashResultInner object itself.
-
templateHash
Get the templateHash property: The template hash.- Returns:
- the templateHash value.
-
withTemplateHash
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
- Specified by:
toJsonin interfacecom.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.
-