/** * 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; /** * Parameters for a CloudJobScheduleOperations.Patch request. */ public class JobSchedulePatchParameter { /** * The schedule according to which jobs will be created. */ private Schedule schedule; /** * The details of the jobs to be created on this schedule. */ private JobSpecification jobSpecification; /** * A list of name-value pairs associated with the job schedule as metadata. */ 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 JobSchedulePatchParameter object itself. */ public JobSchedulePatchParameter 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 JobSchedulePatchParameter object itself. */ public JobSchedulePatchParameter 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 JobSchedulePatchParameter object itself. */ public JobSchedulePatchParameter withMetadata(List<MetadataItem> metadata) { this.metadata = metadata; return this; } }