Class WorkflowsWorkflowConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • callLogLevel

        @Stability(Stable)
        public WorkflowsWorkflowConfig.Builder callLogLevel​(String callLogLevel)
        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)
        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)
        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)
        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)
        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)
        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)
        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
      • region

        @Stability(Stable)
        public WorkflowsWorkflowConfig.Builder region​(String region)
        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)
        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)
        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
      • userEnvVars

        @Stability(Stable)
        public WorkflowsWorkflowConfig.Builder userEnvVars​(Map<String,​String> userEnvVars)
        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 of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public WorkflowsWorkflowConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public WorkflowsWorkflowConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this