Class RoutePropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.RoutePropertiesFormat
Route resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefix property: The destination CIDR to which the route applies.Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.Get the nextHopIpAddress property: The IP address packets should be forwarded to.Get the nextHopType property: The type of Azure hop the packet should be sent to.Get the provisioningState property: The provisioning state of the route resource.voidvalidate()Validates the instance.withAddressPrefix(String addressPrefix) Set the addressPrefix property: The destination CIDR to which the route applies.withHasBgpOverride(Boolean hasBgpOverride) Set the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.withNextHopIpAddress(String nextHopIpAddress) Set the nextHopIpAddress property: The IP address packets should be forwarded to.withNextHopType(RouteNextHopType nextHopType) Set the nextHopType property: The type of Azure hop the packet should be sent to.
-
Constructor Details
-
RoutePropertiesFormat
public RoutePropertiesFormat()Creates an instance of RoutePropertiesFormat class.
-
-
Method Details
-
addressPrefix
Get the addressPrefix property: The destination CIDR to which the route applies.- Returns:
- the addressPrefix value.
-
withAddressPrefix
Set the addressPrefix property: The destination CIDR to which the route applies.- Parameters:
addressPrefix- the addressPrefix value to set.- Returns:
- the RoutePropertiesFormat object itself.
-
nextHopType
Get the nextHopType property: The type of Azure hop the packet should be sent to.- Returns:
- the nextHopType value.
-
withNextHopType
Set the nextHopType property: The type of Azure hop the packet should be sent to.- Parameters:
nextHopType- the nextHopType value to set.- Returns:
- the RoutePropertiesFormat object itself.
-
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:
- the nextHopIpAddress value.
-
withNextHopIpAddress
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:
nextHopIpAddress- the nextHopIpAddress value to set.- Returns:
- the RoutePropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the route resource.- Returns:
- the provisioningState value.
-
hasBgpOverride
Get the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.- Returns:
- the hasBgpOverride value.
-
withHasBgpOverride
Set the hasBgpOverride property: A value indicating whether this route overrides overlapping BGP routes regardless of LPM.- Parameters:
hasBgpOverride- the hasBgpOverride value to set.- Returns:
- the RoutePropertiesFormat object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-