Partager via


TemplateHashResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.TemplateHashResultInner

Implements

public final class TemplateHashResultInner
implements JsonSerializable<TemplateHashResultInner>

Result of the request to calculate template hash. It contains a string of minified template and its hash.

Constructor Summary

Constructor Description
TemplateHashResultInner()

Creates an instance of TemplateHashResultInner class.

Method Summary

Modifier and Type Method and Description
static TemplateHashResultInner fromJson(JsonReader jsonReader)

Reads an instance of TemplateHashResultInner from the JsonReader.

String minifiedTemplate()

Get the minifiedTemplate property: The minified template string.

String templateHash()

Get the templateHash property: The template hash.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TemplateHashResultInner withMinifiedTemplate(String minifiedTemplate)

Set the minifiedTemplate property: The minified template string.

TemplateHashResultInner withTemplateHash(String templateHash)

Set the templateHash property: The template hash.

Methods inherited from java.lang.Object

Constructor Details

TemplateHashResultInner

public TemplateHashResultInner()

Creates an instance of TemplateHashResultInner class.

Method Details

fromJson

public static TemplateHashResultInner fromJson(JsonReader jsonReader)

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.

minifiedTemplate

public String minifiedTemplate()

Get the minifiedTemplate property: The minified template string.

Returns:

the minifiedTemplate value.

templateHash

public String templateHash()

Get the templateHash property: The template hash.

Returns:

the templateHash value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to