
com.infobip.model.EmailBulkScheduleResponse 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;
/** EmailBulkScheduleResponse */
public class EmailBulkScheduleResponse {
public static final String SERIALIZED_NAME_BULKS = "bulks";
@SerializedName(SERIALIZED_NAME_BULKS)
private List bulks = null;
public static final String SERIALIZED_NAME_EXTERNAL_BULK_ID = "externalBulkId";
@SerializedName(SERIALIZED_NAME_EXTERNAL_BULK_ID)
private String externalBulkId;
public EmailBulkScheduleResponse bulks(List bulks) {
this.bulks = bulks;
return this;
}
public EmailBulkScheduleResponse addBulksItem(EmailBulkInfo bulksItem) {
if (this.bulks == null) {
this.bulks = new ArrayList<>();
}
this.bulks.add(bulksItem);
return this;
}
/**
* Get bulks
*
* @return bulks
*/
public List getBulks() {
return bulks;
}
public void setBulks(List bulks) {
this.bulks = bulks;
}
public EmailBulkScheduleResponse externalBulkId(String externalBulkId) {
this.externalBulkId = externalBulkId;
return this;
}
/**
* Get externalBulkId
*
* @return externalBulkId
*/
public String getExternalBulkId() {
return externalBulkId;
}
public void setExternalBulkId(String externalBulkId) {
this.externalBulkId = externalBulkId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmailBulkScheduleResponse emailBulkScheduleResponse = (EmailBulkScheduleResponse) o;
return Objects.equals(this.bulks, emailBulkScheduleResponse.bulks)
&& Objects.equals(this.externalBulkId, emailBulkScheduleResponse.externalBulkId);
}
@Override
public int hashCode() {
return Objects.hash(bulks, externalBulkId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmailBulkScheduleResponse {\n");
sb.append(" bulks: ").append(toIndentedString(bulks)).append("\n");
sb.append(" externalBulkId: ").append(toIndentedString(externalBulkId)).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