Enum QueueMessageEncoding

java.lang.Object
java.lang.Enum<QueueMessageEncoding>
com.azure.storage.queue.QueueMessageEncoding
All Implemented Interfaces:
Serializable, Comparable<QueueMessageEncoding>, java.lang.constant.Constable

public enum QueueMessageEncoding extends Enum<QueueMessageEncoding>
Determines how queue message body is represented in HTTP requests and responses.
  • Enum Constant Details

    • 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 Details

    • values

      public static QueueMessageEncoding[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null