/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.batch.protocol.models; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; /** * Parameters for a CloudJobScheduleOperations.Update request. */ public class JobScheduleUpdateParameter { /** * The schedule according to which jobs will be created. * If you do not specify this element, it is equivalent to passing the * default schedule: that is, a single job scheduled to run immediately. */ @JsonProperty(required = true) private Schedule schedule; /** * Details of the jobs to be created on this schedule. */ @JsonProperty(required = true) private JobSpecification jobSpecification; /** * A list of name-value pairs associated with the job schedule as metadata. * If you do not specify this element, it takes the default value of an * empty list; in effect, any existing metadata is deleted. */ private List<MetadataItem> metadata; /** * Get the schedule value. * * @return the schedule value */ public Schedule schedule() { return this.schedule; } /** * Set the schedule value. * * @param schedule the schedule value to set * @return the JobScheduleUpdateParameter object itself. */ public JobScheduleUpdateParameter withSchedule(Schedule schedule) { this.schedule = schedule; return this; } /** * Get the jobSpecification value. * * @return the jobSpecification value */ public JobSpecification jobSpecification() { return this.jobSpecification; } /** * Set the jobSpecification value. * * @param jobSpecification the jobSpecification value to set * @return the JobScheduleUpdateParameter object itself. */ public JobScheduleUpdateParameter withJobSpecification(JobSpecification jobSpecification) { this.jobSpecification = jobSpecification; return this; } /** * Get the metadata value. * * @return the metadata value */ public List<MetadataItem> metadata() { return this.metadata; } /** * Set the metadata value. * * @param metadata the metadata value to set * @return the JobScheduleUpdateParameter object itself. */ public JobScheduleUpdateParameter withMetadata(List<MetadataItem> metadata) { this.metadata = metadata; return this; } }