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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportTemplateRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExportTemplateRequest from the JsonReader.options()Get the options property: The export template options.Get the outputFormat property: The output format for the exported resources.Get the resources property: The IDs of the resources to filter the export by.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOptions(String options) Set the options property: The export template options.withOutputFormat(ExportTemplateOutputFormat outputFormat) Set the outputFormat property: The output format for the exported resources.withResources(List<String> resources) Set the resources property: The IDs of the resources to filter the export by.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
-
ExportTemplateRequest
public ExportTemplateRequest()Creates an instance of ExportTemplateRequest class.
-
-
Method Details
-
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
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
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
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
Get the outputFormat property: The output format for the exported resources.- Returns:
- the outputFormat value.
-
withOutputFormat
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
- Specified by:
toJsonin interfacecom.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.
-