Package com.inrupt.client.accessgrant
Class AccessCredentialQuery.Builder
java.lang.Object
com.inrupt.client.accessgrant.AccessCredentialQuery.Builder
- Enclosing class:
- AccessCredentialQuery<T extends AccessCredential>
A builder class for access credential queries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends AccessCredential>
AccessCredentialQuery<T>Build the access credential query.Set the creator identifier.Add an access mode value.Add a purpose identifier.Set the recipient identifier.Set the resource identifier.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resource
Set the resource identifier.- Parameters:
resource
- the resource identifier, may benull
- Returns:
- this builder
-
purpose
Add a purpose identifier.- Parameters:
purpose
- a purpose identifier;null
values have no effect.- Returns:
- this builder
-
mode
Add an access mode value.- Parameters:
mode
- a mode value;null
values have no effect.- Returns:
- this builder
-
creator
Set the creator identifier.- Parameters:
creator
- the creator identifier, may benull
- Returns:
- this builder
-
recipient
Set the recipient identifier.- Parameters:
recipient
- the recipient identifier, may benull
- Returns:
- this builder
-
build
Build the access credential query.- Type Parameters:
T
- the credential type- Parameters:
clazz
- the credential type- Returns:
- the query object
-