Package com.nettoolkit.gatekeeper
Class RemoveVisitorRequest
java.lang.Object
com.nettoolkit.internal.request.BaseApiRequest
com.nettoolkit.internal.request.DeleteRequest
com.nettoolkit.gatekeeper.RemoveVisitorRequest
Request to remove a visitor from a visitor group. Corresponds to endpoint
DELETE /gatekeeper/visitor-groups/:visitor_group_id/visitors.
Visitor group ID and visitor are required.
If the visitor does not exist, the request succeeds without making any changes.
Sample:
gatekeeperClient.newRemoveVisitorRequest() .visitorGroupId("b18f397b-d5f5-404a-b26c-00e295d3b3d3") .visitor("1.2.3.4") .send();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPath()voidsend()Sends the request.Sets the visitor value.visitorGroupId(String strVisitorGroupId) Sets the visitor group ID.visitorGroupId(UUID visitorGroupId) Sets the visitor group ID.Methods inherited from class com.nettoolkit.internal.request.DeleteRequest
getHttpMethod, serializeParametersMethods inherited from class com.nettoolkit.internal.request.BaseApiRequest
getClient, getParameters, newHttpRequestBuilder, toHttpRequest, toString
-
Constructor Details
-
RemoveVisitorRequest
-
-
Method Details
-
getPath
- Specified by:
getPathin classBaseApiRequest
-
visitorGroupId
Sets the visitor group ID. The visitor will be removed from this visitor group. required- Parameters:
visitorGroupId- the visitor group ID- Returns:
- this
-
visitorGroupId
Sets the visitor group ID.- Parameters:
strVisitorGroupId- the visitor group ID as a string- Returns:
- this
- Throws:
IllegalArgumentException- if the string is not a valid UUID- See Also:
-
visitor
Sets the visitor value.- Parameters:
strVisitor- the visitor value- Returns:
- this
- See Also:
-
send
Sends the request.- Throws:
NetToolKitException
-