StaticRoute Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. StaticRoute
- com.
Implements
public final class StaticRoute
implements JsonSerializable<StaticRoute>
List of all Static Routes.
Constructor Summary
| Constructor | Description |
|---|---|
| StaticRoute() |
Creates an instance of Static |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
addressPrefixes()
Get the address |
|
static
Static |
fromJson(JsonReader jsonReader)
Reads an instance of Static |
| String |
name()
Get the name property: The name of the Static |
| String |
nextHopIpAddress()
Get the next |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Static |
withAddressPrefixes(List<String> addressPrefixes)
Set the address |
|
Static |
withName(String name)
Set the name property: The name of the Static |
|
Static |
withNextHopIpAddress(String nextHopIpAddress)
Set the next |
Methods inherited from java.lang.Object
Constructor Details
StaticRoute
public StaticRoute()
Creates an instance of StaticRoute class.
Method Details
addressPrefixes
public List<String> addressPrefixes()
Get the addressPrefixes property: List of all address prefixes.
Returns:
fromJson
public static StaticRoute fromJson(JsonReader jsonReader)
Reads an instance of StaticRoute from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the StaticRoute that is unique within a VnetRoute.
Returns:
nextHopIpAddress
public String nextHopIpAddress()
Get the nextHopIpAddress property: The ip address of the next hop.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAddressPrefixes
public StaticRoute withAddressPrefixes(List<String> addressPrefixes)
Set the addressPrefixes property: List of all address prefixes.
Parameters:
Returns:
withName
public StaticRoute withName(String name)
Set the name property: The name of the StaticRoute that is unique within a VnetRoute.
Parameters:
Returns:
withNextHopIpAddress
public StaticRoute withNextHopIpAddress(String nextHopIpAddress)
Set the nextHopIpAddress property: The ip address of the next hop.
Parameters:
Returns: