
com.infobip.model.SmsBulkResponse Maven / Gradle / Ivy
/*
* 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.time.OffsetDateTime;
import java.util.Objects;
/** SmsBulkResponse */
public class SmsBulkResponse {
public static final String SERIALIZED_NAME_BULK_ID = "bulkId";
@SerializedName(SERIALIZED_NAME_BULK_ID)
private String bulkId;
public static final String SERIALIZED_NAME_SEND_AT = "sendAt";
@SerializedName(SERIALIZED_NAME_SEND_AT)
private OffsetDateTime sendAt;
/**
* Unique ID assigned to the request if messaging multiple recipients or sending multiple messages
* via a single API request.
*
* @return bulkId
*/
public String getBulkId() {
return bulkId;
}
/**
* Date and time when the message is to be sent. Used for scheduled SMS (see [Scheduled SMS
* endpoints](#channels/sms/get-scheduled-sms-messages) for more details). Has the following
* format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.
*
* @return sendAt
*/
public OffsetDateTime getSendAt() {
return sendAt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SmsBulkResponse smsBulkResponse = (SmsBulkResponse) o;
return Objects.equals(this.bulkId, smsBulkResponse.bulkId)
&& Objects.equals(this.sendAt, smsBulkResponse.sendAt);
}
@Override
public int hashCode() {
return Objects.hash(bulkId, sendAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SmsBulkResponse {\n");
sb.append(" bulkId: ").append(toIndentedString(bulkId)).append("\n");
sb.append(" sendAt: ").append(toIndentedString(sendAt)).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