Class MmsMessage.Builder
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.MmsMessage.Builder
-
- Enclosing class:
- MmsMessage
public static final class MmsMessage.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MmsMessage.Builderattachments(java.util.Optional<? extends Attachments> attachments)Attachments for the message.MmsMessage.Builderattachments(Attachments attachments)Attachments for the message.MmsMessagebuild()MmsMessage.Builderdate(java.time.OffsetDateTime date)Scheduled future date and time of sending the message (in ISO 8601 format).MmsMessage.Builderdate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)Scheduled future date and time of sending the message (in ISO 8601 format).MmsMessage.Buildermessage(java.lang.String message)MMS message contentMmsMessage.Buildermessage(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message)MMS message contentMmsMessage.Builderrecipients(Recipients recipients)The recipient number or multiple recipients numbers of single message.MmsMessage.Buildersubject(java.lang.String subject)MMS message subjectMmsMessage.Buildersubject(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject)MMS message subject
-
-
-
Method Detail
-
recipients
public MmsMessage.Builder recipients(Recipients recipients)
The recipient number or multiple recipients numbers of single message. To set one recipient, please useRecipients.of(String)method simply passing to it astringwith his phone number. To set multiple recipients, please useRecipients.ofArrayOfStrings(List.of(String,...))method passing to itList<string>. Optionally you can also set custom id (user identifier) for each message - useRecipients.of(PhoneNumberWithCid)method passingPhoneNumberWithCidobject (in case of single recipient) orRecipients.ofArrayOfPhoneNumberWithCids(Recipients.of(PhoneNumberWithCid,...))method passing List<PhoneNumberWithCid> (in case of multiple recipients).
-
subject
public MmsMessage.Builder subject(java.lang.String subject)
MMS message subject
-
subject
public MmsMessage.Builder subject(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject)
MMS message subject
-
message
public MmsMessage.Builder message(java.lang.String message)
MMS message content
-
message
public MmsMessage.Builder message(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message)
MMS message content
-
attachments
public MmsMessage.Builder attachments(Attachments attachments)
Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please useAttachments.of(String)method simply passing to it astringwith attachment body encoded bybase64. To set multiple attachments please useAttachments.of(List.of(String,...))method passing to itList<string>with attachments bodies encoded bybase64. Max 3 attachments per message.
-
attachments
public MmsMessage.Builder attachments(java.util.Optional<? extends Attachments> attachments)
Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please useAttachments.of(String)method simply passing to it astringwith attachment body encoded bybase64. To set multiple attachments please useAttachments.of(List.of(String,...))method passing to itList<string>with attachments bodies encoded bybase64. Max 3 attachments per message.
-
date
public MmsMessage.Builder date(java.time.OffsetDateTime date)
Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
-
date
public MmsMessage.Builder date(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
-
build
public MmsMessage build()
-
-