RouteMapRule Class

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

Implements

public final class RouteMapRule
implements JsonSerializable<RouteMapRule>

A RouteMap Rule.

Constructor Summary

Constructor Description
RouteMapRule()

Creates an instance of RouteMapRule class.

Method Summary

Modifier and Type Method and Description
List<Action> actions()

Get the actions property: List of actions which will be applied on a match.

static RouteMapRule fromJson(JsonReader jsonReader)

Reads an instance of RouteMapRule from the JsonReader.

List<Criterion> matchCriteria()

Get the matchCriteria property: List of matching criterion which will be applied to traffic.

String name()

Get the name property: The unique name for the rule.

NextStep nextStepIfMatched()

Get the nextStepIfMatched property: Next step after rule is evaluated.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RouteMapRule withActions(List<Action> actions)

Set the actions property: List of actions which will be applied on a match.

RouteMapRule withMatchCriteria(List<Criterion> matchCriteria)

Set the matchCriteria property: List of matching criterion which will be applied to traffic.

RouteMapRule withName(String name)

Set the name property: The unique name for the rule.

RouteMapRule withNextStepIfMatched(NextStep nextStepIfMatched)

Set the nextStepIfMatched property: Next step after rule is evaluated.

Methods inherited from java.lang.Object

Constructor Details

RouteMapRule

public RouteMapRule()

Creates an instance of RouteMapRule class.

Method Details

actions

public List actions()

Get the actions property: List of actions which will be applied on a match.

Returns:

the actions value.

fromJson

public static RouteMapRule fromJson(JsonReader jsonReader)

Reads an instance of RouteMapRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

matchCriteria

public List matchCriteria()

Get the matchCriteria property: List of matching criterion which will be applied to traffic.

Returns:

the matchCriteria value.

name

public String name()

Get the name property: The unique name for the rule.

Returns:

the name value.

nextStepIfMatched

public NextStep nextStepIfMatched()

Get the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.

Returns:

the nextStepIfMatched value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActions

public RouteMapRule withActions(List actions)

Set the actions property: List of actions which will be applied on a match.

Parameters:

actions - the actions value to set.

Returns:

the RouteMapRule object itself.

withMatchCriteria

public RouteMapRule withMatchCriteria(List matchCriteria)

Set the matchCriteria property: List of matching criterion which will be applied to traffic.

Parameters:

matchCriteria - the matchCriteria value to set.

Returns:

the RouteMapRule object itself.

withName

public RouteMapRule withName(String name)

Set the name property: The unique name for the rule.

Parameters:

name - the name value to set.

Returns:

the RouteMapRule object itself.

withNextStepIfMatched

public RouteMapRule withNextStepIfMatched(NextStep nextStepIfMatched)

Set the nextStepIfMatched property: Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'.

Parameters:

nextStepIfMatched - the nextStepIfMatched value to set.

Returns:

the RouteMapRule object itself.

Applies to