Package org.syncany.operations.update
Class UpdateOperationOptions
- java.lang.Object
-
- org.syncany.operations.update.UpdateOperationOptions
-
- All Implemented Interfaces:
OperationOptions
public class UpdateOperationOptions extends java.lang.Object implements OperationOptions
Options class to configure theUpdateOperation. The options alter/influence the behavior of the operation.- See Also:
- Syncany Website/API
-
-
Constructor Summary
Constructors Constructor Description UpdateOperationOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateOperationActiongetAction()Get the update actionjava.lang.StringgetApiEndpoint()Return the API endpoint (if changed), or null otherwise.booleanisSnapshots()Get whether or not snapshots are included when the Syncany API is queried.voidsetAction(UpdateOperationAction action)Set the action to execute when theUpdateOperationis run.voidsetApiEndpoint(java.lang.String apiEndpoint)Set an alternative API endpoint.voidsetSnapshots(boolean snapshots)Set whether or not snapshots are included when the Syncany API is queried for updates.
-
-
-
Constructor Detail
-
UpdateOperationOptions
public UpdateOperationOptions()
-
-
Method Detail
-
setAction
public void setAction(UpdateOperationAction action)
Set the action to execute when theUpdateOperationis run. Depending on the action, the bavior of the operation is changed/altered.
-
setSnapshots
public void setSnapshots(boolean snapshots)
Set whether or not snapshots are included when the Syncany API is queried for updates.
-
setApiEndpoint
public void setApiEndpoint(java.lang.String apiEndpoint)
Set an alternative API endpoint. If left as set by default, the default API endpoint will be used.
-
getAction
public UpdateOperationAction getAction()
Get the update action
-
isSnapshots
public boolean isSnapshots()
Get whether or not snapshots are included when the Syncany API is queried.
-
getApiEndpoint
public java.lang.String getApiEndpoint()
Return the API endpoint (if changed), or null otherwise.
-
-