Class UpdateBaseBatchRequest<T>
- java.lang.Object
-
- com.sinch.sdk.domains.sms.models.requests.UpdateBaseBatchRequest<T>
-
- Type Parameters:
T- Type of batch
- Direct Known Subclasses:
UpdateSmsBatchBinaryRequest,UpdateSmsBatchMediaRequest,UpdateSmsBatchTextRequest
public class UpdateBaseBatchRequest<T> extends Object
Base class for Batch types- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateBaseBatchRequest.BatchBuilder<T>
-
Constructor Summary
Constructors Constructor Description UpdateBaseBatchRequest(Collection<String> toAdd, Collection<String> toRemove, String from, T body, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> UpdateBaseBatchRequest.BatchBuilder<T>batchBuilder()Optional<T>getBody()Optional<String>getCallbackUrl()Optional<DeliveryReportType>getDeliveryReport()Optional<Instant>getExpireAt()Optional<String>getFrom()Optional<Instant>getSendAt()Optional<Collection<String>>getToAdd()Optional<Collection<String>>getToRemove()StringtoString()
-
-
-
Constructor Detail
-
UpdateBaseBatchRequest
public UpdateBaseBatchRequest(Collection<String> toAdd, Collection<String> toRemove, String from, T body, DeliveryReportType deliveryReport, Instant sendAt, Instant expireAt, String callbackUrl)
- Parameters:
toAdd- List of phone numbers and group IDs to add to the batch.toRemove- 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.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.
-
-
Method Detail
-
batchBuilder
public static <T> UpdateBaseBatchRequest.BatchBuilder<T> batchBuilder()
-
getToAdd
public Optional<Collection<String>> getToAdd()
-
getToRemove
public Optional<Collection<String>> getToRemove()
-
getDeliveryReport
public Optional<DeliveryReportType> getDeliveryReport()
-
-