Package com.bandwidth.sdk.model
Class MultiChannelMessageCallbackData
java.lang.Object
com.bandwidth.sdk.model.MultiChannelMessageCallbackData
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class MultiChannelMessageCallbackData
extends Object
MultiChannelMessageCallbackData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) channel
(MultiChannelMessageChannelEnum channel) direction
(MultiChannelMessageDirectionEnum direction) boolean
Create an instance of MultiChannelMessageCallbackData given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.Get channelGet directiongetFrom()
The sender ID of the message.The ID of the message.Get statusgetTag()
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()
putAdditionalProperty
(String key, Object value) Set the additional (undeclared) property with the specified name and value.void
setApplicationId
(String applicationId) void
setChannel
(MultiChannelMessageChannelEnum channel) void
setDirection
(MultiChannelMessageDirectionEnum direction) void
void
setMessageId
(String messageId) void
setStatus
(MultiChannelStatusEnum status) void
void
status
(MultiChannelStatusEnum status) toJson()
Convert an instance of MultiChannelMessageCallbackData 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_MESSAGE_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
SERIALIZED_NAME_FROM
- See Also:
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_APPLICATION_ID
- See Also:
-
SERIALIZED_NAME_CHANNEL
- See Also:
-
SERIALIZED_NAME_TAG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MultiChannelMessageCallbackData
public MultiChannelMessageCallbackData()
-
-
Method Details
-
messageId
-
getMessageId
The ID of the message.- Returns:
- messageId
-
setMessageId
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
direction
public MultiChannelMessageCallbackData direction(@Nullable MultiChannelMessageDirectionEnum direction) -
getDirection
Get direction- Returns:
- direction
-
setDirection
-
from
-
getFrom
The sender ID of the message. This could be an alphanumeric sender ID.- Returns:
- from
-
setFrom
-
to
-
getTo
The phone number the message should be sent to in E164 format.- Returns:
- to
-
setTo
-
applicationId
-
getApplicationId
The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard.- Returns:
- applicationId
-
setApplicationId
-
channel
-
getChannel
Get channel- Returns:
- channel
-
setChannel
-
tag
-
getTag
A custom string that will be included in callback events of the message. Max 1024 characters.- Returns:
- tag
-
setTag
-
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 MultiChannelMessageCallbackData 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 MultiChannelMessageCallbackData
-
fromJson
Create an instance of MultiChannelMessageCallbackData given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of MultiChannelMessageCallbackData
- Throws:
IOException
- if the JSON string is invalid with respect to MultiChannelMessageCallbackData
-
toJson
Convert an instance of MultiChannelMessageCallbackData to an JSON string- Returns:
- JSON string
-