Package com.bandwidth.sdk.model
Class MultiChannelMessageRequest
java.lang.Object
com.bandwidth.sdk.model.MultiChannelMessageRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class MultiChannelMessageRequest
extends Object
Multi-Channel Message Request
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChannelListItem
(MultiChannelChannelListObject channelListItem) channelList
(List<MultiChannelChannelListObject> channelList) boolean
expiration
(OffsetDateTime expiration) static MultiChannelMessageRequest
Create an instance of MultiChannelMessageRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A list of message bodies.A string with the date/time value that the message will automatically expire by.Get prioritygetTag()
A custom string that will be included in callback events of the message.getTo()
The phone number the message should be sent to in E164 format.int
hashCode()
priority
(PriorityEnum priority) putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setChannelList
(List<MultiChannelChannelListObject> channelList) void
setExpiration
(OffsetDateTime expiration) void
setPriority
(PriorityEnum priority) void
void
toJson()
Convert an instance of MultiChannelMessageRequest to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_CHANNEL_LIST
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_EXPIRATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MultiChannelMessageRequest
public MultiChannelMessageRequest()
-
-
Method Details
-
to
-
getTo
The phone number the message should be sent to in E164 format.- Returns:
- to
-
setTo
-
channelList
public MultiChannelMessageRequest channelList(@Nonnull List<MultiChannelChannelListObject> channelList) -
addChannelListItem
-
getChannelList
A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored.- Returns:
- channelList
-
setChannelList
-
tag
-
getTag
A custom string that will be included in callback events of the message. Max 1024 characters.- Returns:
- tag
-
setTag
-
priority
-
getPriority
Get priority- Returns:
- priority
-
setPriority
-
expiration
-
getExpiration
A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future.- Returns:
- expiration
-
setExpiration
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key
- name of the propertyvalue
- value of the property- Returns:
- the MultiChannelMessageRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key
- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to MultiChannelMessageRequest
-
fromJson
Create an instance of MultiChannelMessageRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of MultiChannelMessageRequest
- Throws:
IOException
- if the JSON string is invalid with respect to MultiChannelMessageRequest
-
toJson
Convert an instance of MultiChannelMessageRequest to an JSON string- Returns:
- JSON string
-