Package io.lakefs.clients.api.model
Class Merge
- java.lang.Object
-
- io.lakefs.clients.api.model.Merge
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Merge extends Object
Merge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerge.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_STRATEGY
-
Constructor Summary
Constructors Constructor Description Merge()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static MergefromJson(String jsonString)Create an instance of Merge given an JSON stringStringgetMessage()Get messageMap<String,String>getMetadata()Get metadataStringgetStrategy()In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ('dest-wins') or from the source branch('source-wins').inthashCode()Mergemessage(String message)Mergemetadata(Map<String,String> metadata)MergeputMetadataItem(String key, String metadataItem)voidsetMessage(String message)voidsetMetadata(Map<String,String> metadata)voidsetStrategy(String strategy)Mergestrategy(String strategy)StringtoJson()Convert an instance of Merge 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_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STRATEGY
public static final String SERIALIZED_NAME_STRATEGY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMessage
public void setMessage(String message)
-
getStrategy
@Nullable public String getStrategy()
In case of a merge conflict, this option will force the merge process to automatically favor changes from the dest branch ('dest-wins') or from the source branch('source-wins'). In case no selection is made, the merge process will fail in case of a conflict- Returns:
- strategy
-
setStrategy
public void setStrategy(String strategy)
-
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 Merge
-
fromJson
public static Merge fromJson(String jsonString) throws IOException
Create an instance of Merge given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Merge
- Throws:
IOException- if the JSON string is invalid with respect to Merge
-
toJson
public String toJson()
Convert an instance of Merge to an JSON string- Returns:
- JSON string
-
-