Class BackupOptions
- java.lang.Object
-
- org.openstack4j.model.compute.actions.BaseActionOptions
-
- org.openstack4j.model.compute.actions.BackupOptions
-
public final class BackupOptions extends BaseActionOptions
Options for Creating a Backup schedule- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.model.compute.actions.BaseActionOptions
BaseActionOptions.OptionEnum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackupOptionscreate(String backupName)Create a new Backup schedule with the givenbackupNameBackupOptionsdaily(int rotation)Indicates the backup will run daily keepingrotationcopiesStringgetBackupType()StringgetName()IntegergetRotation()BackupOptionsweekly(int rotation)Indicates the backup will run weekly keepingrotationcopies-
Methods inherited from class org.openstack4j.model.compute.actions.BaseActionOptions
add, get, toJsonString
-
-
-
-
Method Detail
-
create
public static BackupOptions create(String backupName)
Create a new Backup schedule with the givenbackupName- Parameters:
backupName- the name of the backup- Returns:
- BackupOptions
-
daily
public BackupOptions daily(int rotation)
Indicates the backup will run daily keepingrotationcopies- Parameters:
rotation- the number of backups to maintain- Returns:
- BackupOptions
-
weekly
public BackupOptions weekly(int rotation)
Indicates the backup will run weekly keepingrotationcopies- Parameters:
rotation- the number of backups to maintain- Returns:
- BackupOptions
-
getName
public String getName()
-
getBackupType
public String getBackupType()
-
getRotation
public Integer getRotation()
-
-