All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paypal.api.payments.EventList Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
// Generated by delombok at Tue Jan 31 13:36:37 CST 2017
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;
import java.util.ArrayList;
import java.util.List;

public class EventList extends PayPalModel {
	/**
	 * A list of Webhooks event resources
	 */
	private List events;
	/**
	 * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
	 */
	private int count;
	/**
	 */
	private List links;

	/**
	 * Default Constructor
	 */
	public EventList() {
		events = new ArrayList();
	}

	/**
	 * A list of Webhooks event resources
	 */
	@java.lang.SuppressWarnings("all")
	public List getEvents() {
		return this.events;
	}

	/**
	 * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
	 */
	@java.lang.SuppressWarnings("all")
	public int getCount() {
		return this.count;
	}

	/**
	 */
	@java.lang.SuppressWarnings("all")
	public List getLinks() {
		return this.links;
	}

	/**
	 * A list of Webhooks event resources
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public EventList setEvents(final List events) {
		this.events = events;
		return this;
	}

	/**
	 * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public EventList setCount(final int count) {
		this.count = count;
		return this;
	}

	/**
	 *
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public EventList setLinks(final List links) {
		this.links = links;
		return this;
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public boolean equals(final java.lang.Object o) {
		if (o == this) return true;
		if (!(o instanceof EventList)) return false;
		final EventList other = (EventList) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$events = this.getEvents();
		final java.lang.Object other$events = other.getEvents();
		if (this$events == null ? other$events != null : !this$events.equals(other$events)) return false;
		if (this.getCount() != other.getCount()) return false;
		final java.lang.Object this$links = this.getLinks();
		final java.lang.Object other$links = other.getLinks();
		if (this$links == null ? other$links != null : !this$links.equals(other$links)) return false;
		return true;
	}

	@java.lang.SuppressWarnings("all")
	protected boolean canEqual(final java.lang.Object other) {
		return other instanceof EventList;
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public int hashCode() {
		final int PRIME = 59;
		int result = 1;
		result = result * PRIME + super.hashCode();
		final java.lang.Object $events = this.getEvents();
		result = result * PRIME + ($events == null ? 43 : $events.hashCode());
		result = result * PRIME + this.getCount();
		final java.lang.Object $links = this.getLinks();
		result = result * PRIME + ($links == null ? 43 : $links.hashCode());
		return result;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy