Class JobSaveRequest
- java.lang.Object
-
- com.carfey.ops.api.bean.job.AbstractJobCreationRequest<JobSaveRequest>
-
- com.carfey.ops.api.bean.system.restore.JobSaveRequest
-
public class JobSaveRequest extends AbstractJobCreationRequest<JobSaveRequest>
Used to create or update a job on aSystemRestoreConfigurationviaSystemRestoreManager.- Since:
- 3.0
- See Also:
JobCreationRequest
-
-
Field Summary
-
Fields inherited from class com.carfey.ops.api.bean.job.AbstractJobCreationRequest
autoInterrupt, autoRetryCount, autoRetryInterval, autoRetryIntervalExponent, chainAll, effectiveDate, endDate, folder, hostPreference, hosts, jobClass, maxExecutionDuration, minExecutionDuration, nickname, parameters, pickupBufferMinutes, recoveryType, schedule, startupShutdownMode, state
-
-
Constructor Summary
Constructors Constructor Description JobSaveRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCustomCalendarName()java.util.List<ScheduleSaveRequest>getJobSchedules()booleanisUpdateAttributes()This determines whether to update the job's attributes.booleanisUpdateSchedule()This determines whether to create the defined schedule and whether to create the additional schedules.voidsetCustomCalendarName(java.lang.String customCalendarName)voidsetJobSchedules(java.util.List<ScheduleSaveRequest> jobSchedules)voidsetUpdateAttributes(boolean updateAttributes)voidsetUpdateSchedule(boolean updateSchedule)java.lang.StringtoString()JobSaveRequestwithCustomCalendarName(java.lang.String customCalendarName)JobSaveRequestwithJobSchedules(java.util.List<ScheduleSaveRequest> jobSchedules)JobSaveRequestwithUpdateAttributes(boolean updateAttributes)JobSaveRequestwithUpdateSchedule(boolean updateSchedule)-
Methods inherited from class com.carfey.ops.api.bean.job.AbstractJobCreationRequest
getAutoRetryCount, getAutoRetryInterval, getAutoRetryIntervalExponent, getEffectiveDate, getEndDate, getFolder, getHosts, getJobClass, getMaxExecutionDuration, getMinExecutionDuration, getNickname, getParameters, getPickupBufferMinutes, getRecoveryType, getSchedule, getStartupShutdownMode, getState, isAutoInterrupt, isChainAll, isHostPreference, setAutoInterrupt, setAutoRetryCount, setAutoRetryInterval, setAutoRetryIntervalExponent, setChainAll, setEffectiveDate, setEndDate, setFolder, setHostPreference, setHosts, setJobClass, setMaxExecutionDuration, setMinExecutionDuration, setNickname, setParameters, setPickupBufferMinutes, setRecoveryType, setSchedule, setStartupShutdownMode, setState, withAutoInterrupt, withAutoRetryCount, withAutoRetryInterval, withAutoRetryIntervalExponent, withChainAll, withEffectiveDate, withEndDate, withFolder, withHostPreference, withHosts, withJobClass, withMaxExecutionDuration, withMinExecutionDuration, withNickname, withParameters, withPickupBufferMinutes, withRecoveryType, withSchedule, withStartupShutdownMode, withState
-
-
-
-
Method Detail
-
isUpdateSchedule
public boolean isUpdateSchedule()
This determines whether to create the defined schedule and whether to create the additional schedules. If the job doesn't exist, this flag is ignored and all schedules are created. If the job exists and this flag is false, the schedule's are not created.- Returns:
- whether to update schedule
-
setUpdateSchedule
public void setUpdateSchedule(boolean updateSchedule)
-
withUpdateSchedule
public JobSaveRequest withUpdateSchedule(boolean updateSchedule)
-
isUpdateAttributes
public boolean isUpdateAttributes()
This determines whether to update the job's attributes. If the job doesn't exist, this flag is ignored and the job is created with the attributes specified. If the job exists and this flag is false, the attributes are not updated.- Returns:
- whether to update attributes
-
setUpdateAttributes
public void setUpdateAttributes(boolean updateAttributes)
-
withUpdateAttributes
public JobSaveRequest withUpdateAttributes(boolean updateAttributes)
-
getCustomCalendarName
public java.lang.String getCustomCalendarName()
-
setCustomCalendarName
public void setCustomCalendarName(java.lang.String customCalendarName)
-
withCustomCalendarName
public JobSaveRequest withCustomCalendarName(java.lang.String customCalendarName)
-
getJobSchedules
public java.util.List<ScheduleSaveRequest> getJobSchedules()
-
setJobSchedules
public void setJobSchedules(java.util.List<ScheduleSaveRequest> jobSchedules)
-
withJobSchedules
public JobSaveRequest withJobSchedules(java.util.List<ScheduleSaveRequest> jobSchedules)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractJobCreationRequest<JobSaveRequest>
-
-