Package com.hashicorp.cdktf
Class DataTerraformRemoteStateLocalConfig.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateLocalConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateLocalConfig>
- Enclosing interface:
DataTerraformRemoteStateLocalConfig
@Stability(Experimental)
public static final class DataTerraformRemoteStateLocalConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateLocalConfig>
A builder for
DataTerraformRemoteStateLocalConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofDataTerraformRemoteStateConfig.getDefaults()
Sets the value ofLocalBackendConfig.getPath()
Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()
workspaceDir
(String workspaceDir) Sets the value ofLocalBackendConfig.getWorkspaceDir()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateLocalConfig.Builder defaults(Map<String, ? extends Object> defaults) Sets the value ofDataTerraformRemoteStateConfig.getDefaults()
- Parameters:
defaults
- the value to be set.- Returns:
this
-
workspace
@Stability(Experimental) public DataTerraformRemoteStateLocalConfig.Builder workspace(String workspace) Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()
- Parameters:
workspace
- the value to be set.- Returns:
this
-
path
Sets the value ofLocalBackendConfig.getPath()
- Parameters:
path
- Path where the state file is stored.- Returns:
this
-
workspaceDir
@Stability(Experimental) public DataTerraformRemoteStateLocalConfig.Builder workspaceDir(String workspaceDir) Sets the value ofLocalBackendConfig.getWorkspaceDir()
- Parameters:
workspaceDir
- (Optional) The path to non-default workspaces.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateLocalConfig>
- Returns:
- a new instance of
DataTerraformRemoteStateLocalConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-