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 Summary
ConstructorsConstructorDescriptionCreates an instance of ResourceGroupExportResultInner class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementErrorerror()Get the error property: The template export error.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourceGroupExportResultInner from the JsonReader.output()Get the output property: The formatted export content.template()Get the template property: The template content.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withError(com.azure.core.management.exception.ManagementError error) Set the error property: The template export error.withOutput(String output) Set the output property: The formatted export content.withTemplate(Object template) Set the template property: The template content.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
-
ResourceGroupExportResultInner
public ResourceGroupExportResultInner()Creates an instance of ResourceGroupExportResultInner class.
-
-
Method Details
-
template
Get the template property: The template content. Used if outputFormat is empty or set to 'Json'.- Returns:
- the template value.
-
withTemplate
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
Get the output property: The formatted export content. Used if outputFormat is set to 'Bicep'.- Returns:
- the output value.
-
withOutput
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
- Specified by:
toJsonin interfacecom.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.
-