Class Price.Builder
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.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 Pricebuild()Price.Buildercid(java.lang.String cid)Custom message ID assigned by the UserPrice.Buildercid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)Custom message ID assigned by the UserPrice.Buildererror(java.lang.String error)Information about a possible errorPrice.Buildererror(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)Information about a possible errorPrice.Builderflash(boolean flash)Was the message sent with class 0 (FLASH)?Price.Builderflash(java.util.Optional<java.lang.Boolean> flash)Was the message sent with class 0 (FLASH)?Price.Builderparts(long parts)The count of parts that message consists ofPrice.Builderparts(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)The count of parts that message consists ofPrice.Builderprice(float price)The price of message (in PLN)Price.Builderprice(java.util.Optional<java.lang.Float> price)The price of message (in PLN)Price.Builderrecipient(java.lang.String recipient)A telephone number in international format (with a plus sign and the country code at the beginning, e.g.Price.Builderrecipient(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.Buildersender(java.lang.String sender)Message sender namePrice.Buildersender(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)Message sender namePrice.Buildertype(java.util.Optional<? extends MessageType> type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)Price.Buildertype(MessageType type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)Price.Builderunicode(boolean unicode)Did the message contain special characters, e.g.Price.Builderunicode(java.util.Optional<java.lang.Boolean> unicode)Did the message contain special characters, e.g.
-
-
-
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()
-
-