Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.paypal.api.payments;
 
 import  com.paypal.core.rest.JSONFormatter;
 
 public class PatchRequest  {

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 opString path) {
		this. = op;
		this. = path;
	}


Setter for op
	public PatchRequest setOp(String op) {
		this. = op;
		return this;
	}

Getter for op
	public String getOp() {
		return this.;
	}


Setter for path
	public PatchRequest setPath(String path) {
		this. = path;
		return this;
	}

Getter for path
	public String getPath() {
		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