Package com.bandwidth.sdk.model
Class MultiChannelMessageData
java.lang.Object
com.bandwidth.sdk.model.MultiChannelMessageData
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.10.0")
public class MultiChannelMessageData
extends Object
MultiChannelMessageData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) channel
(MultiChannelMessageChannelEnum channel) direction
(MultiChannelMessageDirectionEnum direction) boolean
static MultiChannelMessageData
Create an instance of MultiChannelMessageData 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.getTime()
The time the message was received by the Bandwidth API.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
setTime
(OffsetDateTime time) void
status
(MultiChannelStatusEnum status) time
(OffsetDateTime time) toJson()
Convert an instance of MultiChannelMessageData 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_TIME
- 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
-
MultiChannelMessageData
public MultiChannelMessageData()
-
-
Method Details
-
messageId
-
getMessageId
The ID of the message.- Returns:
- messageId
-
setMessageId
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
time
-
getTime
The time the message was received by the Bandwidth API.- Returns:
- time
-
setTime
-
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 MultiChannelMessageData 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 MultiChannelMessageData
-
fromJson
Create an instance of MultiChannelMessageData given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of MultiChannelMessageData
- Throws:
IOException
- if the JSON string is invalid with respect to MultiChannelMessageData
-
toJson
Convert an instance of MultiChannelMessageData to an JSON string- Returns:
- JSON string
-