Class RoutineState.Builder

  • Enclosing class:
    RoutineState

    public static final class RoutineState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arguments

        public RoutineState.Builder arguments​(@Nullable
                                              com.pulumi.core.Output<java.util.List<RoutineArgumentArgs>> arguments)
        Parameters:
        arguments - Input/output argument of a function or a stored procedure. Structure is documented below.
        Returns:
        builder
      • arguments

        public RoutineState.Builder arguments​(java.util.List<RoutineArgumentArgs> arguments)
        Parameters:
        arguments - Input/output argument of a function or a stored procedure. Structure is documented below.
        Returns:
        builder
      • arguments

        public RoutineState.Builder arguments​(RoutineArgumentArgs... arguments)
        Parameters:
        arguments - Input/output argument of a function or a stored procedure. Structure is documented below.
        Returns:
        builder
      • creationTime

        public RoutineState.Builder creationTime​(@Nullable
                                                 com.pulumi.core.Output<java.lang.Integer> creationTime)
        Parameters:
        creationTime - The time when this routine was created, in milliseconds since the epoch.
        Returns:
        builder
      • creationTime

        public RoutineState.Builder creationTime​(java.lang.Integer creationTime)
        Parameters:
        creationTime - The time when this routine was created, in milliseconds since the epoch.
        Returns:
        builder
      • datasetId

        public RoutineState.Builder datasetId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> datasetId)
        Parameters:
        datasetId - The ID of the dataset containing this routine
        Returns:
        builder
      • datasetId

        public RoutineState.Builder datasetId​(java.lang.String datasetId)
        Parameters:
        datasetId - The ID of the dataset containing this routine
        Returns:
        builder
      • definitionBody

        public RoutineState.Builder definitionBody​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> definitionBody)
        Parameters:
        definitionBody - The body of the routine. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. ***
        Returns:
        builder
      • definitionBody

        public RoutineState.Builder definitionBody​(java.lang.String definitionBody)
        Parameters:
        definitionBody - The body of the routine. For functions, this is the expression in the AS clause. If language=SQL, it is the substring inside (but excluding) the parentheses. ***
        Returns:
        builder
      • description

        public RoutineState.Builder description​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - The description of the routine if defined.
        Returns:
        builder
      • description

        public RoutineState.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the routine if defined.
        Returns:
        builder
      • determinismLevel

        public RoutineState.Builder determinismLevel​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> determinismLevel)
        Parameters:
        determinismLevel - The determinism level of the JavaScript UDF if defined. Possible values are: `DETERMINISM_LEVEL_UNSPECIFIED`, `DETERMINISTIC`, `NOT_DETERMINISTIC`.
        Returns:
        builder
      • determinismLevel

        public RoutineState.Builder determinismLevel​(java.lang.String determinismLevel)
        Parameters:
        determinismLevel - The determinism level of the JavaScript UDF if defined. Possible values are: `DETERMINISM_LEVEL_UNSPECIFIED`, `DETERMINISTIC`, `NOT_DETERMINISTIC`.
        Returns:
        builder
      • importedLibraries

        public RoutineState.Builder importedLibraries​(@Nullable
                                                      com.pulumi.core.Output<java.util.List<java.lang.String>> importedLibraries)
        Parameters:
        importedLibraries - Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries.
        Returns:
        builder
      • importedLibraries

        public RoutineState.Builder importedLibraries​(java.util.List<java.lang.String> importedLibraries)
        Parameters:
        importedLibraries - Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries.
        Returns:
        builder
      • importedLibraries

        public RoutineState.Builder importedLibraries​(java.lang.String... importedLibraries)
        Parameters:
        importedLibraries - Optional. If language = "JAVASCRIPT", this field stores the path of the imported JAVASCRIPT libraries.
        Returns:
        builder
      • language

        public RoutineState.Builder language​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> language)
        Parameters:
        language - The language of the routine. Possible values are: `SQL`, `JAVASCRIPT`.
        Returns:
        builder
      • language

        public RoutineState.Builder language​(java.lang.String language)
        Parameters:
        language - The language of the routine. Possible values are: `SQL`, `JAVASCRIPT`.
        Returns:
        builder
      • lastModifiedTime

        public RoutineState.Builder lastModifiedTime​(@Nullable
                                                     com.pulumi.core.Output<java.lang.Integer> lastModifiedTime)
        Parameters:
        lastModifiedTime - The time when this routine was modified, in milliseconds since the epoch.
        Returns:
        builder
      • lastModifiedTime

        public RoutineState.Builder lastModifiedTime​(java.lang.Integer lastModifiedTime)
        Parameters:
        lastModifiedTime - The time when this routine was modified, in milliseconds since the epoch.
        Returns:
        builder
      • project

        public RoutineState.Builder project​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public RoutineState.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • returnTableType

        public RoutineState.Builder returnTableType​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> returnTableType)
        Parameters:
        returnTableType - Optional. Can be set only if routineType = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definitionBody at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time.
        Returns:
        builder
      • returnTableType

        public RoutineState.Builder returnTableType​(java.lang.String returnTableType)
        Parameters:
        returnTableType - Optional. Can be set only if routineType = "TABLE_VALUED_FUNCTION". If absent, the return table type is inferred from definitionBody at query time in each query that references this routine. If present, then the columns in the evaluated table result will be cast to match the column types specificed in return table type, at query time.
        Returns:
        builder
      • returnType

        public RoutineState.Builder returnType​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> returnType)
        Parameters:
        returnType - A JSON schema for the return type. Optional if language = "SQL"; required otherwise. If absent, the return type is inferred from definitionBody at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time. ~>**NOTE**: Because this field expects a JSON string, any changes to the string will create a diff, even if the JSON itself hasn't changed. If the API returns a different value for the same schema, e.g. it switche d the order of values or replaced STRUCT field type with RECORD field type, we currently cannot suppress the recurring diff this causes. As a workaround, we recommend using the schema as returned by the API.
        Returns:
        builder
      • returnType

        public RoutineState.Builder returnType​(java.lang.String returnType)
        Parameters:
        returnType - A JSON schema for the return type. Optional if language = "SQL"; required otherwise. If absent, the return type is inferred from definitionBody at query time in each query that references this routine. If present, then the evaluated result will be cast to the specified returned type at query time. ~>**NOTE**: Because this field expects a JSON string, any changes to the string will create a diff, even if the JSON itself hasn't changed. If the API returns a different value for the same schema, e.g. it switche d the order of values or replaced STRUCT field type with RECORD field type, we currently cannot suppress the recurring diff this causes. As a workaround, we recommend using the schema as returned by the API.
        Returns:
        builder
      • routineId

        public RoutineState.Builder routineId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> routineId)
        Parameters:
        routineId - The ID of the the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
        Returns:
        builder
      • routineId

        public RoutineState.Builder routineId​(java.lang.String routineId)
        Parameters:
        routineId - The ID of the the routine. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
        Returns:
        builder
      • routineType

        public RoutineState.Builder routineType​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> routineType)
        Parameters:
        routineType - The type of routine. Possible values are: `SCALAR_FUNCTION`, `PROCEDURE`, `TABLE_VALUED_FUNCTION`.
        Returns:
        builder
      • routineType

        public RoutineState.Builder routineType​(java.lang.String routineType)
        Parameters:
        routineType - The type of routine. Possible values are: `SCALAR_FUNCTION`, `PROCEDURE`, `TABLE_VALUED_FUNCTION`.
        Returns:
        builder