你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceGroupExportResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.ResourceGroupExportResultInner

Implements

public final class ResourceGroupExportResultInner
implements JsonSerializable<ResourceGroupExportResultInner>

Resource group export result.

Constructor Summary

Constructor Description
ResourceGroupExportResultInner()

Creates an instance of ResourceGroupExportResultInner class.

Method Summary

Modifier and Type Method and Description
ManagementError error()

Get the error property: The template export error.

static ResourceGroupExportResultInner fromJson(JsonReader jsonReader)

Reads an instance of ResourceGroupExportResultInner from the JsonReader.

String output()

Get the output property: The formatted export content.

Object template()

Get the template property: The template content.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResourceGroupExportResultInner withError(ManagementError error)

Set the error property: The template export error.

ResourceGroupExportResultInner withOutput(String output)

Set the output property: The formatted export content.

ResourceGroupExportResultInner withTemplate(Object template)

Set the template property: The template content.

Methods inherited from java.lang.Object

Constructor Details

ResourceGroupExportResultInner

public ResourceGroupExportResultInner()

Creates an instance of ResourceGroupExportResultInner class.

Method Details

error

public ManagementError error()

Get the error property: The template export error.

Returns:

the error value.

fromJson

public static ResourceGroupExportResultInner fromJson(JsonReader jsonReader)

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.

output

public String output()

Get the output property: The formatted export content. Used if outputFormat is set to 'Bicep'.

Returns:

the output value.

template

public Object template()

Get the template property: The template content. Used if outputFormat is empty or set to 'Json'.

Returns:

the template value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withError

public ResourceGroupExportResultInner withError(ManagementError error)

Set the error property: The template export error.

Parameters:

error - the error value to set.

Returns:

the ResourceGroupExportResultInner object itself.

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.

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.

Applies to