net.leanix.webhooks.api.models.EventBatch Maven / Gradle / Ivy
/*
* LeanIX Webhooks REST API
* Sends notifications on trigger events to subscribed observers
*
* OpenAPI spec version: 2.0.35-SNAPSHOT
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package net.leanix.webhooks.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import net.leanix.webhooks.api.models.Event;
/**
* EventBatch
*/
public class EventBatch {
@JsonProperty("events")
private List events = new ArrayList();
public EventBatch events(List events) {
this.events = events;
return this;
}
public EventBatch addEventsItem(Event eventsItem) {
this.events.add(eventsItem);
return this;
}
/**
* Get events
* @return events
**/
@ApiModelProperty(required = true, value = "")
public List getEvents() {
return events;
}
public void setEvents(List events) {
this.events = events;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EventBatch eventBatch = (EventBatch) o;
return Objects.equals(this.events, eventBatch.events);
}
@Override
public int hashCode() {
return Objects.hash(events);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventBatch {\n");
sb.append(" events: ").append(toIndentedString(events)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy