SwitchCase Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.SwitchCase

Implements

public final class SwitchCase
implements JsonSerializable<SwitchCase>

Switch cases with have a value and corresponding activities.

Constructor Summary

Constructor Description
SwitchCase()

Creates an instance of SwitchCase class.

Method Summary

Modifier and Type Method and Description
List<Activity> activities()

Get the activities property: List of activities to execute for satisfied case condition.

static SwitchCase fromJson(JsonReader jsonReader)

Reads an instance of SwitchCase from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Expected value that satisfies the expression result of the 'on' property.

SwitchCase withActivities(List<Activity> activities)

Set the activities property: List of activities to execute for satisfied case condition.

SwitchCase withValue(String value)

Set the value property: Expected value that satisfies the expression result of the 'on' property.

Methods inherited from java.lang.Object

Constructor Details

SwitchCase

public SwitchCase()

Creates an instance of SwitchCase class.

Method Details

activities

public List<Activity> activities()

Get the activities property: List of activities to execute for satisfied case condition.

Returns:

the activities value.

fromJson

public static SwitchCase fromJson(JsonReader jsonReader)

Reads an instance of SwitchCase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SwitchCase 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 SwitchCase.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Expected value that satisfies the expression result of the 'on' property.

Returns:

the value value.

withActivities

public SwitchCase withActivities(List<Activity> activities)

Set the activities property: List of activities to execute for satisfied case condition.

Parameters:

activities - the activities value to set.

Returns:

the SwitchCase object itself.

withValue

public SwitchCase withValue(String value)

Set the value property: Expected value that satisfies the expression result of the 'on' property.

Parameters:

value - the value value to set.

Returns:

the SwitchCase object itself.

Applies to