Share via


ExportResource Class

public final class ExportResource
extends BaseExportModel

Export parameter for individual resources.

Constructor Summary

Constructor Description
ExportResource()

Creates an instance of ExportResource class.

Method Summary

Modifier and Type Method and Description
static ExportResource fromJson(JsonReader jsonReader)

Reads an instance of ExportResource from the JsonReader.

String namePattern()

Get the namePattern property: The name pattern of the Terraform resources.

List<String> resourceIds()

Get the resourceIds property: The id of the resource to be exported.

String resourceName()

Get the resourceName property: The Terraform resource name.

String resourceType()

Get the resourceType property: The Terraform resource type.

JsonWriter toJson(JsonWriter jsonWriter)
Type type()

Get the type property: The parameter type.

void validate()

Validates the instance.

ExportResource withFullProperties(Boolean fullProperties)

Set the fullProperties property: Whether to output all non-computed properties in the generated Terraform configuration? This probably needs manual modifications to make it valid.

ExportResource withMaskSensitive(Boolean maskSensitive)

Set the maskSensitive property: Mask sensitive attributes in the Terraform configuration.

ExportResource withNamePattern(String namePattern)

Set the namePattern property: The name pattern of the Terraform resources.

ExportResource withResourceIds(List<String> resourceIds)

Set the resourceIds property: The id of the resource to be exported.

ExportResource withResourceName(String resourceName)

Set the resourceName property: The Terraform resource name.

ExportResource withResourceType(String resourceType)

Set the resourceType property: The Terraform resource type.

ExportResource withTargetProvider(TargetProvider targetProvider)

Set the targetProvider property: The target Azure Terraform Provider.

Methods inherited from BaseExportModel

Methods inherited from java.lang.Object

Constructor Details

ExportResource

public ExportResource()

Creates an instance of ExportResource class.

Method Details

fromJson

public static ExportResource fromJson(JsonReader jsonReader)

Reads an instance of ExportResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExportResource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

namePattern

public String namePattern()

Get the namePattern property: The name pattern of the Terraform resources.

Returns:

the namePattern value.

resourceIds

public List<String> resourceIds()

Get the resourceIds property: The id of the resource to be exported.

Returns:

the resourceIds value.

resourceName

public String resourceName()

Get the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item.

Returns:

the resourceName value.

resourceType

public String resourceType()

Get the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ExportResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Type type()

Get the type property: The parameter type.

Overrides:

ExportResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ExportResource.validate()

withFullProperties

public ExportResource withFullProperties(Boolean fullProperties)

Set the fullProperties property: Whether to output all non-computed properties in the generated Terraform configuration? This probably needs manual modifications to make it valid.

Overrides:

ExportResource.withFullProperties(Boolean fullProperties)

Parameters:

fullProperties

withMaskSensitive

public ExportResource withMaskSensitive(Boolean maskSensitive)

Set the maskSensitive property: Mask sensitive attributes in the Terraform configuration.

Overrides:

ExportResource.withMaskSensitive(Boolean maskSensitive)

Parameters:

maskSensitive

withNamePattern

public ExportResource withNamePattern(String namePattern)

Set the namePattern property: The name pattern of the Terraform resources.

Parameters:

namePattern - the namePattern value to set.

Returns:

the ExportResource object itself.

withResourceIds

public ExportResource withResourceIds(List<String> resourceIds)

Set the resourceIds property: The id of the resource to be exported.

Parameters:

resourceIds - the resourceIds value to set.

Returns:

the ExportResource object itself.

withResourceName

public ExportResource withResourceName(String resourceName)

Set the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item.

Parameters:

resourceName - the resourceName value to set.

Returns:

the ExportResource object itself.

withResourceType

public ExportResource withResourceType(String resourceType)

Set the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item.

Parameters:

resourceType - the resourceType value to set.

Returns:

the ExportResource object itself.

withTargetProvider

public ExportResource withTargetProvider(TargetProvider targetProvider)

Set the targetProvider property: The target Azure Terraform Provider.

Overrides:

ExportResource.withTargetProvider(TargetProvider targetProvider)

Parameters:

targetProvider

Applies to