Class Price.Builder

  • Enclosing class:
    Price

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Price build()  
      Price.Builder cid​(java.lang.String cid)
      Custom message ID assigned by the User
      Price.Builder cid​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
      Custom message ID assigned by the User
      Price.Builder error​(java.lang.String error)
      Information about a possible error
      Price.Builder error​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)
      Information about a possible error
      Price.Builder flash​(boolean flash)
      Was the message sent with class 0 (FLASH)?
      Price.Builder flash​(java.util.Optional<java.lang.Boolean> flash)
      Was the message sent with class 0 (FLASH)?
      Price.Builder parts​(long parts)
      The count of parts that message consists of
      Price.Builder parts​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
      The count of parts that message consists of
      Price.Builder price​(float price)
      The price of message (in PLN)
      Price.Builder price​(java.util.Optional<java.lang.Float> price)
      The price of message (in PLN)
      Price.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.
      Price.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.
      Price.Builder sender​(java.lang.String sender)
      Message sender name
      Price.Builder sender​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
      Message sender name
      Price.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)
      Price.Builder type​(MessageType type)
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      Price.Builder unicode​(boolean unicode)
      Did the message contain special characters, e.g.
      Price.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

      • error

        public Price.Builder error​(java.lang.String error)
        Information about a possible error
      • error

        public Price.Builder error​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)
        Information about a possible error
      • cid

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

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

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

        public Price.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 Price.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 Price.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 Price.Builder sender​(java.lang.String sender)
        Message sender name
      • sender

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

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

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

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

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

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

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

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

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

        public Price build()