다음을 통해 공유


GatewayLoadBalancerTunnelInterface Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface

Implements

public final class GatewayLoadBalancerTunnelInterface
implements JsonSerializable<GatewayLoadBalancerTunnelInterface>

Gateway load balancer tunnel interface of a load balancer backend address pool.

Constructor Summary

Constructor Description
GatewayLoadBalancerTunnelInterface()

Creates an instance of GatewayLoadBalancerTunnelInterface class.

Method Summary

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

Reads an instance of GatewayLoadBalancerTunnelInterface from the JsonReader.

Integer identifier()

Get the identifier property: Identifier of gateway load balancer tunnel interface.

Integer port()

Get the port property: Port of gateway load balancer tunnel interface.

GatewayLoadBalancerTunnelProtocol protocol()

Get the protocol property: Protocol of gateway load balancer tunnel interface.

JsonWriter toJson(JsonWriter jsonWriter)
GatewayLoadBalancerTunnelInterfaceType type()

Get the type property: Traffic type of gateway load balancer tunnel interface.

void validate()

Validates the instance.

GatewayLoadBalancerTunnelInterface withIdentifier(Integer identifier)

Set the identifier property: Identifier of gateway load balancer tunnel interface.

GatewayLoadBalancerTunnelInterface withPort(Integer port)

Set the port property: Port of gateway load balancer tunnel interface.

GatewayLoadBalancerTunnelInterface withProtocol(GatewayLoadBalancerTunnelProtocol protocol)

Set the protocol property: Protocol of gateway load balancer tunnel interface.

GatewayLoadBalancerTunnelInterface withType(GatewayLoadBalancerTunnelInterfaceType type)

Set the type property: Traffic type of gateway load balancer tunnel interface.

Methods inherited from java.lang.Object

Constructor Details

GatewayLoadBalancerTunnelInterface

public GatewayLoadBalancerTunnelInterface()

Creates an instance of GatewayLoadBalancerTunnelInterface class.

Method Details

fromJson

public static GatewayLoadBalancerTunnelInterface fromJson(JsonReader jsonReader)

Reads an instance of GatewayLoadBalancerTunnelInterface from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GatewayLoadBalancerTunnelInterface 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 GatewayLoadBalancerTunnelInterface.

identifier

public Integer identifier()

Get the identifier property: Identifier of gateway load balancer tunnel interface.

Returns:

the identifier value.

port

public Integer port()

Get the port property: Port of gateway load balancer tunnel interface.

Returns:

the port value.

protocol

public GatewayLoadBalancerTunnelProtocol protocol()

Get the protocol property: Protocol of gateway load balancer tunnel interface.

Returns:

the protocol value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public GatewayLoadBalancerTunnelInterfaceType type()

Get the type property: Traffic type of gateway load balancer tunnel interface.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentifier

public GatewayLoadBalancerTunnelInterface withIdentifier(Integer identifier)

Set the identifier property: Identifier of gateway load balancer tunnel interface.

Parameters:

identifier - the identifier value to set.

Returns:

the GatewayLoadBalancerTunnelInterface object itself.

withPort

public GatewayLoadBalancerTunnelInterface withPort(Integer port)

Set the port property: Port of gateway load balancer tunnel interface.

Parameters:

port - the port value to set.

Returns:

the GatewayLoadBalancerTunnelInterface object itself.

withProtocol

public GatewayLoadBalancerTunnelInterface withProtocol(GatewayLoadBalancerTunnelProtocol protocol)

Set the protocol property: Protocol of gateway load balancer tunnel interface.

Parameters:

protocol - the protocol value to set.

Returns:

the GatewayLoadBalancerTunnelInterface object itself.

withType

public GatewayLoadBalancerTunnelInterface withType(GatewayLoadBalancerTunnelInterfaceType type)

Set the type property: Traffic type of gateway load balancer tunnel interface.

Parameters:

type - the type value to set.

Returns:

the GatewayLoadBalancerTunnelInterface object itself.

Applies to