Enum H2UpgradePolicy
- java.lang.Object
-
- java.lang.Enum<H2UpgradePolicy>
-
- me.snowdrop.istio.api.mesh.v1alpha1.H2UpgradePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<H2UpgradePolicy>
public enum H2UpgradePolicy extends Enum<H2UpgradePolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DO_NOT_UPGRADEDo not upgrade connections to http2.UPGRADEUpgrade the connections to http2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static H2UpgradePolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static H2UpgradePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DO_NOT_UPGRADE
public static final H2UpgradePolicy DO_NOT_UPGRADE
Do not upgrade connections to http2.
-
UPGRADE
public static final H2UpgradePolicy UPGRADE
Upgrade the connections to http2.
-
-
Method Detail
-
values
public static H2UpgradePolicy[] 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 (H2UpgradePolicy c : H2UpgradePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static H2UpgradePolicy 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
-
value
public int value()
-
-