Class ExportTemplateRequest

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

public final class ExportTemplateRequest extends Object implements com.azure.json.JsonSerializable<ExportTemplateRequest>
Export resource group template request parameters.
  • Constructor Details

    • ExportTemplateRequest

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

    • resources

      public List<String> resources()
      Get the resources property: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
      Returns:
      the resources value.
    • withResources

      public ExportTemplateRequest withResources(List<String> resources)
      Set the resources property: The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'.
      Parameters:
      resources - the resources value to set.
      Returns:
      the ExportTemplateRequest object itself.
    • options

      public String options()
      Get the options property: The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
      Returns:
      the options value.
    • withOptions

      public ExportTemplateRequest withOptions(String options)
      Set the options property: The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'.
      Parameters:
      options - the options value to set.
      Returns:
      the ExportTemplateRequest object itself.
    • outputFormat

      public ExportTemplateOutputFormat outputFormat()
      Get the outputFormat property: The output format for the exported resources.
      Returns:
      the outputFormat value.
    • withOutputFormat

      public ExportTemplateRequest withOutputFormat(ExportTemplateOutputFormat outputFormat)
      Set the outputFormat property: The output format for the exported resources.
      Parameters:
      outputFormat - the outputFormat value to set.
      Returns:
      the ExportTemplateRequest 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<ExportTemplateRequest>
      Throws:
      IOException
    • fromJson

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