Package io.lakefs.clients.api.model
Class CherryPickCreation
- java.lang.Object
-
- io.lakefs.clients.api.model.CherryPickCreation
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CherryPickCreation extends Object
CherryPickCreation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCherryPickCreation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PARENT_NUMBERstatic StringSERIALIZED_NAME_REF
-
Constructor Summary
Constructors Constructor Description CherryPickCreation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CherryPickCreationfromJson(String jsonString)Create an instance of CherryPickCreation given an JSON stringIntegergetParentNumber()when cherry-picking a merge commit, the parent number (starting from 1) relative to which to perform the diff.StringgetRef()the commit to cherry-pick, given by a refinthashCode()CherryPickCreationparentNumber(Integer parentNumber)CherryPickCreationref(String ref)voidsetParentNumber(Integer parentNumber)voidsetRef(String ref)StringtoJson()Convert an instance of CherryPickCreation to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_REF
public static final String SERIALIZED_NAME_REF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARENT_NUMBER
public static final String SERIALIZED_NAME_PARENT_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
ref
public CherryPickCreation ref(String ref)
-
setRef
public void setRef(String ref)
-
parentNumber
public CherryPickCreation parentNumber(Integer parentNumber)
-
getParentNumber
@Nullable public Integer getParentNumber()
when cherry-picking a merge commit, the parent number (starting from 1) relative to which to perform the diff. The destination branch is parent 1, which is the default behaviour.- Returns:
- parentNumber
-
setParentNumber
public void setParentNumber(Integer parentNumber)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CherryPickCreation
-
fromJson
public static CherryPickCreation fromJson(String jsonString) throws IOException
Create an instance of CherryPickCreation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CherryPickCreation
- Throws:
IOException- if the JSON string is invalid with respect to CherryPickCreation
-
toJson
public String toJson()
Convert an instance of CherryPickCreation to an JSON string- Returns:
- JSON string
-
-