public static final class SchedulesTypes.CreateSpec.Builder
extends java.lang.Object
SchedulesTypes.CreateSpec
.Constructor and Description |
---|
Builder(java.net.URI location)
Constructor with parameters for the required properties of
SchedulesTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
SchedulesTypes.CreateSpec |
build() |
SchedulesTypes.CreateSpec.Builder |
setBackupPassword(char[] backupPassword)
Password for a backup piece.
|
SchedulesTypes.CreateSpec.Builder |
setEnable(java.lang.Boolean enable)
Enable or disable a schedule.
|
SchedulesTypes.CreateSpec.Builder |
setLocationPassword(char[] locationPassword)
Password for the given location.
|
SchedulesTypes.CreateSpec.Builder |
setLocationUser(java.lang.String locationUser)
Username for the given location.
|
SchedulesTypes.CreateSpec.Builder |
setParts(java.util.List<java.lang.String> parts)
List of optional parts to be backed up.
|
SchedulesTypes.CreateSpec.Builder |
setRecurrenceInfo(SchedulesTypes.RecurrenceInfo recurrenceInfo)
Recurrence information for the schedule.
|
SchedulesTypes.CreateSpec.Builder |
setRetentionInfo(SchedulesTypes.RetentionInfo retentionInfo)
Retention information for the schedule.
|
public Builder(java.net.URI location)
SchedulesTypes.CreateSpec
.public SchedulesTypes.CreateSpec.Builder setParts(java.util.List<java.lang.String> parts)
Parts.list()
method to get information about
the supported parts. This property was added in vSphere API 6.7.
If null
all the optional parts will not be backed up.parts
- New value for the property.public SchedulesTypes.CreateSpec.Builder setBackupPassword(char[] backupPassword)
null
the backup piece will not be encrypted.backupPassword
- New value for the property.public SchedulesTypes.CreateSpec.Builder setLocationUser(java.lang.String locationUser)
null
authentication will not be used for the specified location.locationUser
- New value for the property.public SchedulesTypes.CreateSpec.Builder setLocationPassword(char[] locationPassword)
null
authentication will not be used for the specified location.locationPassword
- New value for the property.public SchedulesTypes.CreateSpec.Builder setEnable(java.lang.Boolean enable)
null
the schedule will be enabled.enable
- New value for the property.public SchedulesTypes.CreateSpec.Builder setRecurrenceInfo(SchedulesTypes.RecurrenceInfo recurrenceInfo)
null
backup job will not be scheduled. See SchedulesTypes.RecurrenceInfo
recurrenceInfo
- New value for the property.public SchedulesTypes.CreateSpec.Builder setRetentionInfo(SchedulesTypes.RetentionInfo retentionInfo)
null
all the completed backup jobs will be retained forever. See
SchedulesTypes.RetentionInfo
retentionInfo
- New value for the property.public SchedulesTypes.CreateSpec build()