Class Message.Builder

  • Enclosing class:
    Message

    public static final class Message.Builder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Message build()  
      Message.Builder cid​(java.lang.String cid)
      Custom message ID assigned by the User
      Message.Builder cid​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
      Custom message ID assigned by the User
      Message.Builder flash​(boolean flash)
      Was the message sent with class 0 (FLASH)?
      Message.Builder flash​(java.util.Optional<java.lang.Boolean> flash)
      Was the message sent with class 0 (FLASH)?
      Message.Builder id​(long id)
      Unique message identifier
      Message.Builder id​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id)
      Unique message identifier
      Message.Builder parts​(long parts)
      The count of parts that message consists of
      Message.Builder parts​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
      The count of parts that message consists of
      Message.Builder price​(float price)
      The price of message (in PLN)
      Message.Builder price​(java.util.Optional<java.lang.Float> price)
      The price of message (in PLN)
      Message.Builder recipient​(java.lang.String recipient)
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      Message.Builder recipient​(java.util.Optional<java.lang.String> recipient)
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      Message.Builder sender​(java.lang.String sender)
      Message sender name
      Message.Builder sender​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
      Message sender name
      Message.Builder sentDate​(java.time.OffsetDateTime sentDate)
      Sending date and time (in ISO 8601 format)
      Message.Builder sentDate​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate)
      Sending date and time (in ISO 8601 format)
      Message.Builder statusCode​(java.lang.String statusCode)
      Message status code
      Message.Builder statusCode​(java.util.Optional<java.lang.String> statusCode)
      Message status code
      Message.Builder statusDate​(java.time.OffsetDateTime statusDate)
      Date and time of last status change (in ISO 8601 format)
      Message.Builder statusDate​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate)
      Date and time of last status change (in ISO 8601 format)
      Message.Builder statusDescription​(java.lang.String statusDescription)
      Human redable description of message status
      Message.Builder statusDescription​(java.util.Optional<java.lang.String> statusDescription)
      Human redable description of message status
      Message.Builder type​(java.util.Optional<? extends MessageType> type)
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      Message.Builder type​(MessageType type)
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      Message.Builder unicode​(boolean unicode)
      Did the message contain special characters, e.g.
      Message.Builder unicode​(java.util.Optional<java.lang.Boolean> unicode)
      Did the message contain special characters, e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • id

        public Message.Builder id​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> id)
        Unique message identifier
      • cid

        public Message.Builder cid​(java.lang.String cid)
        Custom message ID assigned by the User
      • cid

        public Message.Builder cid​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
        Custom message ID assigned by the User
      • type

        public Message.Builder type​(MessageType type)
        Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      • type

        public Message.Builder type​(java.util.Optional<? extends MessageType> type)
        Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      • recipient

        public Message.Builder recipient​(java.lang.String recipient)
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • recipient

        public Message.Builder recipient​(java.util.Optional<java.lang.String> recipient)
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • sender

        public Message.Builder sender​(java.lang.String sender)
        Message sender name
      • sender

        public Message.Builder sender​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
        Message sender name
      • parts

        public Message.Builder parts​(long parts)
        The count of parts that message consists of
      • parts

        public Message.Builder parts​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
        The count of parts that message consists of
      • sentDate

        public Message.Builder sentDate​(java.time.OffsetDateTime sentDate)
        Sending date and time (in ISO 8601 format)
      • sentDate

        public Message.Builder sentDate​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> sentDate)
        Sending date and time (in ISO 8601 format)
      • statusDate

        public Message.Builder statusDate​(java.time.OffsetDateTime statusDate)
        Date and time of last status change (in ISO 8601 format)
      • statusDate

        public Message.Builder statusDate​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> statusDate)
        Date and time of last status change (in ISO 8601 format)
      • statusCode

        public Message.Builder statusCode​(java.lang.String statusCode)
        Message status code
      • statusCode

        public Message.Builder statusCode​(java.util.Optional<java.lang.String> statusCode)
        Message status code
      • statusDescription

        public Message.Builder statusDescription​(java.lang.String statusDescription)
        Human redable description of message status
      • statusDescription

        public Message.Builder statusDescription​(java.util.Optional<java.lang.String> statusDescription)
        Human redable description of message status
      • unicode

        public Message.Builder unicode​(boolean unicode)
        Did the message contain special characters, e.g. Polish diacritics?
      • unicode

        public Message.Builder unicode​(java.util.Optional<java.lang.Boolean> unicode)
        Did the message contain special characters, e.g. Polish diacritics?
      • flash

        public Message.Builder flash​(boolean flash)
        Was the message sent with class 0 (FLASH)?
      • flash

        public Message.Builder flash​(java.util.Optional<java.lang.Boolean> flash)
        Was the message sent with class 0 (FLASH)?
      • price

        public Message.Builder price​(float price)
        The price of message (in PLN)
      • price

        public Message.Builder price​(java.util.Optional<java.lang.Float> price)
        The price of message (in PLN)