Package oracle.pgx.config
Class UdfFunctionArgumentConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.UdfFunctionArgumentConfigBuilder
-
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"}) public final class UdfFunctionArgumentConfigBuilder extends java.lang.Object
Builder forUdfFunctionArgumentConfig
.
-
-
Constructor Summary
Constructors Constructor Description UdfFunctionArgumentConfigBuilder()
Constructs an empty UdfFunctionArgumentConfigBuilderUdfFunctionArgumentConfigBuilder(java.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object> values)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given mapUdfFunctionArgumentConfigBuilder(UdfFunctionArgumentConfig config)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given configUdfFunctionArgumentConfigBuilder(UdfFunctionArgumentConfigBuilder builder)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UdfFunctionArgumentConfig
build()
Builds the UdfFunctionArgumentConfig with aparentPath
ofnull
.UdfFunctionArgumentConfig
build(java.lang.String parentPath)
Builds the UdfFunctionArgumentConfig.static UdfFunctionArgumentConfig
buildUdfFunctionArgumentConfig(java.util.function.Consumer<UdfFunctionArgumentConfigBuilder> builderSetup)
Builds aUdfFunctionArgumentConfig
in-placeUdfFunctionArgumentConfigBuilder
clear()
Clears all values from the builderjava.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object>
getValues()
UdfFunctionArgumentConfigBuilder
putAll(java.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.UdfFunctionArgumentConfigBuilder
putAll(UdfFunctionArgumentConfig config)
Puts all values from the given config into this builderUdfFunctionArgumentConfigBuilder
setName(java.lang.String name)
name of the argumentUdfFunctionArgumentConfigBuilder
setType(PropertyType type)
type of the argumentjava.io.InputStream
toInputStream()
java.lang.String
toString()
-
-
-
Constructor Detail
-
UdfFunctionArgumentConfigBuilder
public UdfFunctionArgumentConfigBuilder()
Constructs an empty UdfFunctionArgumentConfigBuilder
-
UdfFunctionArgumentConfigBuilder
public UdfFunctionArgumentConfigBuilder(java.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object> values)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given map- Parameters:
values
- a map containing configuration values
-
UdfFunctionArgumentConfigBuilder
public UdfFunctionArgumentConfigBuilder(UdfFunctionArgumentConfig config)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given config- Parameters:
config
- the configuration to take the values from
-
UdfFunctionArgumentConfigBuilder
public UdfFunctionArgumentConfigBuilder(UdfFunctionArgumentConfigBuilder builder)
Constructs a UdfFunctionArgumentConfigBuilder initialized with the values from the given builder- Parameters:
builder
- the builder to take the values from
-
-
Method Detail
-
buildUdfFunctionArgumentConfig
public static UdfFunctionArgumentConfig buildUdfFunctionArgumentConfig(java.util.function.Consumer<UdfFunctionArgumentConfigBuilder> builderSetup)
Builds aUdfFunctionArgumentConfig
in-place- Parameters:
builderSetup
- a consumer to setup a newly createdUdfFunctionArgumentConfig
-
putAll
public UdfFunctionArgumentConfigBuilder putAll(java.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.- Parameters:
values
- the values to put in the builder
-
putAll
public UdfFunctionArgumentConfigBuilder putAll(UdfFunctionArgumentConfig config)
Puts all values from the given config into this builder- Parameters:
config
- the config to take the values from
-
clear
public UdfFunctionArgumentConfigBuilder clear()
Clears all values from the builder
-
build
public UdfFunctionArgumentConfig build(java.lang.String parentPath)
Builds the UdfFunctionArgumentConfig.- Parameters:
parentPath
- if not null, resolves relative paths against this parentPath- Returns:
- an instance of UdfFunctionArgumentConfig
-
build
public UdfFunctionArgumentConfig build()
Builds the UdfFunctionArgumentConfig with aparentPath
ofnull
.- Returns:
- An instance of UdfFunctionArgumentConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStream
representing the config
-
getValues
public java.util.Map<UdfFunctionArgumentConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setName
public UdfFunctionArgumentConfigBuilder setName(java.lang.String name)
name of the argument
-
setType
public UdfFunctionArgumentConfigBuilder setType(PropertyType type)
type of the argument
-
-