### YamlMime:JavaType
uid: "com.azure.resourcemanager.network.models.GatewayRoute"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute"
name: "GatewayRoute"
nameWithType: "GatewayRoute"
summary: "Gateway routing details."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **GatewayRoute** implements <>"
constructors:
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.GatewayRoute()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.GatewayRoute()"
name: "GatewayRoute()"
nameWithType: "GatewayRoute.GatewayRoute()"
summary: "Creates an instance of GatewayRoute class."
syntax: "public GatewayRoute()"
desc: "Creates an instance of GatewayRoute class."
methods:
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.asPath()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.asPath()"
name: "asPath()"
nameWithType: "GatewayRoute.asPath()"
summary: "Get the asPath property: The route's AS path sequence."
syntax: "public String asPath()"
desc: "Get the asPath property: The route's AS path sequence."
returns:
description: "the asPath value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "GatewayRoute.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of GatewayRoute from the JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: ""
syntax: "public static GatewayRoute fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the GatewayRoute."
type: "IOException"
desc: "Reads an instance of GatewayRoute from the JsonReader."
returns:
description: "An instance of GatewayRoute if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: ""
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.localAddress()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.localAddress()"
name: "localAddress()"
nameWithType: "GatewayRoute.localAddress()"
summary: "Get the localAddress property: The gateway's local address."
syntax: "public String localAddress()"
desc: "Get the localAddress property: The gateway's local address."
returns:
description: "the localAddress value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.network()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.network()"
name: "network()"
nameWithType: "GatewayRoute.network()"
summary: "Get the network property: The route's network prefix."
syntax: "public String network()"
desc: "Get the network property: The route's network prefix."
returns:
description: "the network value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.nextHop()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.nextHop()"
name: "nextHop()"
nameWithType: "GatewayRoute.nextHop()"
summary: "Get the nextHop property: The route's next hop."
syntax: "public String nextHop()"
desc: "Get the nextHop property: The route's next hop."
returns:
description: "the nextHop value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.origin()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.origin()"
name: "origin()"
nameWithType: "GatewayRoute.origin()"
summary: "Get the origin property: The source this route was learned from."
syntax: "public String origin()"
desc: "Get the origin property: The source this route was learned from."
returns:
description: "the origin value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.sourcePeer()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.sourcePeer()"
name: "sourcePeer()"
nameWithType: "GatewayRoute.sourcePeer()"
summary: "Get the sourcePeer property: The peer this route was learned from."
syntax: "public String sourcePeer()"
desc: "Get the sourcePeer property: The peer this route was learned from."
returns:
description: "the sourcePeer value."
type: "String"
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "GatewayRoute.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.validate()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.validate()"
name: "validate()"
nameWithType: "GatewayRoute.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.network.models.GatewayRoute.weight()"
fullName: "com.azure.resourcemanager.network.models.GatewayRoute.weight()"
name: "weight()"
nameWithType: "GatewayRoute.weight()"
summary: "Get the weight property: The route's weight."
syntax: "public Integer weight()"
desc: "Get the weight property: The route's weight."
returns:
description: "the weight value."
type: "Integer"
type: "class"
desc: "Gateway routing details."
implements:
- "<>"
metadata: {}
package: "com.azure.resourcemanager.network.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.42.0