Package org.gitlab4j.api.models
Class Variable
- java.lang.Object
-
- org.gitlab4j.api.models.Variable
-
- All Implemented Interfaces:
java.io.Serializable
public class Variable extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Variable.Type
Enum 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.String
getEnvironmentScope()
java.lang.String
getKey()
java.lang.Boolean
getMasked()
java.lang.Boolean
getProtected()
java.lang.String
getValue()
Variable.Type
getVariableType()
void
setEnvironmentScope(java.lang.String environmentScope)
void
setKey(java.lang.String key)
void
setMasked(java.lang.Boolean masked)
void
setProtected(java.lang.Boolean isProtected)
void
setValue(java.lang.String value)
void
setVariableType(Variable.Type variableType)
java.lang.String
toString()
-
-
-
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:
toString
in 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
-
-