Class GrafanaWorkspaceApiKeyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.grafana_workspace_api_key.GrafanaWorkspaceApiKeyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GrafanaWorkspaceApiKeyConfig>
- Enclosing interface:
- GrafanaWorkspaceApiKeyConfig
@Stability(Stable) public static final class GrafanaWorkspaceApiKeyConfig.Builder extends Object implements software.amazon.jsii.Builder<GrafanaWorkspaceApiKeyConfig>
A builder forGrafanaWorkspaceApiKeyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrafanaWorkspaceApiKeyConfigbuild()Builds the configured instance.GrafanaWorkspaceApiKeyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()GrafanaWorkspaceApiKeyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()GrafanaWorkspaceApiKeyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()GrafanaWorkspaceApiKeyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()GrafanaWorkspaceApiKeyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()GrafanaWorkspaceApiKeyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()GrafanaWorkspaceApiKeyConfig.Builderid(String id)Sets the value ofGrafanaWorkspaceApiKeyConfig.getId()GrafanaWorkspaceApiKeyConfig.BuilderkeyName(String keyName)Sets the value ofGrafanaWorkspaceApiKeyConfig.getKeyName()GrafanaWorkspaceApiKeyConfig.BuilderkeyRole(String keyRole)Sets the value ofGrafanaWorkspaceApiKeyConfig.getKeyRole()GrafanaWorkspaceApiKeyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()GrafanaWorkspaceApiKeyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()GrafanaWorkspaceApiKeyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()GrafanaWorkspaceApiKeyConfig.BuildersecondsToLive(Number secondsToLive)Sets the value ofGrafanaWorkspaceApiKeyConfig.getSecondsToLive()GrafanaWorkspaceApiKeyConfig.BuilderworkspaceId(String workspaceId)Sets the value ofGrafanaWorkspaceApiKeyConfig.getWorkspaceId()
-
-
-
Method Detail
-
keyName
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig.Builder keyName(String keyName)
Sets the value ofGrafanaWorkspaceApiKeyConfig.getKeyName()- Parameters:
keyName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/grafana_workspace_api_key#key_name GrafanaWorkspaceApiKey#key_name}. This parameter is required.- Returns:
this
-
keyRole
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig.Builder keyRole(String keyRole)
Sets the value ofGrafanaWorkspaceApiKeyConfig.getKeyRole()- Parameters:
keyRole- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/grafana_workspace_api_key#key_role GrafanaWorkspaceApiKey#key_role}. This parameter is required.- Returns:
this
-
secondsToLive
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig.Builder secondsToLive(Number secondsToLive)
Sets the value ofGrafanaWorkspaceApiKeyConfig.getSecondsToLive()- Parameters:
secondsToLive- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/grafana_workspace_api_key#seconds_to_live GrafanaWorkspaceApiKey#seconds_to_live}. This parameter is required.- Returns:
this
-
workspaceId
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig.Builder workspaceId(String workspaceId)
Sets the value ofGrafanaWorkspaceApiKeyConfig.getWorkspaceId()- Parameters:
workspaceId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/grafana_workspace_api_key#workspace_id GrafanaWorkspaceApiKey#workspace_id}. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig.Builder id(String id)
Sets the value ofGrafanaWorkspaceApiKeyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/grafana_workspace_api_key#id GrafanaWorkspaceApiKey#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
-
connection
@Stability(Experimental) public GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.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 GrafanaWorkspaceApiKeyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public GrafanaWorkspaceApiKeyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GrafanaWorkspaceApiKeyConfig>- Returns:
- a new instance of
GrafanaWorkspaceApiKeyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-