Record Class HttpTransport.ApiRequest
java.lang.Object
java.lang.Record
kr.paysync.sdk.internal.HttpTransport.ApiRequest
- Enclosing class:
HttpTransport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.json.JSONObjectbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.static HttpTransport.ApiRequeststatic HttpTransport.ApiRequestfinal inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.static HttpTransport.ApiRequestpath()Returns the value of thepathrecord component.static Stringstatic HttpTransport.ApiRequestquery()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiRequest
public ApiRequest(String method, String path, Map<String, @Nullable String> query, @Nullable org.json.JSONObject body) Creates an instance of aApiRequestrecord class.- Parameters:
method- the value for themethodrecord componentpath- the value for thepathrecord componentquery- the value for thequeryrecord componentbody- the value for thebodyrecord component
-
-
Method Details
-
get
-
get
-
post
-
patch
-
path
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
query
-
body
public @Nullable org.json.JSONObject body()Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-