Package org.cdk8s.plus24
Enum NetworkProtocol
- java.lang.Object
-
- java.lang.Enum<NetworkProtocol>
-
- org.cdk8s.plus24.NetworkProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<NetworkProtocol>
@Generated(value="jsii-pacmak/1.85.0 (build 08ee592)", date="2023-07-25T00:18:39.054Z") @Stability(Stable) public enum NetworkProtocol extends Enum<NetworkProtocol>
Network protocols.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetworkProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCP
@Stability(Stable) public static final NetworkProtocol TCP
TCP.
-
UDP
@Stability(Stable) public static final NetworkProtocol UDP
UDP.
-
SCTP
@Stability(Stable) public static final NetworkProtocol SCTP
SCTP.
-
-
Method Detail
-
values
public static NetworkProtocol[] 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 (NetworkProtocol c : NetworkProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkProtocol 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 nameNullPointerException
- if the argument is null
-
-