Class WorkspacesWorkspaceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.workspaces_workspace.WorkspacesWorkspaceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkspacesWorkspaceConfig>
- Enclosing interface:
- WorkspacesWorkspaceConfig
@Stability(Stable) public static final class WorkspacesWorkspaceConfig.Builder extends Object implements software.amazon.jsii.Builder<WorkspacesWorkspaceConfig>
A builder forWorkspacesWorkspaceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
bundleId
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder bundleId(String bundleId)
Sets the value ofWorkspacesWorkspaceConfig.getBundleId()- Parameters:
bundleId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#bundle_id WorkspacesWorkspace#bundle_id}. This parameter is required.- Returns:
this
-
directoryId
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder directoryId(String directoryId)
Sets the value ofWorkspacesWorkspaceConfig.getDirectoryId()- Parameters:
directoryId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#directory_id WorkspacesWorkspace#directory_id}. This parameter is required.- Returns:
this
-
userName
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder userName(String userName)
Sets the value ofWorkspacesWorkspaceConfig.getUserName()- Parameters:
userName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#user_name WorkspacesWorkspace#user_name}. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder id(String id)
Sets the value ofWorkspacesWorkspaceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#id WorkspacesWorkspace#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
rootVolumeEncryptionEnabled
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder rootVolumeEncryptionEnabled(Boolean rootVolumeEncryptionEnabled)
Sets the value ofWorkspacesWorkspaceConfig.getRootVolumeEncryptionEnabled()- Parameters:
rootVolumeEncryptionEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#root_volume_encryption_enabled WorkspacesWorkspace#root_volume_encryption_enabled}.- Returns:
this
-
rootVolumeEncryptionEnabled
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder rootVolumeEncryptionEnabled(com.hashicorp.cdktf.IResolvable rootVolumeEncryptionEnabled)
Sets the value ofWorkspacesWorkspaceConfig.getRootVolumeEncryptionEnabled()- Parameters:
rootVolumeEncryptionEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#root_volume_encryption_enabled WorkspacesWorkspace#root_volume_encryption_enabled}.- Returns:
this
-
tags
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder tags(Map<String,String> tags)
Sets the value ofWorkspacesWorkspaceConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#tags WorkspacesWorkspace#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofWorkspacesWorkspaceConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#tags_all WorkspacesWorkspace#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder timeouts(WorkspacesWorkspaceTimeouts timeouts)
Sets the value ofWorkspacesWorkspaceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#timeouts WorkspacesWorkspace#timeouts}- Returns:
this
-
userVolumeEncryptionEnabled
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder userVolumeEncryptionEnabled(Boolean userVolumeEncryptionEnabled)
Sets the value ofWorkspacesWorkspaceConfig.getUserVolumeEncryptionEnabled()- Parameters:
userVolumeEncryptionEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#user_volume_encryption_enabled WorkspacesWorkspace#user_volume_encryption_enabled}.- Returns:
this
-
userVolumeEncryptionEnabled
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder userVolumeEncryptionEnabled(com.hashicorp.cdktf.IResolvable userVolumeEncryptionEnabled)
Sets the value ofWorkspacesWorkspaceConfig.getUserVolumeEncryptionEnabled()- Parameters:
userVolumeEncryptionEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#user_volume_encryption_enabled WorkspacesWorkspace#user_volume_encryption_enabled}.- Returns:
this
-
volumeEncryptionKey
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder volumeEncryptionKey(String volumeEncryptionKey)
Sets the value ofWorkspacesWorkspaceConfig.getVolumeEncryptionKey()- Parameters:
volumeEncryptionKey- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#volume_encryption_key WorkspacesWorkspace#volume_encryption_key}.- Returns:
this
-
workspaceProperties
@Stability(Stable) public WorkspacesWorkspaceConfig.Builder workspaceProperties(WorkspacesWorkspaceWorkspaceProperties workspaceProperties)
Sets the value ofWorkspacesWorkspaceConfig.getWorkspaceProperties()- Parameters:
workspaceProperties- workspace_properties block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/workspaces_workspace#workspace_properties WorkspacesWorkspace#workspace_properties}- Returns:
this
-
connection
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public WorkspacesWorkspaceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public WorkspacesWorkspaceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkspacesWorkspaceConfig>- Returns:
- a new instance of
WorkspacesWorkspaceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-