public final class StaticRoute extends Object
| Constructor and Description |
|---|
StaticRoute() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
addressPrefixes()
Get the addressPrefixes property: List of all address prefixes.
|
String |
name()
Get the name property: The name of the StaticRoute that is unique within a VnetRoute.
|
String |
nextHopIpAddress()
Get the nextHopIpAddress property: The ip address of the next hop.
|
void |
validate()
Validates the instance.
|
StaticRoute |
withAddressPrefixes(List<String> addressPrefixes)
Set the addressPrefixes property: List of all address prefixes.
|
StaticRoute |
withName(String name)
Set the name property: The name of the StaticRoute that is unique within a VnetRoute.
|
StaticRoute |
withNextHopIpAddress(String nextHopIpAddress)
Set the nextHopIpAddress property: The ip address of the next hop.
|
public String name()
public StaticRoute withName(String name)
name - the name value to set.public List<String> addressPrefixes()
public StaticRoute withAddressPrefixes(List<String> addressPrefixes)
addressPrefixes - the addressPrefixes value to set.public String nextHopIpAddress()
public StaticRoute withNextHopIpAddress(String nextHopIpAddress)
nextHopIpAddress - the nextHopIpAddress value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.