Package com.azure.storage.queue
Enum QueueMessageEncoding
- java.lang.Object
-
- java.lang.Enum<QueueMessageEncoding>
-
- com.azure.storage.queue.QueueMessageEncoding
-
- All Implemented Interfaces:
Serializable
,Comparable<QueueMessageEncoding>
public enum QueueMessageEncoding extends Enum<QueueMessageEncoding>
Determines how queue message body is represented in HTTP requests and responses.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueueMessageEncoding
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueueMessageEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final QueueMessageEncoding NONE
The queue message body is represented verbatim in HTTP requests and responses. I.e. message is not transformed.
-
BASE64
public static final QueueMessageEncoding BASE64
The queue message body is represented as Base64 encoded string in HTTP requests and responses.This was the default behavior in the prior v8 and v11 library. Using this option can make interop with an existing application easier.
-
-
Method Detail
-
values
public static QueueMessageEncoding[] 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 (QueueMessageEncoding c : QueueMessageEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueueMessageEncoding 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
-
-