Class ResourceGroupExportResultInner

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

public final class ResourceGroupExportResultInner extends Object implements com.azure.json.JsonSerializable<ResourceGroupExportResultInner>
Resource group export result.
  • Constructor Details

    • ResourceGroupExportResultInner

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

    • template

      public Object template()
      Get the template property: The template content. Used if outputFormat is empty or set to 'Json'.
      Returns:
      the template value.
    • withTemplate

      public ResourceGroupExportResultInner withTemplate(Object template)
      Set the template property: The template content. Used if outputFormat is empty or set to 'Json'.
      Parameters:
      template - the template value to set.
      Returns:
      the ResourceGroupExportResultInner object itself.
    • output

      public String output()
      Get the output property: The formatted export content. Used if outputFormat is set to 'Bicep'.
      Returns:
      the output value.
    • withOutput

      public ResourceGroupExportResultInner withOutput(String output)
      Set the output property: The formatted export content. Used if outputFormat is set to 'Bicep'.
      Parameters:
      output - the output value to set.
      Returns:
      the ResourceGroupExportResultInner object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: The template export error.
      Returns:
      the error value.
    • withError

      public ResourceGroupExportResultInner withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: The template export error.
      Parameters:
      error - the error value to set.
      Returns:
      the ResourceGroupExportResultInner 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<ResourceGroupExportResultInner>
      Throws:
      IOException
    • fromJson

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