Class Parameter
- java.lang.Object
-
- io.fabric8.openshift.api.model.Parameter
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ParameterBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Parameter extends Object implements io.fabric8.kubernetes.api.builder.Editable<ParameterBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Parameter defines a name/value variable that is to be processed during the Template to Config transformation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDescription()description of a parameter.StringgetDisplayName()Optional: The name that will show in UI instead of parameter 'Name'StringgetFrom()from is an input value for the generator.StringgetGenerate()generate specifies the generator to be used to generate random string from an input value specified by From field.StringgetName()name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}.BooleangetRequired()Optional: Indicates the parameter must have a value.StringgetValue()value holds the Parameter data.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDescription(String description)description of a parameter.voidsetDisplayName(String displayName)Optional: The name that will show in UI instead of parameter 'Name'voidsetFrom(String from)from is an input value for the generator.voidsetGenerate(String generate)generate specifies the generator to be used to generate random string from an input value specified by From field.voidsetName(String name)name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}.voidsetRequired(Boolean required)Optional: Indicates the parameter must have a value.voidsetValue(String value)value holds the Parameter data.ParameterBuildertoBuilder()
-
-
-
Method Detail
-
getDescription
public String getDescription()
description of a parameter. Optional.
-
setDescription
public void setDescription(String description)
description of a parameter. Optional.
-
getDisplayName
public String getDisplayName()
Optional: The name that will show in UI instead of parameter 'Name'
-
setDisplayName
public void setDisplayName(String displayName)
Optional: The name that will show in UI instead of parameter 'Name'
-
getFrom
public String getFrom()
from is an input value for the generator. Optional.
-
setFrom
public void setFrom(String from)
from is an input value for the generator. Optional.
-
getGenerate
public String getGenerate()
generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional.The only supported generator is "expression", which accepts a "from" value in the form of a simple regular expression containing the range expression "[a-zA-Z0-9]", and the length expression "a{length}".
Examples:
from | value ----------------------------- "test[0-9]{1}x" | "test7x" "[0-1]{8}" | "01001100" "0x[A-F0-9]{4}" | "0xB3AF" "[a-zA-Z0-9]{8}" | "hW4yQU5i"
-
setGenerate
public void setGenerate(String generate)
generate specifies the generator to be used to generate random string from an input value specified by From field. The result string is stored into Value field. If empty, no generator is being used, leaving the result Value untouched. Optional.The only supported generator is "expression", which accepts a "from" value in the form of a simple regular expression containing the range expression "[a-zA-Z0-9]", and the length expression "a{length}".
Examples:
from | value ----------------------------- "test[0-9]{1}x" | "test7x" "[0-1]{8}" | "01001100" "0x[A-F0-9]{4}" | "0xB3AF" "[a-zA-Z0-9]{8}" | "hW4yQU5i"
-
getName
public String getName()
name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required.
-
setName
public void setName(String name)
name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required.
-
getRequired
public Boolean getRequired()
Optional: Indicates the parameter must have a value. Defaults to false.
-
setRequired
public void setRequired(Boolean required)
Optional: Indicates the parameter must have a value. Defaults to false.
-
getValue
public String getValue()
value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional.
-
setValue
public void setValue(String value)
value holds the Parameter data. If specified, the generator will be ignored. The value replaces all occurrences of the Parameter ${Name} expression during the Template to Config transformation. Optional.
-
edit
public ParameterBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ParameterBuilder>
-
toBuilder
public ParameterBuilder toBuilder()
-
-