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.
/** * 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.appservice; import com.fasterxml.jackson.annotation.JsonProperty;
Deployment slot parameters.
/** * Deployment slot parameters. */
public class CsmSlotEntity {
Destination deployment slot during swap operation.
/** * Destination deployment slot during swap operation. */
@JsonProperty(value = "targetSlot", required = true) private String targetSlot;
<code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; to preserve Virtual Network to the slot * during swap; otherwise, &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "preserveVnet", required = true) private boolean preserveVnet;
Get destination deployment slot during swap operation.
Returns:the targetSlot value
/** * Get destination deployment slot during swap operation. * * @return the targetSlot value */
public String targetSlot() { return this.targetSlot; }
Set destination deployment slot during swap operation.
Params:
  • targetSlot – the targetSlot value to set
Returns:the CsmSlotEntity object itself.
/** * Set destination deployment slot during swap operation. * * @param targetSlot the targetSlot value to set * @return the CsmSlotEntity object itself. */
public CsmSlotEntity withTargetSlot(String targetSlot) { this.targetSlot = targetSlot; return this; }
Get <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.
Returns:the preserveVnet value
/** * Get &lt;code&gt;true&lt;/code&gt; to preserve Virtual Network to the slot during swap; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the preserveVnet value */
public boolean preserveVnet() { return this.preserveVnet; }
Set <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.
Params:
  • preserveVnet – the preserveVnet value to set
Returns:the CsmSlotEntity object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; to preserve Virtual Network to the slot during swap; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @param preserveVnet the preserveVnet value to set * @return the CsmSlotEntity object itself. */
public CsmSlotEntity withPreserveVnet(boolean preserveVnet) { this.preserveVnet = preserveVnet; return this; } }