Class CsmSlotEntity
java.lang.Object
com.azure.resourcemanager.appservice.models.CsmSlotEntity
Deployment slot parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the preserveVnet property: <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.Get the targetSlot property: Destination deployment slot during swap operation.void
validate()
Validates the instance.withPreserveVnet
(boolean preserveVnet) Set the preserveVnet property: <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.withTargetSlot
(String targetSlot) Set the targetSlot property: Destination deployment slot during swap operation.
-
Constructor Details
-
CsmSlotEntity
public CsmSlotEntity()
-
-
Method Details
-
targetSlot
Get the targetSlot property: Destination deployment slot during swap operation.- Returns:
- the targetSlot value.
-
withTargetSlot
Set the targetSlot property: Destination deployment slot during swap operation.- Parameters:
targetSlot
- the targetSlot value to set.- Returns:
- the CsmSlotEntity object itself.
-
preserveVnet
public boolean preserveVnet()Get the preserveVnet property: <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.- Returns:
- the preserveVnet value.
-
withPreserveVnet
Set the preserveVnet property: <code>true</code> to preserve Virtual Network to the slot during swap; otherwise, <code>false</code>.- Parameters:
preserveVnet
- the preserveVnet value to set.- Returns:
- the CsmSlotEntity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-