com.paypal.api.payments.PatchRequest 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;
public class PatchRequest extends PayPalModel {
/**
* Patch operation to perform.Value required for add & remove operation can be any JSON value.
*/
private String op;
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*/
private String path;
/**
* Default Constructor
*/
public PatchRequest() {
}
/**
* Parameterized Constructor
*/
public PatchRequest(String op, String path) {
this.op = op;
this.path = path;
}
/**
* Patch operation to perform.Value required for add & remove operation can be any JSON value.
*/
@java.lang.SuppressWarnings("all")
public String getOp() {
return this.op;
}
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
*/
@java.lang.SuppressWarnings("all")
public String getPath() {
return this.path;
}
/**
* Patch operation to perform.Value required for add & remove operation can be any JSON value.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setOp(final String op) {
this.op = op;
return this;
}
/**
* string containing a JSON-Pointer value that references a location within the target document (the target location) where the operation is performed.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PatchRequest setPath(final String path) {
this.path = path;
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 PatchRequest)) return false;
final PatchRequest other = (PatchRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$op = this.getOp();
final java.lang.Object other$op = other.getOp();
if (this$op == null ? other$op != null : !this$op.equals(other$op)) return false;
final java.lang.Object this$path = this.getPath();
final java.lang.Object other$path = other.getPath();
if (this$path == null ? other$path != null : !this$path.equals(other$path)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PatchRequest;
}
@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 $op = this.getOp();
result = result * PRIME + ($op == null ? 43 : $op.hashCode());
final java.lang.Object $path = this.getPath();
result = result * PRIME + ($path == null ? 43 : $path.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy