Class Variable

java.lang.Object
org.gitlab4j.api.models.Variable

public class Variable extends Object
  • Constructor Details

    • Variable

      public Variable()
    • Variable

      public Variable(String key, String value)
  • Method Details

    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • getVariableType

      public Variable.Type getVariableType()
    • setVariableType

      public void setVariableType(Variable.Type variableType)
    • getProtected

      public Boolean getProtected()
    • setProtected

      public void setProtected(Boolean isProtected)
    • getMasked

      public Boolean getMasked()
    • setMasked

      public void setMasked(Boolean masked)
    • getEnvironmentScope

      public String getEnvironmentScope()
    • setEnvironmentScope

      public void setEnvironmentScope(String environmentScope)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • convertMapToList

      public static final List<Variable> convertMapToList(Map<String,String> variables)
      Create a List of Variable from the provided Map.
      Parameters:
      variables - the Map to convert to a List of Variable
      Returns:
      the List of Variable containing the keys and values from the Map, or null if the Map is null