SwapResourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.SwapResourceProperties

Implements

public final class SwapResourceProperties
implements JsonSerializable<SwapResourceProperties>

Swap resource properties.

Constructor Summary

Constructor Description
SwapResourceProperties()

Creates an instance of SwapResourceProperties class.

Method Summary

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

Reads an instance of SwapResourceProperties from the JsonReader.

SlotType slotType()

Get the slotType property: Specifies slot info on a cloud service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SwapResourceProperties withSlotType(SlotType slotType)

Set the slotType property: Specifies slot info on a cloud service.

Methods inherited from java.lang.Object

Constructor Details

SwapResourceProperties

public SwapResourceProperties()

Creates an instance of SwapResourceProperties class.

Method Details

fromJson

public static SwapResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of SwapResourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SwapResourceProperties.

slotType

public SlotType slotType()

Get the slotType property: Specifies slot info on a cloud service.

Returns:

the slotType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSlotType

public SwapResourceProperties withSlotType(SlotType slotType)

Set the slotType property: Specifies slot info on a cloud service.

Parameters:

slotType - the slotType value to set.

Returns:

the SwapResourceProperties object itself.

Applies to