com.symphony.api.model.MessageIdsFromStream Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* List of MessageIds of a Stream
**/
@Schema(description="List of MessageIds of a Stream")
public class MessageIdsFromStream {
@Schema(description = "")
private List data = null;
@Schema(description = "")
private Long totalNumberFound = null;
@Schema(description = "")
private Long numberReturned = null;
@Schema(description = "")
private Long nextStartNumber = null;
/**
* Get data
* @return data
**/
@JsonProperty("Data")
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
public MessageIdsFromStream data(List data) {
this.data = data;
return this;
}
public MessageIdsFromStream addDataItem(String dataItem) {
this.data.add(dataItem);
return this;
}
/**
* Get totalNumberFound
* @return totalNumberFound
**/
@JsonProperty("TotalNumberFound")
public Long getTotalNumberFound() {
return totalNumberFound;
}
public void setTotalNumberFound(Long totalNumberFound) {
this.totalNumberFound = totalNumberFound;
}
public MessageIdsFromStream totalNumberFound(Long totalNumberFound) {
this.totalNumberFound = totalNumberFound;
return this;
}
/**
* Get numberReturned
* @return numberReturned
**/
@JsonProperty("numberReturned")
public Long getNumberReturned() {
return numberReturned;
}
public void setNumberReturned(Long numberReturned) {
this.numberReturned = numberReturned;
}
public MessageIdsFromStream numberReturned(Long numberReturned) {
this.numberReturned = numberReturned;
return this;
}
/**
* Get nextStartNumber
* @return nextStartNumber
**/
@JsonProperty("nextStartNumber")
public Long getNextStartNumber() {
return nextStartNumber;
}
public void setNextStartNumber(Long nextStartNumber) {
this.nextStartNumber = nextStartNumber;
}
public MessageIdsFromStream nextStartNumber(Long nextStartNumber) {
this.nextStartNumber = nextStartNumber;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageIdsFromStream {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" totalNumberFound: ").append(toIndentedString(totalNumberFound)).append("\n");
sb.append(" numberReturned: ").append(toIndentedString(numberReturned)).append("\n");
sb.append(" nextStartNumber: ").append(toIndentedString(nextStartNumber)).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 static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy