/** * 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.management.compute; import com.fasterxml.jackson.annotation.JsonProperty; /** * Describes an upgrade policy - automatic or manual. */ public class UpgradePolicy { /** * The upgrade mode. Possible values include: 'Automatic', 'Manual'. */ @JsonProperty(value = "mode") private UpgradeMode mode; /** * Get the mode value. * * @return the mode value */ public UpgradeMode mode() { return this.mode; } /** * Set the mode value. * * @param mode the mode value to set * @return the UpgradePolicy object itself. */ public UpgradePolicy withMode(UpgradeMode mode) { this.mode = mode; return this; } }