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

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

There is a newer version: 1.14.0
Show newest version
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;

public class DefinitionsLinkdescription extends PayPalModel {
	/**
	 * a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing
	 */
	private String href;
	/**
	 * relation to the target resource of the link
	 */
	private String rel;
	/**
	 * a title for the link
	 */
	private String title;
	/**
	 * JSON Schema describing the link target
	 */
	private DefinitionsLinkdescription targetSchema;
	/**
	 * media type (as defined by RFC 2046) describing the link target
	 */
	private String mediaType;
	/**
	 * method for requesting the target of the link (e.g. for HTTP this might be "GET" or "DELETE")
	 */
	private String method;
	/**
	 * The media type in which to submit data along with the request
	 */
	private String encType;
	/**
	 * Schema describing the data to submit along with the request
	 */
	private DefinitionsLinkdescription schema;

	/**
	 * Default Constructor
	 */
	public DefinitionsLinkdescription() {
	}

	/**
	 * Parameterized Constructor
	 */
	public DefinitionsLinkdescription(String href, String rel) {
		this.href = href;
		this.rel = rel;
	}

	/**
	 * a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing
	 */
	@java.lang.SuppressWarnings("all")
	public String getHref() {
		return this.href;
	}

	/**
	 * relation to the target resource of the link
	 */
	@java.lang.SuppressWarnings("all")
	public String getRel() {
		return this.rel;
	}

	/**
	 * a title for the link
	 */
	@java.lang.SuppressWarnings("all")
	public String getTitle() {
		return this.title;
	}

	/**
	 * JSON Schema describing the link target
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription getTargetSchema() {
		return this.targetSchema;
	}

	/**
	 * media type (as defined by RFC 2046) describing the link target
	 */
	@java.lang.SuppressWarnings("all")
	public String getMediaType() {
		return this.mediaType;
	}

	/**
	 * method for requesting the target of the link (e.g. for HTTP this might be "GET" or "DELETE")
	 */
	@java.lang.SuppressWarnings("all")
	public String getMethod() {
		return this.method;
	}

	/**
	 * The media type in which to submit data along with the request
	 */
	@java.lang.SuppressWarnings("all")
	public String getEncType() {
		return this.encType;
	}

	/**
	 * Schema describing the data to submit along with the request
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription getSchema() {
		return this.schema;
	}

	/**
	 * a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setHref(final String href) {
		this.href = href;
		return this;
	}

	/**
	 * relation to the target resource of the link
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setRel(final String rel) {
		this.rel = rel;
		return this;
	}

	/**
	 * a title for the link
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setTitle(final String title) {
		this.title = title;
		return this;
	}

	/**
	 * JSON Schema describing the link target
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setTargetSchema(final DefinitionsLinkdescription targetSchema) {
		this.targetSchema = targetSchema;
		return this;
	}

	/**
	 * media type (as defined by RFC 2046) describing the link target
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setMediaType(final String mediaType) {
		this.mediaType = mediaType;
		return this;
	}

	/**
	 * method for requesting the target of the link (e.g. for HTTP this might be "GET" or "DELETE")
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setMethod(final String method) {
		this.method = method;
		return this;
	}

	/**
	 * The media type in which to submit data along with the request
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setEncType(final String encType) {
		this.encType = encType;
		return this;
	}

	/**
	 * Schema describing the data to submit along with the request
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public DefinitionsLinkdescription setSchema(final DefinitionsLinkdescription schema) {
		this.schema = schema;
		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 DefinitionsLinkdescription)) return false;
		final DefinitionsLinkdescription other = (DefinitionsLinkdescription) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$href = this.getHref();
		final java.lang.Object other$href = other.getHref();
		if (this$href == null ? other$href != null : !this$href.equals(other$href)) return false;
		final java.lang.Object this$rel = this.getRel();
		final java.lang.Object other$rel = other.getRel();
		if (this$rel == null ? other$rel != null : !this$rel.equals(other$rel)) return false;
		final java.lang.Object this$title = this.getTitle();
		final java.lang.Object other$title = other.getTitle();
		if (this$title == null ? other$title != null : !this$title.equals(other$title)) return false;
		final java.lang.Object this$targetSchema = this.getTargetSchema();
		final java.lang.Object other$targetSchema = other.getTargetSchema();
		if (this$targetSchema == null ? other$targetSchema != null : !this$targetSchema.equals(other$targetSchema)) return false;
		final java.lang.Object this$mediaType = this.getMediaType();
		final java.lang.Object other$mediaType = other.getMediaType();
		if (this$mediaType == null ? other$mediaType != null : !this$mediaType.equals(other$mediaType)) return false;
		final java.lang.Object this$method = this.getMethod();
		final java.lang.Object other$method = other.getMethod();
		if (this$method == null ? other$method != null : !this$method.equals(other$method)) return false;
		final java.lang.Object this$encType = this.getEncType();
		final java.lang.Object other$encType = other.getEncType();
		if (this$encType == null ? other$encType != null : !this$encType.equals(other$encType)) return false;
		final java.lang.Object this$schema = this.getSchema();
		final java.lang.Object other$schema = other.getSchema();
		if (this$schema == null ? other$schema != null : !this$schema.equals(other$schema)) return false;
		return true;
	}

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

	@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 $href = this.getHref();
		result = result * PRIME + ($href == null ? 43 : $href.hashCode());
		final java.lang.Object $rel = this.getRel();
		result = result * PRIME + ($rel == null ? 43 : $rel.hashCode());
		final java.lang.Object $title = this.getTitle();
		result = result * PRIME + ($title == null ? 43 : $title.hashCode());
		final java.lang.Object $targetSchema = this.getTargetSchema();
		result = result * PRIME + ($targetSchema == null ? 43 : $targetSchema.hashCode());
		final java.lang.Object $mediaType = this.getMediaType();
		result = result * PRIME + ($mediaType == null ? 43 : $mediaType.hashCode());
		final java.lang.Object $method = this.getMethod();
		result = result * PRIME + ($method == null ? 43 : $method.hashCode());
		final java.lang.Object $encType = this.getEncType();
		result = result * PRIME + ($encType == null ? 43 : $encType.hashCode());
		final java.lang.Object $schema = this.getSchema();
		result = result * PRIME + ($schema == null ? 43 : $schema.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy