Class QueryRequestPayload
java.lang.Object
com.vaadin.appsec.backend.model.osv.request.QueryRequestPayload
- All Implemented Interfaces:
Serializable
The container for the payload of a query to the OSV API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo args constructor for use in serialization.QueryRequestPayload(Package aPackage) Instantiates a new query request payload.QueryRequestPayload(String commit) Instantiates a new query request payload.QueryRequestPayload(String version, Package aPackage) Instantiates a new query request payload. -
Method Summary
Modifier and TypeMethodDescriptionGets the commit.Gets the package.Gets the version.voidSets the commit.voidsetPackage(Package aPackage) Sets the package.voidsetVersion(String version) Sets the version.toString()
-
Constructor Details
-
QueryRequestPayload
public QueryRequestPayload()No args constructor for use in serialization. -
QueryRequestPayload
Instantiates a new query request payload.- Parameters:
commit- the commit
-
QueryRequestPayload
Instantiates a new query request payload.- Parameters:
aPackage- the package
-
QueryRequestPayload
Instantiates a new query request payload.- Parameters:
version- the versionaPackage- the package
-
-
Method Details
-
getCommit
Gets the commit.- Returns:
- the commit
-
setCommit
Sets the commit.- Parameters:
commit- the new commit
-
getVersion
Gets the version.- Returns:
- the version
-
setVersion
Sets the version.- Parameters:
version- the new version
-
getPackage
Gets the package.- Returns:
- the package
-
setPackage
Sets the package.- Parameters:
aPackage- the new package
-
toString
-