RouteInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. SubResourceModel - com.
azure. resourcemanager. network. fluent. models. RouteInner
- com.
- com.
- com.
public final class RouteInner
extends SubResourceModel
Route resource.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteInner() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
addressPrefix()
Get the address |
| String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
|
static
Route |
fromJson(JsonReader jsonReader)
Reads an instance of Route |
| Boolean |
hasBgpOverride()
Get the has |
|
Route |
nextHop()
Get the next |
| String |
nextHopIpAddress()
Get the next |
|
Route |
nextHopType()
Get the next |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Resource type. |
| void |
validate()
Validates the instance. |
|
Route |
withAddressPrefix(String addressPrefix)
Set the address |
|
Route |
withId(String id) |
|
Route |
withName(String name)
Set the name property: Name of the resource. |
|
Route |
withNextHop(RouteNextHopEcmp nextHop)
Set the next |
|
Route |
withNextHopIpAddress(String nextHopIpAddress)
Set the next |
|
Route |
withNextHopType(RouteNextHopType nextHopType)
Set the next |
Methods inherited from SubResource
Methods inherited from SubResourceModel
Methods inherited from java.lang.Object
Constructor Details
RouteInner
public RouteInner()
Creates an instance of RouteInner class.
Method Details
addressPrefix
public String addressPrefix()
Get the addressPrefix property: The destination CIDR to which the route applies.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static RouteInner fromJson(JsonReader jsonReader)
Reads an instance of RouteInner from the JsonReader.
Parameters:
Returns:
Throws:
hasBgpOverride
public Boolean hasBgpOverride()
Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.
Returns:
nextHop
public RouteNextHopEcmp nextHop()
Get the nextHop property: The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.
Returns:
nextHopIpAddress
public String nextHopIpAddress()
Get the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
Returns:
nextHopType
public RouteNextHopType nextHopType()
Get the nextHopType property: The type of Azure hop the packet should be sent to.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the route resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RouteInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Overrides:
RouteInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RouteInner.validate()withAddressPrefix
public RouteInner withAddressPrefix(String addressPrefix)
Set the addressPrefix property: The destination CIDR to which the route applies.
Parameters:
Returns:
withId
public RouteInner withId(String id)
Overrides:
RouteInner.withId(String id)Parameters:
withName
public RouteInner withName(String name)
Set the name property: Name of the resource.
Overrides:
RouteInner.withName(String name)Parameters:
withNextHop
public RouteInner withNextHop(RouteNextHopEcmp nextHop)
Set the nextHop property: The next hop definition containing ECMP next hop IP addresses. Only allowed when nextHopType is VirtualApplianceEcmp.
Parameters:
Returns:
withNextHopIpAddress
public RouteInner withNextHopIpAddress(String nextHopIpAddress)
Set the nextHopIpAddress property: The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
Parameters:
Returns:
withNextHopType
public RouteInner withNextHopType(RouteNextHopType nextHopType)
Set the nextHopType property: The type of Azure hop the packet should be sent to.
Parameters:
Returns: