public static enum PublishMessageRequest.MessageType extends Enum<PublishMessageRequest.MessageType> implements BmcEnum
Deprecated. Support for JSON is deprecated. You can send a JSON payload even when transmitting the payload as a raw string. Configure your receiving system to read the raw payload as JSON format.
Type of message body in the request. For messageType
of JSON, a default key-value
pair is required. Example: {"default": "Alarm breached", "Email": "Alarm breached:
<url>"}.
Modifier and Type | Method and Description |
---|---|
static PublishMessageRequest.MessageType |
create(String key) |
String |
getValue() |
static PublishMessageRequest.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublishMessageRequest.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublishMessageRequest.MessageType Json
public static final PublishMessageRequest.MessageType RawText
public static PublishMessageRequest.MessageType[] values()
for (PublishMessageRequest.MessageType c : PublishMessageRequest.MessageType.values()) System.out.println(c);
public static PublishMessageRequest.MessageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PublishMessageRequest.MessageType create(String key)
Copyright © 2016–2024. All rights reserved.