Class ModifyRequestBuilder.Typed
- java.lang.Object
-
- com.unboundid.scim2.client.requests.RequestBuilder<T>
-
- com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder<T>
-
- com.unboundid.scim2.client.requests.ModifyRequestBuilder<ModifyRequestBuilder.Typed>
-
- com.unboundid.scim2.client.requests.ModifyRequestBuilder.Typed
-
- Enclosing class:
- ModifyRequestBuilder<T extends ModifyRequestBuilder<T>>
public static final class ModifyRequestBuilder.Typed extends ModifyRequestBuilder<ModifyRequestBuilder.Typed>
A builder for SCIM modify requests for where the returned resource POJO type will be provided.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.unboundid.scim2.client.requests.ModifyRequestBuilder
ModifyRequestBuilder.Generic<T extends com.unboundid.scim2.common.ScimResource>, ModifyRequestBuilder.Typed
-
-
Field Summary
-
Fields inherited from class com.unboundid.scim2.client.requests.ModifyRequestBuilder
operations, version
-
Fields inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excluded
-
Fields inherited from class com.unboundid.scim2.client.requests.RequestBuilder
headers, queryParams
-
-
Constructor Summary
Constructors Constructor Description Typed(javax.ws.rs.client.WebTarget target)
Create a new generic modify request builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyRequestBuilder.Typed
ifMatch(String version)
Modify the resource only if the resource has not been modified since the provided version.<T> T
invoke(Class<T> cls)
Invoke the SCIM modify request.-
Methods inherited from class com.unboundid.scim2.client.requests.ModifyRequestBuilder
addOperation, addValues, addValues, addValues, addValues, removeValues, removeValues, replaceValue, replaceValue, replaceValues, replaceValues, replaceValues, replaceValues
-
Methods inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excludedAttributes
-
Methods inherited from class com.unboundid.scim2.client.requests.RequestBuilder
accept, contentType, getAccept, getContentType, header, queryParam, target
-
-
-
-
Constructor Detail
-
Typed
public Typed(javax.ws.rs.client.WebTarget target)
Create a new generic modify request builder.- Parameters:
target
- The WebTarget to PATCH.
-
-
Method Detail
-
ifMatch
public ModifyRequestBuilder.Typed ifMatch(String version)
Modify the resource only if the resource has not been modified since the provided version.- Parameters:
version
- The version of the resource to compare.- Returns:
- This builder.
-
invoke
public <T> T invoke(Class<T> cls) throws com.unboundid.scim2.common.exceptions.ScimException
Invoke the SCIM modify request.- Type Parameters:
T
- The type of object to return.- Parameters:
cls
- The Java class object used to determine the type to return.- Returns:
- The successfully modified SCIM resource.
- Throws:
javax.ws.rs.ProcessingException
- If a JAX-RS runtime exception occurred.com.unboundid.scim2.common.exceptions.ScimException
- If the SCIM service provider responded with an error.
-
-