Class Variable

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<VariableBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class Variable
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<VariableBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    Variable is the definition of a variable that is used for composition.
    See Also:
    Serialized Form
    • Constructor Detail

      • Variable

        public Variable()
        No args constructor for use in serialization
      • Variable

        public Variable​(String expression,
                        String name)
    • Method Detail

      • getExpression

        public String getExpression()
        Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      • setExpression

        public void setExpression​(String expression)
        Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      • getName

        public String getName()
        Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
      • setName

        public void setName​(String name)
        Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)