Class UpdateSmsBatchMediaRequest
- java.lang.Object
-
- com.sinch.sdk.domains.sms.models.requests.UpdateBaseBatchRequest<MediaBody>
-
- com.sinch.sdk.domains.sms.models.requests.UpdateSmsBatchMediaRequest
-
public class UpdateSmsBatchMediaRequest extends UpdateBaseBatchRequest<MediaBody>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateSmsBatchMediaRequest.Builder-
Nested classes/interfaces inherited from class com.sinch.sdk.domains.sms.models.requests.UpdateBaseBatchRequest
UpdateBaseBatchRequest.BatchBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description UpdateSmsBatchMediaRequest(Collection<String> toAdd, Collection<String> toRemove, String from, MediaBody body, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl, Parameters parameters, Boolean strictValidation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateSmsBatchMediaRequest.Builderbuilder()Optional<Parameters>getParameters()Optional<Boolean>isStrictValidation()StringtoString()-
Methods inherited from class com.sinch.sdk.domains.sms.models.requests.UpdateBaseBatchRequest
batchBuilder, getBody, getCallbackUrl, getDeliveryReport, getExpireAt, getFrom, getSendAt, getToAdd, getToRemove
-
-
-
-
Constructor Detail
-
UpdateSmsBatchMediaRequest
public UpdateSmsBatchMediaRequest(Collection<String> toAdd, Collection<String> toRemove, String from, MediaBody body, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl, Parameters parameters, Boolean strictValidation)
- Parameters:
toAdd- List of phone numbers and group IDs to add to the batch.body- The message contenttoRemove- List of phone numbers and group IDs to remove from the batch.from- Sender number. Must be valid phone number, short code or alphanumeric. Required if Automatic Default Originator not configured. * @param body The message contentdeliveryReport- Request delivery report callback. Note that delivery reports can be fetched from the API regardless of this settingsendAt- If set in the future, the message will be delayed until send_at occurs. Must be before expire_at. If set in the past, messages will be sent immediatelyexpireAt- If set, the system will stop trying to deliver the message at this point. Must be after send_at. Default and max is 3 days after send_atcallbackUrl- Override the default callback URL for this batch. Must be valid URL.parameters- Contains the parameters that will be used for customizing the message for each recipient.strictValidation- 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
-
-
Method Detail
-
getParameters
public Optional<Parameters> getParameters()
-
toString
public String toString()
- Overrides:
toStringin classUpdateBaseBatchRequest<MediaBody>
-
builder
public static UpdateSmsBatchMediaRequest.Builder builder()
-
-