Class WorkflowTemplateState.Builder

  • Enclosing class:
    WorkflowTemplateState

    public static final class WorkflowTemplateState.Builder
    extends java.lang.Object
    • Method Detail

      • createTime

        public WorkflowTemplateState.Builder createTime​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> createTime)
        Parameters:
        createTime - Output only. The time template was created.
        Returns:
        builder
      • createTime

        public WorkflowTemplateState.Builder createTime​(java.lang.String createTime)
        Parameters:
        createTime - Output only. The time template was created.
        Returns:
        builder
      • dagTimeout

        public WorkflowTemplateState.Builder dagTimeout​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> dagTimeout)
        Parameters:
        dagTimeout - (Beta only) Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h", and "d" suffixes for second, minute, hour, and day duration values, respectively. The timeout duration must be from 10 minutes ("10m") to 24 hours ("24h" or "1d"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a (/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), the cluster is deleted.
        Returns:
        builder
      • dagTimeout

        public WorkflowTemplateState.Builder dagTimeout​(java.lang.String dagTimeout)
        Parameters:
        dagTimeout - (Beta only) Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h", and "d" suffixes for second, minute, hour, and day duration values, respectively. The timeout duration must be from 10 minutes ("10m") to 24 hours ("24h" or "1d"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a (/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), the cluster is deleted.
        Returns:
        builder
      • effectiveLabels

        public WorkflowTemplateState.Builder effectiveLabels​(@Nullable
                                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> effectiveLabels)
        Parameters:
        effectiveLabels - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
        Returns:
        builder
      • effectiveLabels

        public WorkflowTemplateState.Builder effectiveLabels​(java.util.Map<java.lang.String,​java.lang.Object> effectiveLabels)
        Parameters:
        effectiveLabels - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
        Returns:
        builder
      • labels

        public WorkflowTemplateState.Builder labels​(@Nullable
                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> labels)
        Parameters:
        labels - The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance. Label **keys** must contain 1 to 63 characters, and must conform to (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a template.
        Returns:
        builder
      • labels

        public WorkflowTemplateState.Builder labels​(java.util.Map<java.lang.String,​java.lang.String> labels)
        Parameters:
        labels - The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance. Label **keys** must contain 1 to 63 characters, and must conform to (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a template.
        Returns:
        builder
      • location

        public WorkflowTemplateState.Builder location​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> location)
        Parameters:
        location - The location for the resource
        Returns:
        builder
      • location

        public WorkflowTemplateState.Builder location​(java.lang.String location)
        Parameters:
        location - The location for the resource
        Returns:
        builder
      • name

        public WorkflowTemplateState.Builder name​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` * For `projects.locations.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
        Returns:
        builder
      • name

        public WorkflowTemplateState.Builder name​(java.lang.String name)
        Parameters:
        name - Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` * For `projects.locations.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
        Returns:
        builder
      • parameters

        public WorkflowTemplateState.Builder parameters​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<WorkflowTemplateParameterArgs>> parameters)
        Parameters:
        parameters - Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
        Returns:
        builder
      • parameters

        public WorkflowTemplateState.Builder parameters​(java.util.List<WorkflowTemplateParameterArgs> parameters)
        Parameters:
        parameters - Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
        Returns:
        builder
      • parameters

        public WorkflowTemplateState.Builder parameters​(WorkflowTemplateParameterArgs... parameters)
        Parameters:
        parameters - Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
        Returns:
        builder
      • project

        public WorkflowTemplateState.Builder project​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The project for the resource
        Returns:
        builder
      • project

        public WorkflowTemplateState.Builder project​(java.lang.String project)
        Parameters:
        project - The project for the resource
        Returns:
        builder
      • pulumiLabels

        public WorkflowTemplateState.Builder pulumiLabels​(@Nullable
                                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> pulumiLabels)
        Parameters:
        pulumiLabels - The combination of labels configured directly on the resource and default labels configured on the provider.
        Returns:
        builder
      • pulumiLabels

        public WorkflowTemplateState.Builder pulumiLabels​(java.util.Map<java.lang.String,​java.lang.Object> pulumiLabels)
        Parameters:
        pulumiLabels - The combination of labels configured directly on the resource and default labels configured on the provider.
        Returns:
        builder
      • updateTime

        public WorkflowTemplateState.Builder updateTime​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> updateTime)
        Parameters:
        updateTime - Output only. The time template was last updated.
        Returns:
        builder
      • updateTime

        public WorkflowTemplateState.Builder updateTime​(java.lang.String updateTime)
        Parameters:
        updateTime - Output only. The time template was last updated.
        Returns:
        builder
      • version

        @Deprecated
        public WorkflowTemplateState.Builder version​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Integer> version)
        Deprecated.
        version is not useful as a configurable field, and will be removed in the future.
        Parameters:
        version - Used to perform a consistent read-modify-write. This field should be left blank for a `CreateWorkflowTemplate` request. It is required for an `UpdateWorkflowTemplate` request, and must match the current server version. A typical update template flow would fetch the current template with a `GetWorkflowTemplate` request, which will return the current template with the `version` field filled in with the current server version. The user updates other fields in the template, then returns it as part of the `UpdateWorkflowTemplate` request.
        Returns:
        builder
      • version

        @Deprecated
        public WorkflowTemplateState.Builder version​(java.lang.Integer version)
        Deprecated.
        version is not useful as a configurable field, and will be removed in the future.
        Parameters:
        version - Used to perform a consistent read-modify-write. This field should be left blank for a `CreateWorkflowTemplate` request. It is required for an `UpdateWorkflowTemplate` request, and must match the current server version. A typical update template flow would fetch the current template with a `GetWorkflowTemplate` request, which will return the current template with the `version` field filled in with the current server version. The user updates other fields in the template, then returns it as part of the `UpdateWorkflowTemplate` request.
        Returns:
        builder