Class DeploymentStackTemplateDefinitionInner
java.lang.Object
com.azure.resourcemanager.resources.fluent.models.DeploymentStackTemplateDefinitionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentStackTemplateDefinitionInner>
public final class DeploymentStackTemplateDefinitionInner
extends Object
implements com.azure.json.JsonSerializable<DeploymentStackTemplateDefinitionInner>
Export Template specific properties of the Deployment stack.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentStackTemplateDefinitionInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentStackTemplateDefinitionInner from the JsonReader.template()Get the template property: The template content.Get the templateLink property: The URI of the template.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withTemplate(Object template) Set the template property: The template content.withTemplateLink(DeploymentStacksTemplateLink templateLink) Set the templateLink property: The URI of the template.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
-
DeploymentStackTemplateDefinitionInner
public DeploymentStackTemplateDefinitionInner()Creates an instance of DeploymentStackTemplateDefinitionInner class.
-
-
Method Details
-
template
Get the template property: The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.- Returns:
- the template value.
-
withTemplate
Set the template property: The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.- Parameters:
template- the template value to set.- Returns:
- the DeploymentStackTemplateDefinitionInner object itself.
-
templateLink
Get the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.- Returns:
- the templateLink value.
-
withTemplateLink
public DeploymentStackTemplateDefinitionInner withTemplateLink(DeploymentStacksTemplateLink templateLink) Set the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.- Parameters:
templateLink- the templateLink value to set.- Returns:
- the DeploymentStackTemplateDefinitionInner 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<DeploymentStackTemplateDefinitionInner>- Throws:
IOException
-
fromJson
public static DeploymentStackTemplateDefinitionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentStackTemplateDefinitionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentStackTemplateDefinitionInner 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 DeploymentStackTemplateDefinitionInner.
-