JobScheduleUpdateParameter Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.JobScheduleUpdateParameter

public class JobScheduleUpdateParameter

The set of changes to be made to a job schedule.

Method Summary

Modifier and Type Method and Description
JobSpecification jobSpecification()

Get updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.

List<MetadataItem> metadata()

Get if you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted.

Schedule schedule()

Get if you do not specify this element, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.

JobScheduleUpdateParameter withJobSpecification(JobSpecification jobSpecification)

Set updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.

JobScheduleUpdateParameter withMetadata(List<MetadataItem> metadata)

Set if you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted.

JobScheduleUpdateParameter withSchedule(Schedule schedule)

Set if you do not specify this element, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.

Method Details

jobSpecification

public JobSpecification jobSpecification()

Get updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.

Returns:

the jobSpecification value

metadata

public List metadata()

Get if you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted.

Returns:

the metadata value

schedule

public Schedule schedule()

Get if you do not specify this element, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.

Returns:

the schedule value

withJobSpecification

public JobScheduleUpdateParameter withJobSpecification(JobSpecification jobSpecification)

Set updates affect only jobs that are started after the update has taken place. Any currently active job continues with the older specification.

Parameters:

jobSpecification - the jobSpecification value to set

Returns:

the JobScheduleUpdateParameter object itself.

withMetadata

public JobScheduleUpdateParameter withMetadata(List metadata)

Set if you do not specify this element, it takes the default value of an empty list; in effect, any existing metadata is deleted.

Parameters:

metadata - the metadata value to set

Returns:

the JobScheduleUpdateParameter object itself.

withSchedule

public JobScheduleUpdateParameter withSchedule(Schedule schedule)

Set if you do not specify this element, it is equivalent to passing the default schedule: that is, a single job scheduled to run immediately.

Parameters:

schedule - the schedule value to set

Returns:

the JobScheduleUpdateParameter object itself.

Applies to