Package org.gitlab4j.api.models
Class Variable
- java.lang.Object
-
- org.gitlab4j.api.models.Variable
-
public class Variable extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariable.TypeEnum for the various Commit build status values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<Variable>convertMapToList(java.util.Map<java.lang.String,java.lang.String> variables)Create a List of Variable from the provided Map.java.lang.StringgetEnvironmentScope()java.lang.StringgetKey()java.lang.BooleangetMasked()java.lang.BooleangetProtected()java.lang.StringgetValue()Variable.TypegetVariableType()voidsetEnvironmentScope(java.lang.String environmentScope)voidsetKey(java.lang.String key)voidsetMasked(java.lang.Boolean masked)voidsetProtected(java.lang.Boolean isProtected)voidsetValue(java.lang.String value)voidsetVariableType(Variable.Type variableType)java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
-
setKey
public void setKey(java.lang.String key)
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String value)
-
getVariableType
public Variable.Type getVariableType()
-
setVariableType
public void setVariableType(Variable.Type variableType)
-
getProtected
public java.lang.Boolean getProtected()
-
setProtected
public void setProtected(java.lang.Boolean isProtected)
-
getMasked
public java.lang.Boolean getMasked()
-
setMasked
public void setMasked(java.lang.Boolean masked)
-
getEnvironmentScope
public java.lang.String getEnvironmentScope()
-
setEnvironmentScope
public void setEnvironmentScope(java.lang.String environmentScope)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
convertMapToList
public static final java.util.List<Variable> convertMapToList(java.util.Map<java.lang.String,java.lang.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
-
-