CloudJobSchedule Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. CloudJobSchedule
- com.
public class CloudJobSchedule
A job schedule that allows recurring jobs by specifying when to run jobs and a specification used to create each job.
Method Summary
Modifier and Type | Method and Description |
---|---|
DateTime |
creationTime()
Get the creationTime value. |
String |
displayName()
Get the displayName value. |
String |
eTag()
Get this is an opaque string. You can use it to detect whether the job schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime. |
Job |
executionInfo()
Get the executionInfo value. |
String |
id()
Get the id value. |
Job |
jobSpecification()
Get the jobSpecification value. |
DateTime |
lastModified()
Get this is the last time at which the schedule level data, such as the job specification or recurrence information, changed. It does not factor in job-level changes such as new jobs being created or jobs changing state. |
List<Metadata |
metadata()
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Job |
previousState()
Get this property is not present if the job schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
DateTime |
previousStateTransitionTime()
Get this property is not present if the job schedule is in its initial active state. |
Schedule |
schedule()
Get the schedule value. |
Job |
state()
Get possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
DateTime |
stateTransitionTime()
Get the stateTransitionTime value. |
Job |
stats()
Get the stats value. |
String |
url()
Get the url value. |
Cloud |
withCreationTime(DateTime creationTime)
Set the creationTime value. |
Cloud |
withDisplayName(String displayName)
Set the displayName value. |
Cloud |
withETag(String eTag)
Set this is an opaque string. You can use it to detect whether the job schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime. |
Cloud |
withExecutionInfo(JobScheduleExecutionInformation executionInfo)
Set the executionInfo value. |
Cloud |
withId(String id)
Set the id value. |
Cloud |
withJobSpecification(JobSpecification jobSpecification)
Set the jobSpecification value. |
Cloud |
withLastModified(DateTime lastModified)
Set this is the last time at which the schedule level data, such as the job specification or recurrence information, changed. It does not factor in job-level changes such as new jobs being created or jobs changing state. |
Cloud |
withMetadata(List<MetadataItem> metadata)
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Cloud |
withPreviousState(JobScheduleState previousState)
Set this property is not present if the job schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
Cloud |
withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not present if the job schedule is in its initial active state. |
Cloud |
withSchedule(Schedule schedule)
Set the schedule value. |
Cloud |
withState(JobScheduleState state)
Set possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'. |
Cloud |
withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value. |
Cloud |
withStats(JobScheduleStatistics stats)
Set the stats value. |
Cloud |
withUrl(String url)
Set the url value. |
Method Details
creationTime
public DateTime creationTime()
Get the creationTime value.
Returns:
displayName
public String displayName()
Get the displayName value.
Returns:
eTag
public String eTag()
Get this is an opaque string. You can use it to detect whether the job schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.
Returns:
executionInfo
public JobScheduleExecutionInformation executionInfo()
Get the executionInfo value.
Returns:
id
public String id()
Get the id value.
Returns:
jobSpecification
public JobSpecification jobSpecification()
Get the jobSpecification value.
Returns:
lastModified
public DateTime lastModified()
Get this is the last time at which the schedule level data, such as the job specification or recurrence information, changed. It does not factor in job-level changes such as new jobs being created or jobs changing state.
Returns:
metadata
public List
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Returns:
previousState
public JobScheduleState previousState()
Get this property is not present if the job schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Returns:
previousStateTransitionTime
public DateTime previousStateTransitionTime()
Get this property is not present if the job schedule is in its initial active state.
Returns:
schedule
public Schedule schedule()
Get the schedule value.
Returns:
state
public JobScheduleState state()
Get possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Returns:
stateTransitionTime
public DateTime stateTransitionTime()
Get the stateTransitionTime value.
Returns:
stats
public JobScheduleStatistics stats()
Get the stats value.
Returns:
url
public String url()
Get the url value.
Returns:
withCreationTime
public CloudJobSchedule withCreationTime(DateTime creationTime)
Set the creationTime value.
Parameters:
Returns:
withDisplayName
public CloudJobSchedule withDisplayName(String displayName)
Set the displayName value.
Parameters:
Returns:
withETag
public CloudJobSchedule withETag(String eTag)
Set this is an opaque string. You can use it to detect whether the job schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.
Parameters:
Returns:
withExecutionInfo
public CloudJobSchedule withExecutionInfo(JobScheduleExecutionInformation executionInfo)
Set the executionInfo value.
Parameters:
Returns:
withId
public CloudJobSchedule withId(String id)
Set the id value.
Parameters:
Returns:
withJobSpecification
public CloudJobSchedule withJobSpecification(JobSpecification jobSpecification)
Set the jobSpecification value.
Parameters:
Returns:
withLastModified
public CloudJobSchedule withLastModified(DateTime lastModified)
Set this is the last time at which the schedule level data, such as the job specification or recurrence information, changed. It does not factor in job-level changes such as new jobs being created or jobs changing state.
Parameters:
Returns:
withMetadata
public CloudJobSchedule withMetadata(List
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Parameters:
Returns:
withPreviousState
public CloudJobSchedule withPreviousState(JobScheduleState previousState)
Set this property is not present if the job schedule is in its initial active state. Possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Parameters:
Returns:
withPreviousStateTransitionTime
public CloudJobSchedule withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not present if the job schedule is in its initial active state.
Parameters:
Returns:
withSchedule
public CloudJobSchedule withSchedule(Schedule schedule)
Set the schedule value.
Parameters:
Returns:
withState
public CloudJobSchedule withState(JobScheduleState state)
Set possible values include: 'active', 'completed', 'disabled', 'terminating', 'deleting'.
Parameters:
Returns:
withStateTransitionTime
public CloudJobSchedule withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value.
Parameters:
Returns:
withStats
public CloudJobSchedule withStats(JobScheduleStatistics stats)
Set the stats value.
Parameters:
Returns:
withUrl
public CloudJobSchedule withUrl(String url)
Set the url value.
Parameters:
Returns:
Applies to
Azure SDK for Java