com.vmware.vcloud.sdk.constants
Enum Layer4ProtocolType

java.lang.Object
  extended by java.lang.Enum<Layer4ProtocolType>
      extended by com.vmware.vcloud.sdk.constants.Layer4ProtocolType
All Implemented Interfaces:
Serializable, Comparable<Layer4ProtocolType>

public enum Layer4ProtocolType
extends Enum<Layer4ProtocolType>

Layer4Protocol constants

Since:
API 1.5, SDK 1.5
Author:
Ecosystem Engineering

Enum Constant Summary
TCP
          TCP to be used in NAT rule.
TCP_UDP
          TCP and UDP to be used in NAT rule.
UDP
          UDP to be used in NAT rule.
 
Method Summary
static Layer4ProtocolType fromValue(String value)
           
 String value()
           
static Layer4ProtocolType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Layer4ProtocolType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TCP

public static final Layer4ProtocolType TCP
TCP to be used in NAT rule.


UDP

public static final Layer4ProtocolType UDP
UDP to be used in NAT rule.


TCP_UDP

public static final Layer4ProtocolType TCP_UDP
TCP and UDP to be used in NAT rule.

Method Detail

values

public static Layer4ProtocolType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Layer4ProtocolType c : Layer4ProtocolType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Layer4ProtocolType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

fromValue

public static Layer4ProtocolType fromValue(String value)


Copyright © 2016. All Rights Reserved.