public void createJobSchedule(JobScheduleAddParameter jobSchedule, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
        JobScheduleAddOptions options = new JobScheduleAddOptions();
        BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
        bhMgr.applyRequestBehaviors(options);

        this.parentBatchClient.protocolLayer().jobSchedules().add(jobSchedule, options);
    }
public void createJobSchedule ( JobScheduleAddParameter jobSchedule , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobScheduleAddOptions options = new JobScheduleAddOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; this . parentBatchClient . protocolLayer ( ) . jobSchedules ( ) . add ( jobSchedule , options ) ; }
Adds a job schedule to the Batch account.

@param jobSchedule The job schedule to be added.
@param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
@throws BatchErrorException Exception thrown when an error response is received from the Batch service.
@throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.