ExportResource Class
- java.
lang. Object - com.
azure. resourcemanager. terraform. models. BaseExportModel - com.
azure. resourcemanager. terraform. models. ExportResource
- com.
- com.
public final class ExportResource
extends BaseExportModel
Export parameter for individual resources.
Constructor Summary
| Constructor | Description |
|---|---|
| ExportResource() |
Creates an instance of Export |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Export |
fromJson(JsonReader jsonReader)
Reads an instance of Export |
| String |
namePattern()
Get the name |
| List<String> |
resourceIds()
Get the resource |
| String |
resourceName()
Get the resource |
| String |
resourceType()
Get the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
| Type |
type()
Get the type property: The parameter type. |
| void |
validate()
Validates the instance. |
|
Export |
withFullProperties(Boolean fullProperties)
Set the full |
|
Export |
withMaskSensitive(Boolean maskSensitive)
Set the mask |
|
Export |
withNamePattern(String namePattern)
Set the name |
|
Export |
withResourceIds(List<String> resourceIds)
Set the resource |
|
Export |
withResourceName(String resourceName)
Set the resource |
|
Export |
withResourceType(String resourceType)
Set the resource |
|
Export |
withTargetProvider(TargetProvider targetProvider)
Set the target |
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:
Returns:
Throws:
namePattern
public String namePattern()
Get the namePattern property: The name pattern of the Terraform resources.
Returns:
resourceIds
public List<String> resourceIds()
Get the resourceIds property: The id of the resource to be exported.
Returns:
resourceName
public String resourceName()
Get the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item.
Returns:
resourceType
public String resourceType()
Get the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ExportResource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public Type type()
Get the type property: The parameter type.
Overrides:
ExportResource.type()Returns:
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:
withMaskSensitive
public ExportResource withMaskSensitive(Boolean maskSensitive)
Set the maskSensitive property: Mask sensitive attributes in the Terraform configuration.
Overrides:
ExportResource.withMaskSensitive(Boolean maskSensitive)Parameters:
withNamePattern
public ExportResource withNamePattern(String namePattern)
Set the namePattern property: The name pattern of the Terraform resources.
Parameters:
Returns:
withResourceIds
public ExportResource withResourceIds(List<String> resourceIds)
Set the resourceIds property: The id of the resource to be exported.
Parameters:
Returns:
withResourceName
public ExportResource withResourceName(String resourceName)
Set the resourceName property: The Terraform resource name. Only works when `resourceIds` contains only one item.
Parameters:
Returns:
withResourceType
public ExportResource withResourceType(String resourceType)
Set the resourceType property: The Terraform resource type. Only works when `resourceIds` contains only one item.
Parameters:
Returns:
withTargetProvider
public ExportResource withTargetProvider(TargetProvider targetProvider)
Set the targetProvider property: The target Azure Terraform Provider.
Overrides:
ExportResource.withTargetProvider(TargetProvider targetProvider)Parameters: