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 Details

    • DeploymentStackTemplateDefinitionInner

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

    • template

      public Object 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

      public DeploymentStackTemplateDefinitionInner withTemplate(Object template)
      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

      public DeploymentStacksTemplateLink 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

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.