RoutingRuleRouteDestination Class

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

Implements

public final class RoutingRuleRouteDestination
implements JsonSerializable<RoutingRuleRouteDestination>

Route destination.

Constructor Summary

Constructor Description
RoutingRuleRouteDestination()

Creates an instance of RoutingRuleRouteDestination class.

Method Summary

Modifier and Type Method and Description
String destinationAddress()

Get the destinationAddress property: Destination address.

static RoutingRuleRouteDestination fromJson(JsonReader jsonReader)

Reads an instance of RoutingRuleRouteDestination from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
RoutingRuleDestinationType type()

Get the type property: Destination type.

void validate()

Validates the instance.

RoutingRuleRouteDestination withDestinationAddress(String destinationAddress)

Set the destinationAddress property: Destination address.

RoutingRuleRouteDestination withType(RoutingRuleDestinationType type)

Set the type property: Destination type.

Methods inherited from java.lang.Object

Constructor Details

RoutingRuleRouteDestination

public RoutingRuleRouteDestination()

Creates an instance of RoutingRuleRouteDestination class.

Method Details

destinationAddress

public String destinationAddress()

Get the destinationAddress property: Destination address.

Returns:

the destinationAddress value.

fromJson

public static RoutingRuleRouteDestination fromJson(JsonReader jsonReader)

Reads an instance of RoutingRuleRouteDestination from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public RoutingRuleDestinationType type()

Get the type property: Destination type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDestinationAddress

public RoutingRuleRouteDestination withDestinationAddress(String destinationAddress)

Set the destinationAddress property: Destination address.

Parameters:

destinationAddress - the destinationAddress value to set.

Returns:

the RoutingRuleRouteDestination object itself.

withType

public RoutingRuleRouteDestination withType(RoutingRuleDestinationType type)

Set the type property: Destination type.

Parameters:

type - the type value to set.

Returns:

the RoutingRuleRouteDestination object itself.

Applies to