Class WorkflowsWorkflowConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.workflows_workflow.WorkflowsWorkflowConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkflowsWorkflowConfig>
- Enclosing interface:
- WorkflowsWorkflowConfig
@Stability(Stable) public static final class WorkflowsWorkflowConfig.Builder extends Object implements software.amazon.jsii.Builder<WorkflowsWorkflowConfig>
A builder forWorkflowsWorkflowConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
callLogLevel
@Stability(Stable) public WorkflowsWorkflowConfig.Builder callLogLevel(String callLogLevel)
Sets the value ofWorkflowsWorkflowConfig.getCallLogLevel()- Parameters:
callLogLevel- Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence. Possible values: ["CALL_LOG_LEVEL_UNSPECIFIED", "LOG_ALL_CALLS", "LOG_ERRORS_ONLY", "LOG_NONE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#call_log_level WorkflowsWorkflow#call_log_level}- Returns:
this
-
cryptoKeyName
@Stability(Stable) public WorkflowsWorkflowConfig.Builder cryptoKeyName(String cryptoKeyName)
Sets the value ofWorkflowsWorkflowConfig.getCryptoKeyName()- Parameters:
cryptoKeyName- The KMS key used to encrypt workflow and execution data. Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey} Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#crypto_key_name WorkflowsWorkflow#crypto_key_name}- Returns:
this
-
description
@Stability(Stable) public WorkflowsWorkflowConfig.Builder description(String description)
Sets the value ofWorkflowsWorkflowConfig.getDescription()- Parameters:
description- Description of the workflow provided by the user. Must be at most 1000 unicode characters long. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#description WorkflowsWorkflow#description}- Returns:
this
-
id
@Stability(Stable) public WorkflowsWorkflowConfig.Builder id(String id)
Sets the value ofWorkflowsWorkflowConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#id WorkflowsWorkflow#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
-
labels
@Stability(Stable) public WorkflowsWorkflowConfig.Builder labels(Map<String,String> labels)
Sets the value ofWorkflowsWorkflowConfig.getLabels()- Parameters:
labels- A set of key/value label pairs to assign to this Workflow. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#labels WorkflowsWorkflow#labels}- Returns:
this
-
name
@Stability(Stable) public WorkflowsWorkflowConfig.Builder name(String name)
Sets the value ofWorkflowsWorkflowConfig.getName()- Parameters:
name- Name of the Workflow. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#name WorkflowsWorkflow#name}- Returns:
this
-
namePrefix
@Stability(Stable) public WorkflowsWorkflowConfig.Builder namePrefix(String namePrefix)
Sets the value ofWorkflowsWorkflowConfig.getNamePrefix()- Parameters:
namePrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#name_prefix WorkflowsWorkflow#name_prefix}.- Returns:
this
-
project
@Stability(Stable) public WorkflowsWorkflowConfig.Builder project(String project)
Sets the value ofWorkflowsWorkflowConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#project WorkflowsWorkflow#project}.- Returns:
this
-
region
@Stability(Stable) public WorkflowsWorkflowConfig.Builder region(String region)
Sets the value ofWorkflowsWorkflowConfig.getRegion()- Parameters:
region- The region of the workflow. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#region WorkflowsWorkflow#region}- Returns:
this
-
serviceAccount
@Stability(Stable) public WorkflowsWorkflowConfig.Builder serviceAccount(String serviceAccount)
Sets the value ofWorkflowsWorkflowConfig.getServiceAccount()- Parameters:
serviceAccount- Name of the service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} or {account}. Using - as a wildcard for the {project} or not providing one at all will infer the project from the account. The {account} value can be the email address or the unique_id of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#service_account WorkflowsWorkflow#service_account}- Returns:
this
-
sourceContents
@Stability(Stable) public WorkflowsWorkflowConfig.Builder sourceContents(String sourceContents)
Sets the value ofWorkflowsWorkflowConfig.getSourceContents()- Parameters:
sourceContents- Workflow code to be executed. The size limit is 128KB. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#source_contents WorkflowsWorkflow#source_contents}- Returns:
this
-
timeouts
@Stability(Stable) public WorkflowsWorkflowConfig.Builder timeouts(WorkflowsWorkflowTimeouts timeouts)
Sets the value ofWorkflowsWorkflowConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#timeouts WorkflowsWorkflow#timeouts}- Returns:
this
-
userEnvVars
@Stability(Stable) public WorkflowsWorkflowConfig.Builder userEnvVars(Map<String,String> userEnvVars)
Sets the value ofWorkflowsWorkflowConfig.getUserEnvVars()- Parameters:
userEnvVars- User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/workflows_workflow#user_env_vars WorkflowsWorkflow#user_env_vars}- Returns:
this
-
connection
@Stability(Experimental) public WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.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 WorkflowsWorkflowConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public WorkflowsWorkflowConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkflowsWorkflowConfig>- Returns:
- a new instance of
WorkflowsWorkflowConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-