Package io.lakefs.clients.sdk.model
Class Merge
- java.lang.Object
-
- io.lakefs.clients.sdk.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 stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetMessage()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)MergeputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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)
-
putAdditionalProperty
public Merge putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Merge instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-
-