Class GatewayLoadBalancerTunnelInterface
java.lang.Object
com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelInterface
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayLoadBalancerTunnelInterface>
public final class GatewayLoadBalancerTunnelInterface
extends Object
implements com.azure.json.JsonSerializable<GatewayLoadBalancerTunnelInterface>
Gateway load balancer tunnel interface of a load balancer backend address pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayLoadBalancerTunnelInterface class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayLoadBalancerTunnelInterface from the JsonReader.Get the identifier property: Identifier of gateway load balancer tunnel interface.port()Get the port property: Port of gateway load balancer tunnel interface.protocol()Get the protocol property: Protocol of gateway load balancer tunnel interface.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Traffic type of gateway load balancer tunnel interface.voidvalidate()Validates the instance.withIdentifier(Integer identifier) Set the identifier property: Identifier of gateway load balancer tunnel interface.Set the port property: Port of gateway load balancer tunnel interface.Set the protocol property: Protocol of gateway load balancer tunnel interface.Set the type property: Traffic type of gateway load balancer tunnel interface.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GatewayLoadBalancerTunnelInterface
public GatewayLoadBalancerTunnelInterface()Creates an instance of GatewayLoadBalancerTunnelInterface class.
-
-
Method Details
-
port
Get the port property: Port of gateway load balancer tunnel interface.- Returns:
- the port value.
-
withPort
Set the port property: Port of gateway load balancer tunnel interface.- Parameters:
port- the port value to set.- Returns:
- the GatewayLoadBalancerTunnelInterface object itself.
-
identifier
Get the identifier property: Identifier of gateway load balancer tunnel interface.- Returns:
- the identifier value.
-
withIdentifier
Set the identifier property: Identifier of gateway load balancer tunnel interface.- Parameters:
identifier- the identifier value to set.- Returns:
- the GatewayLoadBalancerTunnelInterface object itself.
-
protocol
Get the protocol property: Protocol of gateway load balancer tunnel interface.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Protocol of gateway load balancer tunnel interface.- Parameters:
protocol- the protocol value to set.- Returns:
- the GatewayLoadBalancerTunnelInterface object itself.
-
type
Get the type property: Traffic type of gateway load balancer tunnel interface.- Returns:
- the type value.
-
withType
Set the type property: Traffic type of gateway load balancer tunnel interface.- Parameters:
type- the type value to set.- Returns:
- the GatewayLoadBalancerTunnelInterface object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GatewayLoadBalancerTunnelInterface>- Throws:
IOException
-
fromJson
public static GatewayLoadBalancerTunnelInterface fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-