Partilhar via


NextHopResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.NextHopResultInner

Implements

public final class NextHopResultInner
implements JsonSerializable<NextHopResultInner>

The information about next hop from the specified VM.

Constructor Summary

Constructor Description
NextHopResultInner()

Creates an instance of NextHopResultInner class.

Method Summary

Modifier and Type Method and Description
static NextHopResultInner fromJson(JsonReader jsonReader)

Reads an instance of NextHopResultInner from the JsonReader.

String nextHopIpAddress()

Get the nextHopIpAddress property: Next hop IP Address.

NextHopType nextHopType()

Get the nextHopType property: Next hop type.

String routeTableId()

Get the routeTableId property: The resource identifier for the route table associated with the route being returned.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NextHopResultInner withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: Next hop IP Address.

NextHopResultInner withNextHopType(NextHopType nextHopType)

Set the nextHopType property: Next hop type.

NextHopResultInner withRouteTableId(String routeTableId)

Set the routeTableId property: The resource identifier for the route table associated with the route being returned.

Methods inherited from java.lang.Object

Constructor Details

NextHopResultInner

public NextHopResultInner()

Creates an instance of NextHopResultInner class.

Method Details

fromJson

public static NextHopResultInner fromJson(JsonReader jsonReader)

Reads an instance of NextHopResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NextHopResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the NextHopResultInner.

nextHopIpAddress

public String nextHopIpAddress()

Get the nextHopIpAddress property: Next hop IP Address.

Returns:

the nextHopIpAddress value.

nextHopType

public NextHopType nextHopType()

Get the nextHopType property: Next hop type.

Returns:

the nextHopType value.

routeTableId

public String routeTableId()

Get the routeTableId property: The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'.

Returns:

the routeTableId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNextHopIpAddress

public NextHopResultInner withNextHopIpAddress(String nextHopIpAddress)

Set the nextHopIpAddress property: Next hop IP Address.

Parameters:

nextHopIpAddress - the nextHopIpAddress value to set.

Returns:

the NextHopResultInner object itself.

withNextHopType

public NextHopResultInner withNextHopType(NextHopType nextHopType)

Set the nextHopType property: Next hop type.

Parameters:

nextHopType - the nextHopType value to set.

Returns:

the NextHopResultInner object itself.

withRouteTableId

public NextHopResultInner withRouteTableId(String routeTableId)

Set the routeTableId property: The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'.

Parameters:

routeTableId - the routeTableId value to set.

Returns:

the NextHopResultInner object itself.

Applies to