Package com.hashicorp.cdktf
Class DataTerraformRemoteStateRemoteConfig.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateRemoteConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateRemoteConfig>
- Enclosing interface:
DataTerraformRemoteStateRemoteConfig
@Stability(Experimental)
public static final class DataTerraformRemoteStateRemoteConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateRemoteConfig>
A builder for
DataTerraformRemoteStateRemoteConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofDataTerraformRemoteStateConfig.getDefaults()Sets the value ofRemoteBackendConfig.getHostname()organization(String organization) Sets the value ofRemoteBackendConfig.getOrganization()Sets the value ofRemoteBackendConfig.getToken()Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()workspaces(IRemoteWorkspace workspaces) Sets the value ofRemoteBackendConfig.getWorkspaces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateRemoteConfig.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 DataTerraformRemoteStateRemoteConfig.Builder workspace(String workspace) Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()- Parameters:
workspace- the value to be set.- Returns:
this
-
organization
@Stability(Experimental) public DataTerraformRemoteStateRemoteConfig.Builder organization(String organization) Sets the value ofRemoteBackendConfig.getOrganization()- Parameters:
organization- the value to be set. This parameter is required.- Returns:
this
-
workspaces
@Stability(Experimental) public DataTerraformRemoteStateRemoteConfig.Builder workspaces(IRemoteWorkspace workspaces) Sets the value ofRemoteBackendConfig.getWorkspaces()- Parameters:
workspaces- the value to be set. This parameter is required.- Returns:
this
-
hostname
@Stability(Experimental) public DataTerraformRemoteStateRemoteConfig.Builder hostname(String hostname) Sets the value ofRemoteBackendConfig.getHostname()- Parameters:
hostname- the value to be set.- Returns:
this
-
token
Sets the value ofRemoteBackendConfig.getToken()- Parameters:
token- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateRemoteConfig>- Returns:
- a new instance of
DataTerraformRemoteStateRemoteConfig - Throws:
NullPointerException- if any required attribute was not provided
-