public final class BackupSchedule
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
BackupSchedule class contains fields to be specified for creating a
new schedule. The structure includes parts, location information, encryption
password and enable flag.| Modifier and Type | Class and Description |
|---|---|
static class |
BackupSchedule.Builder
Builder class for
BackupSchedule. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
BackupSchedule()
Default constructor.
|
protected |
BackupSchedule(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static BackupSchedule |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static BackupSchedule |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
char[] |
getBackupPassword()
Password for a backup piece.
|
java.lang.Boolean |
getEnable()
Enable or disable a schedule.
|
java.net.URI |
getLocation()
URL of the backup location.
|
char[] |
getLocationPassword()
Password for the given location.
|
java.lang.String |
getLocationUser()
Username for the given location.
|
java.util.List<java.lang.String> |
getParts()
List of optional parts to be backed up.
|
RecurrenceInfo |
getRecurrenceInfo()
Recurrence information for the schedule.
|
RetentionInfo |
getRetentionInfo()
Retention information for the schedule.
|
java.lang.String |
getScheduleId()
Identifier of the schedule.
|
int |
hashCode() |
void |
setBackupPassword(char[] backupPassword)
Password for a backup piece.
|
void |
setEnable(java.lang.Boolean enable)
Enable or disable a schedule.
|
void |
setLocation(java.net.URI location)
URL of the backup location.
|
void |
setLocationPassword(char[] locationPassword)
Password for the given location.
|
void |
setLocationUser(java.lang.String locationUser)
Username for the given location.
|
void |
setParts(java.util.List<java.lang.String> parts)
List of optional parts to be backed up.
|
void |
setRecurrenceInfo(RecurrenceInfo recurrenceInfo)
Recurrence information for the schedule.
|
void |
setRetentionInfo(RetentionInfo retentionInfo)
Retention information for the schedule.
|
void |
setScheduleId(java.lang.String scheduleId)
Identifier of the schedule.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public BackupSchedule()
protected BackupSchedule(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<java.lang.String> getParts()
Parts.list() method to get information about
the supported parts.
If null all the optional parts will not be backed up.public void setParts(java.util.List<java.lang.String> parts)
Parts.list() method to get information about
the supported parts.
If null all the optional parts will not be backed up.parts - New value for the property.public char[] getBackupPassword()
null the backup piece will not be encrypted.public void setBackupPassword(char[] backupPassword)
null the backup piece will not be encrypted.backupPassword - New value for the property.public java.net.URI getLocation()
Set if URL is set in BackupSchedulepublic void setLocation(java.net.URI location)
Set if URL is set in BackupSchedulelocation - New value for the property.public java.lang.String getLocationUser()
null authentication will not be used for the specified location.public void setLocationUser(java.lang.String locationUser)
null authentication will not be used for the specified location.locationUser - New value for the property.public char[] getLocationPassword()
null authentication will not be used for the specified location.public void setLocationPassword(char[] locationPassword)
null authentication will not be used for the specified location.locationPassword - New value for the property.public java.lang.Boolean getEnable()
null the schedule will be enabled.public void setEnable(java.lang.Boolean enable)
null the schedule will be enabled.enable - New value for the property.public RecurrenceInfo getRecurrenceInfo()
null backup job will not be scheduled. See RecurrenceInfopublic void setRecurrenceInfo(RecurrenceInfo recurrenceInfo)
null backup job will not be scheduled. See RecurrenceInforecurrenceInfo - New value for the property.public RetentionInfo getRetentionInfo()
null all the completed backup jobs will be retained forever. See
RetentionInfopublic void setRetentionInfo(RetentionInfo retentionInfo)
null all the completed backup jobs will be retained forever. See
RetentionInforetentionInfo - New value for the property.public java.lang.String getScheduleId()
public void setScheduleId(java.lang.String scheduleId)
scheduleId - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType instance representing the static bindings
type for this Structure.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static BackupSchedule _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static BackupSchedule _newInstance2(com.vmware.vapi.data.StructValue structValue)