RouteInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. RouteInner
- com.
- com.
public final class RouteInner
extends SubResource
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 |
String |
name()
Get the name property: The name of the resource that is unique within a resource group. |
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: The type of the resource. |
void |
validate()
Validates the instance. |
Route |
withAddressPrefix(String addressPrefix)
Set the address |
Route |
withId(String id) |
Route |
withName(String name)
Set the name property: The name of the resource that is unique within a resource group. |
Route |
withNextHopIpAddress(String nextHopIpAddress)
Set the next |
Route |
withNextHopType(RouteNextHopType nextHopType)
Set the next |
Route |
withType(String type)
Set the type property: The type of the resource. |
Methods inherited from SubResource
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:
name
public String name()
Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.
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: The type of the resource.
Returns:
validate
public void validate()
Validates the instance.
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: The name of the resource that is unique within a resource group. This name can be used to access the resource.
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:
withType
public RouteInner withType(String type)
Set the type property: The type of the resource.
Parameters:
Returns: