Interface UpdateMediaRequest
- All Superinterfaces:
UpdateBatchRequest
Update media message
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDedicated Builderstatic classMMS -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateMediaRequest.Builderbuilder()Getting buildergetBody()Get bodyThe client identifier of a batch message.Get deliveryReportOverride the default callback URL for this batch.If set, the system will stop trying to deliver the message at this point.If set totrue, then feedback is expected after successful delivery.getFrom()Sender number.Contains the parameters that will be used for customizing the message for each recipient.If set, in the future the message will be delayed untilsend_atoccurs.Whether or not you want the media included in your message to be checked against Sinch MMS channel best practices.getToAdd()List of phone numbers and group IDs to add to the batch.List of phone numbers and group IDs to remove from the batch.
-
Method Details
-
getFrom
String getFrom()Sender number. Must be valid phone number, short code or alphanumeric.- Returns:
- from
-
getToAdd
List of phone numbers and group IDs to add to the batch.- Returns:
- toAdd
-
getToRemove
List of phone numbers and group IDs to remove from the batch.- Returns:
- toRemove
-
getDeliveryReport
DeliveryReportType getDeliveryReport()Get deliveryReport- Returns:
- deliveryReport
-
getSendAt
Instant getSendAt()If set, in the future the message will be delayed untilsend_atoccurs. Formatted as ISO-8601:YYYY-MM-DDThh:mm:ss.SSSZ. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately.- Returns:
- sendAt
-
getExpireAt
Instant getExpireAt()If set, the system will stop trying to deliver the message at this point. Constraints: Must be aftersend_atDefault: 3 days aftersend_at- Returns:
- expireAt
-
getEventDestinationTarget
String getEventDestinationTarget()Override the default callback URL for this batch. Constraints: Must be valid URL.- Returns:
- eventDestinationTarget
-
getClientReference
String getClientReference()The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batch- Returns:
- clientReference
-
getFeedbackEnabled
Boolean getFeedbackEnabled()If set totrue, then feedback is expected after successful delivery.- Returns:
- feedbackEnabled
-
getBody
MediaBody getBody()Get body- Returns:
- body
-
getParameters
Contains the parameters that will be used for customizing the message for each recipient. Click here to learn more about parameterization.- Returns:
- parameters
-
getStrictValidation
Boolean getStrictValidation()Whether or not you want the media included in your message to be checked against Sinch MMS channel best practices. If set to true, your message will be rejected if it doesn't conform to the listed recommendations, otherwise no validation will be performed.- Returns:
- strictValidation
-
builder
Getting builder- Returns:
- New Builder instance
-