Package com.oracle.bmc.ons.requests
Enum PublishMessageRequest.MessageType
- java.lang.Object
-
- java.lang.Enum<PublishMessageRequest.MessageType>
-
- com.oracle.bmc.ons.requests.PublishMessageRequest.MessageType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<PublishMessageRequest.MessageType>
- Enclosing class:
- PublishMessageRequest
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:
"}.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
Json
public static final PublishMessageRequest.MessageType Json
-
RawText
public static final PublishMessageRequest.MessageType RawText
-
-
Method Detail
-
values
public static PublishMessageRequest.MessageType[] 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 (PublishMessageRequest.MessageType c : PublishMessageRequest.MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublishMessageRequest.MessageType 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
-
create
public static PublishMessageRequest.MessageType create(String key)
-
-