public final class HubRoute extends Object
| Constructor and Description |
|---|
HubRoute() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
destinations()
Get the destinations property: List of all destinations.
|
String |
destinationType()
Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
|
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).
|
void |
validate()
Validates the instance.
|
HubRoute |
withDestinations(List<String> destinations)
Set the destinations property: List of all destinations.
|
HubRoute |
withDestinationType(String destinationType)
Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service).
|
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).
|
public String name()
public HubRoute withName(String name)
name - the name value to set.public String destinationType()
public HubRoute withDestinationType(String destinationType)
destinationType - the destinationType value to set.public List<String> destinations()
public HubRoute withDestinations(List<String> destinations)
destinations - the destinations value to set.public String nextHopType()
public HubRoute withNextHopType(String nextHopType)
nextHopType - the nextHopType value to set.public String nextHop()
public HubRoute withNextHop(String nextHop)
nextHop - the nextHop value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.