Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 import  com.paypal.core.rest.JSONFormatter;
 import java.util.List;
 
 
 public class EventList  {

A list of Webhooks event resources
	private List<Eventevents;

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<Linkslinks;

Default Constructor
	public EventList() {
	}


Setter for events
	public EventList setEvents(List<Eventevents) {
		this. = events;
		return this;
	}

Getter for events
	public List<EventgetEvents() {
		return this.;
	}


Setter for count
	public EventList setCount(int count) {
		this. = count;
		return this;
	}

Getter for count
	public int getCount() {
		return this.;
	}


Setter for links
	public EventList setLinks(List<Linkslinks) {
		this. = links;
		return this;
	}

Getter for links
	public List<LinksgetLinks() {
		return this.;
	}

Returns a JSON string corresponding to object state

Returns:
JSON representation
	public String toJSON() {
		return JSONFormatter.toJSON(this);
	}
	public String toString() {
		return toJSON();
	}
New to GrepCode? Check out our FAQ X