Enum B2TestMode
- java.lang.Object
-
- java.lang.Enum<B2TestMode>
-
- com.backblaze.b2.client.structures.B2TestMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<B2TestMode>
public enum B2TestMode extends java.lang.Enum<B2TestMode>
TestModes allow the client to ask the server to cause errors to help with testing the client. Don't want to use them in your production code.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPIRE_SOME_ACCOUNT_AUTHORIZATION_TOKENS
FAIL_SOME_UPLOADS
FORCE_CAP_EXCEEDED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValueForHeader()
static B2TestMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static B2TestMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL_SOME_UPLOADS
public static final B2TestMode FAIL_SOME_UPLOADS
-
FORCE_CAP_EXCEEDED
public static final B2TestMode FORCE_CAP_EXCEEDED
-
EXPIRE_SOME_ACCOUNT_AUTHORIZATION_TOKENS
public static final B2TestMode EXPIRE_SOME_ACCOUNT_AUTHORIZATION_TOKENS
-
-
Method Detail
-
values
public static B2TestMode[] 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 (B2TestMode c : B2TestMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static B2TestMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValueForHeader
public java.lang.String getValueForHeader()
-
-