com.paypal.api.payments.PlanList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
import java.util.ArrayList;
import java.util.List;
public class PlanList extends PayPalModel {
/**
* Array of billing plans.
*/
private List plans;
/**
* Total number of items.
*/
private String totalItems;
/**
* Total number of pages.
*/
private String totalPages;
/**
*/
private List links;
/**
* Default Constructor
*/
public PlanList() {
plans = new ArrayList();
links = new ArrayList();
}
/**
* Array of billing plans.
*/
@java.lang.SuppressWarnings("all")
public List getPlans() {
return this.plans;
}
/**
* Total number of items.
*/
@java.lang.SuppressWarnings("all")
public String getTotalItems() {
return this.totalItems;
}
/**
* Total number of pages.
*/
@java.lang.SuppressWarnings("all")
public String getTotalPages() {
return this.totalPages;
}
/**
*/
@java.lang.SuppressWarnings("all")
public List getLinks() {
return this.links;
}
/**
* Array of billing plans.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PlanList setPlans(final List plans) {
this.plans = plans;
return this;
}
/**
* Total number of items.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PlanList setTotalItems(final String totalItems) {
this.totalItems = totalItems;
return this;
}
/**
* Total number of pages.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PlanList setTotalPages(final String totalPages) {
this.totalPages = totalPages;
return this;
}
/**
*
* @return this
*/
@java.lang.SuppressWarnings("all")
public PlanList 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 PlanList)) return false;
final PlanList other = (PlanList) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$plans = this.getPlans();
final java.lang.Object other$plans = other.getPlans();
if (this$plans == null ? other$plans != null : !this$plans.equals(other$plans)) return false;
final java.lang.Object this$totalItems = this.getTotalItems();
final java.lang.Object other$totalItems = other.getTotalItems();
if (this$totalItems == null ? other$totalItems != null : !this$totalItems.equals(other$totalItems)) return false;
final java.lang.Object this$totalPages = this.getTotalPages();
final java.lang.Object other$totalPages = other.getTotalPages();
if (this$totalPages == null ? other$totalPages != null : !this$totalPages.equals(other$totalPages)) 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 PlanList;
}
@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 $plans = this.getPlans();
result = result * PRIME + ($plans == null ? 43 : $plans.hashCode());
final java.lang.Object $totalItems = this.getTotalItems();
result = result * PRIME + ($totalItems == null ? 43 : $totalItems.hashCode());
final java.lang.Object $totalPages = this.getTotalPages();
result = result * PRIME + ($totalPages == null ? 43 : $totalPages.hashCode());
final java.lang.Object $links = this.getLinks();
result = result * PRIME + ($links == null ? 43 : $links.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy