WebPubSubContentType Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.messaging.webpubsub.models.WebPubSubContentType

public enum WebPubSubContentType
extends Enum<WebPubSubContentType>

Defines values for ContentType.

Fields

APPLICATION_JSON

Enum value application/json.

APPLICATION_OCTET_STREAM

Enum value application/octet-stream.

TEXT_PLAIN

Enum value text/plain.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String value)

public static WebPubSubContentType fromString(String value)

Parses a serialized value to a ContentType instance.

Parameters

value
String
the serialized value to parse.

Returns

the parsed ContentType object, or null if unable to parse.

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static WebPubSubContentType valueOf(String name)

Parameters

name
String

Returns

values()

public static WebPubSubContentType[] values()

Returns

Applies to