/** * 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 com.fasterxml.jackson.annotation.JsonProperty; /** * A range of exit codes and how the Batch service should respond to exit * codes within that range. */ public class ExitCodeRangeMapping { /** * The first exit code in the range. */ @JsonProperty(required = true) private int start; /** * The last exit code in the range. */ @JsonProperty(required = true) private int end; /** * An exitOptions specifying how the Batch service should respond if the * task exits with an exit code in the range start to end. */ @JsonProperty(required = true) private ExitOptions exitOptions; /** * Get the start value. * * @return the start value */ public int start() { return this.start; } /** * Set the start value. * * @param start the start value to set * @return the ExitCodeRangeMapping object itself. */ public ExitCodeRangeMapping withStart(int start) { this.start = start; return this; } /** * Get the end value. * * @return the end value */ public int end() { return this.end; } /** * Set the end value. * * @param end the end value to set * @return the ExitCodeRangeMapping object itself. */ public ExitCodeRangeMapping withEnd(int end) { this.end = end; return this; } /** * Get the exitOptions value. * * @return the exitOptions value */ public ExitOptions exitOptions() { return this.exitOptions; } /** * Set the exitOptions value. * * @param exitOptions the exitOptions value to set * @return the ExitCodeRangeMapping object itself. */ public ExitCodeRangeMapping withExitOptions(ExitOptions exitOptions) { this.exitOptions = exitOptions; return this; } }