共用方式為


HubRoute Class

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

Implements

public final class HubRoute
implements JsonSerializable<HubRoute>

RouteTable route.

Constructor Summary

Constructor Description
HubRoute()

Creates an instance of HubRoute class.

Method Summary

Modifier and Type Method and Description
String destinationType()

Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).

List<String> destinations()

Get the destinations property: List of all destinations.

static HubRoute fromJson(JsonReader jsonReader)

Reads an instance of HubRoute from the JsonReader.

String name()

Get the name property: The name of the Route that is unique within a RouteTable.

String nextHop()

Get the nextHop property: NextHop resource ID.

String nextHopType()

Get the nextHopType property: The type of next hop (eg: ResourceId).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HubRoute withDestinationType(String destinationType)

Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).

HubRoute withDestinations(List<String> destinations)

Set the destinations property: List of all destinations.

HubRoute withName(String name)

Set the name property: The name of the Route that is unique within a RouteTable.

HubRoute withNextHop(String nextHop)

Set the nextHop property: NextHop resource ID.

HubRoute withNextHopType(String nextHopType)

Set the nextHopType property: The type of next hop (eg: ResourceId).

Methods inherited from java.lang.Object

Constructor Details

HubRoute

public HubRoute()

Creates an instance of HubRoute class.

Method Details

destinationType

public String destinationType()

Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).

Returns:

the destinationType value.

destinations

public List destinations()

Get the destinations property: List of all destinations.

Returns:

the destinations value.

fromJson

public static HubRoute fromJson(JsonReader jsonReader)

Reads an instance of HubRoute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.

Returns:

the name value.

nextHop

public String nextHop()

Get the nextHop property: NextHop resource ID.

Returns:

the nextHop value.

nextHopType

public String nextHopType()

Get the nextHopType property: The type of next hop (eg: ResourceId).

Returns:

the nextHopType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinationType

public HubRoute withDestinationType(String destinationType)

Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).

Parameters:

destinationType - the destinationType value to set.

Returns:

the HubRoute object itself.

withDestinations

public HubRoute withDestinations(List destinations)

Set the destinations property: List of all destinations.

Parameters:

destinations - the destinations value to set.

Returns:

the HubRoute object itself.

withName

public HubRoute withName(String name)

Set the name property: The name of the Route that is unique within a RouteTable. This name can be used to access this route.

Parameters:

name - the name value to set.

Returns:

the HubRoute object itself.

withNextHop

public HubRoute withNextHop(String nextHop)

Set the nextHop property: NextHop resource ID.

Parameters:

nextHop - the nextHop value to set.

Returns:

the HubRoute object itself.

withNextHopType

public HubRoute withNextHopType(String nextHopType)

Set the nextHopType property: The type of next hop (eg: ResourceId).

Parameters:

nextHopType - the nextHopType value to set.

Returns:

the HubRoute object itself.

Applies to