CsmSlotEntity Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.CsmSlotEntity

Implements

public final class CsmSlotEntity
implements JsonSerializable<CsmSlotEntity>

Deployment slot parameters.

Constructor Summary

Constructor Description
CsmSlotEntity()

Creates an instance of CsmSlotEntity class.

Method Summary

Modifier and Type Method and Description
static CsmSlotEntity fromJson(JsonReader jsonReader)

Reads an instance of CsmSlotEntity from the JsonReader.

boolean preserveVnet()

Get the preserveVnet property: true to preserve Virtual Network to the slot during swap; otherwise, false.

String targetSlot()

Get the targetSlot property: Destination deployment slot during swap operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CsmSlotEntity withPreserveVnet(boolean preserveVnet)

Set the preserveVnet property: true to preserve Virtual Network to the slot during swap; otherwise, false.

CsmSlotEntity withTargetSlot(String targetSlot)

Set the targetSlot property: Destination deployment slot during swap operation.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of CsmSlotEntity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

preserveVnet

public boolean preserveVnet()

Get the preserveVnet property: true to preserve Virtual Network to the slot during swap; otherwise, false.

Returns:

the preserveVnet value.

targetSlot

public String targetSlot()

Get the targetSlot property: Destination deployment slot during swap operation.

Returns:

the targetSlot value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

preserveVnet - the preserveVnet value to set.

Returns:

the CsmSlotEntity object itself.

withTargetSlot

public CsmSlotEntity withTargetSlot(String targetSlot)

Set the targetSlot property: Destination deployment slot during swap operation.

Parameters:

targetSlot - the targetSlot value to set.

Returns:

the CsmSlotEntity object itself.

Applies to