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 UpdateOperationAction
getAction()
Get the update actionjava.lang.String
getApiEndpoint()
Return the API endpoint (if changed), or null otherwise.boolean
isSnapshots()
Get whether or not snapshots are included when the Syncany API is queried.void
setAction(UpdateOperationAction action)
Set the action to execute when theUpdateOperation
is run.void
setApiEndpoint(java.lang.String apiEndpoint)
Set an alternative API endpoint.void
setSnapshots(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 theUpdateOperation
is 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.
-
-