Package com.hashicorp.cdktf
Class LocalBackendConfig.Builder
java.lang.Object
com.hashicorp.cdktf.LocalBackendConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocalBackendConfig>
- Enclosing interface:
LocalBackendConfig
@Stability(Experimental)
public static final class LocalBackendConfig.Builder
extends Object
implements software.amazon.jsii.Builder<LocalBackendConfig>
A builder for
LocalBackendConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofLocalBackendConfig.getPath()
workspaceDir
(String workspaceDir) Sets the value ofLocalBackendConfig.getWorkspaceDir()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofLocalBackendConfig.getPath()
- Parameters:
path
- Path where the state file is stored.- Returns:
this
-
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<LocalBackendConfig>
- Returns:
- a new instance of
LocalBackendConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-