Package com.oracle.bmc.datascience.model
Class ConfigurationPropertySchema.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ConfigurationPropertySchema.Builder
-
- Enclosing class:
- ConfigurationPropertySchema
public static class ConfigurationPropertySchema.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationPropertySchema
build()
ConfigurationPropertySchema.Builder
copy(ConfigurationPropertySchema model)
ConfigurationPropertySchema.Builder
defaultValue(String defaultValue)
The default value for the optional configuration property (it must not be specified for mandatory configuration properties)ConfigurationPropertySchema.Builder
description(String description)
Description of this configuration propertyConfigurationPropertySchema.Builder
isMandatory(Boolean isMandatory)
If the value is true this configuration property is mandatory and visa versa.ConfigurationPropertySchema.Builder
keyName(String keyName)
Name of key (parameter name)ConfigurationPropertySchema.Builder
sampleValue(String sampleValue)
Sample property value (it must match validationRegexp if it is specified)ConfigurationPropertySchema.Builder
validationRegexp(String validationRegexp)
A regular expression will be used for the validation of property value.ConfigurationPropertySchema.Builder
valueType(ConfigurationPropertySchema.ValueType valueType)
Type of value
-
-
-
Method Detail
-
keyName
public ConfigurationPropertySchema.Builder keyName(String keyName)
Name of key (parameter name)- Parameters:
keyName
- the value to set- Returns:
- this builder
-
valueType
public ConfigurationPropertySchema.Builder valueType(ConfigurationPropertySchema.ValueType valueType)
Type of value- Parameters:
valueType
- the value to set- Returns:
- this builder
-
description
public ConfigurationPropertySchema.Builder description(String description)
Description of this configuration property- Parameters:
description
- the value to set- Returns:
- this builder
-
isMandatory
public ConfigurationPropertySchema.Builder isMandatory(Boolean isMandatory)
If the value is true this configuration property is mandatory and visa versa.If not specified configuration property is optional.
- Parameters:
isMandatory
- the value to set- Returns:
- this builder
-
defaultValue
public ConfigurationPropertySchema.Builder defaultValue(String defaultValue)
The default value for the optional configuration property (it must not be specified for mandatory configuration properties)- Parameters:
defaultValue
- the value to set- Returns:
- this builder
-
validationRegexp
public ConfigurationPropertySchema.Builder validationRegexp(String validationRegexp)
A regular expression will be used for the validation of property value.- Parameters:
validationRegexp
- the value to set- Returns:
- this builder
-
sampleValue
public ConfigurationPropertySchema.Builder sampleValue(String sampleValue)
Sample property value (it must match validationRegexp if it is specified)- Parameters:
sampleValue
- the value to set- Returns:
- this builder
-
build
public ConfigurationPropertySchema build()
-
copy
public ConfigurationPropertySchema.Builder copy(ConfigurationPropertySchema model)
-
-