
com.infobip.model.SmsAdvancedBinaryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
/*
* Infobip Client API Libraries OpenAPI Specification
* OpenAPI specification containing public endpoints supported in client API libraries.
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.infobip.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** SmsAdvancedBinaryRequest */
public class SmsAdvancedBinaryRequest {
public static final String SERIALIZED_NAME_BULK_ID = "bulkId";
@SerializedName(SERIALIZED_NAME_BULK_ID)
private String bulkId;
public static final String SERIALIZED_NAME_MESSAGES = "messages";
@SerializedName(SERIALIZED_NAME_MESSAGES)
private List messages = new ArrayList<>();
public static final String SERIALIZED_NAME_SENDING_SPEED_LIMIT = "sendingSpeedLimit";
@SerializedName(SERIALIZED_NAME_SENDING_SPEED_LIMIT)
private SmsSendingSpeedLimit sendingSpeedLimit = null;
public SmsAdvancedBinaryRequest bulkId(String bulkId) {
this.bulkId = bulkId;
return this;
}
/**
* The ID which uniquely identifies the request. Bulk ID will be received only when you send a
* message to more than one destination address.
*
* @return bulkId
*/
public String getBulkId() {
return bulkId;
}
public void setBulkId(String bulkId) {
this.bulkId = bulkId;
}
public SmsAdvancedBinaryRequest messages(List messages) {
this.messages = messages;
return this;
}
public SmsAdvancedBinaryRequest addMessagesItem(SmsBinaryMessage messagesItem) {
this.messages.add(messagesItem);
return this;
}
/**
* Get messages
*
* @return messages
*/
public List getMessages() {
return messages;
}
public void setMessages(List messages) {
this.messages = messages;
}
public SmsAdvancedBinaryRequest sendingSpeedLimit(SmsSendingSpeedLimit sendingSpeedLimit) {
this.sendingSpeedLimit = sendingSpeedLimit;
return this;
}
/**
* Limit the sending speed for message bulks. In some use cases, you might want to reduce message
* sending speed if your message call to action involves visiting a website, calling your contact
* center or similar recipient activity, in which you can handle a limited amount of load. This
* setting helps you to spread the delivery of the messages over a longer period, allowing your
* systems or agents to handle incoming traffic in real-time, resulting in better customer
* satisfaction.
*
* @return sendingSpeedLimit
*/
public SmsSendingSpeedLimit getSendingSpeedLimit() {
return sendingSpeedLimit;
}
public void setSendingSpeedLimit(SmsSendingSpeedLimit sendingSpeedLimit) {
this.sendingSpeedLimit = sendingSpeedLimit;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SmsAdvancedBinaryRequest smsAdvancedBinaryRequest = (SmsAdvancedBinaryRequest) o;
return Objects.equals(this.bulkId, smsAdvancedBinaryRequest.bulkId)
&& Objects.equals(this.messages, smsAdvancedBinaryRequest.messages)
&& Objects.equals(this.sendingSpeedLimit, smsAdvancedBinaryRequest.sendingSpeedLimit);
}
@Override
public int hashCode() {
return Objects.hash(bulkId, messages, sendingSpeedLimit);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SmsAdvancedBinaryRequest {\n");
sb.append(" bulkId: ").append(toIndentedString(bulkId)).append("\n");
sb.append(" messages: ").append(toIndentedString(messages)).append("\n");
sb.append(" sendingSpeedLimit: ").append(toIndentedString(sendingSpeedLimit)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy