CsmSlotEntity Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. CsmSlotEntity
- com.
Implements
public final class CsmSlotEntity
implements JsonSerializable<CsmSlotEntity>
Deployment slot parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| CsmSlotEntity() |
Creates an instance of Csm |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Csm |
fromJson(JsonReader jsonReader)
Reads an instance of Csm |
| boolean |
preserveVnet()
Get the preserve |
| String |
targetSlot()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Csm |
withPreserveVnet(boolean preserveVnet)
Set the preserve |
|
Csm |
withTargetSlot(String targetSlot)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
CsmSlotEntity
public CsmSlotEntity()
Creates an instance of CsmSlotEntity class.
Method Details
fromJson
public static CsmSlotEntity fromJson(JsonReader jsonReader)
Reads an instance of CsmSlotEntity from the JsonReader.
Parameters:
Returns:
Throws:
preserveVnet
public boolean preserveVnet()
Get the preserveVnet property: true to preserve Virtual Network to the slot during swap; otherwise, false.
Returns:
targetSlot
public String targetSlot()
Get the targetSlot property: Destination deployment slot during swap operation.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPreserveVnet
public CsmSlotEntity withPreserveVnet(boolean preserveVnet)
Set the preserveVnet property: true to preserve Virtual Network to the slot during swap; otherwise, false.
Parameters:
Returns:
withTargetSlot
public CsmSlotEntity withTargetSlot(String targetSlot)
Set the targetSlot property: Destination deployment slot during swap operation.
Parameters:
Returns: