Class ResourceRegistryRequestOptions.Builder
java.lang.Object
org.gcube.informationsystem.resourceregistry.api.client.ResourceRegistryRequestOptions.Builder
- Enclosing class:
- ResourceRegistryRequestOptions
Builder for immutable per-request options.
-
Method Summary
Modifier and TypeMethodDescriptionaddCustomHeader(String name, String value) Sets a value for a non-reserved custom header.build()contextsPolicy(ContextsPolicy contextsPolicy) hierarchical(Boolean hierarchical) lifecycle(ContextLifecycle lifecycle) membershipScope(MembershipScope membershipScope) metadataPolicy(MetadataPolicy metadataPolicy) polymorphic(Boolean polymorphic) preferReturn(PreferReturn preferReturn) propagationMode(PropagationMode propagationMode)
-
Method Details
-
limit
- Parameters:
limit- positive page size,-1, ornull- Returns:
- this builder
-
offset
- Parameters:
offset- non-negative offset, ornull- Returns:
- this builder
-
metadataPolicy
- Parameters:
metadataPolicy- metadata projection- Returns:
- this builder
-
hierarchical
- Parameters:
hierarchical- whether supported reads include descendants- Returns:
- this builder
-
contextsPolicy
- Parameters:
contextsPolicy- where supported responses carry the membership map- Returns:
- this builder
-
membershipScope
- Parameters:
membershipScope- the Context boundary of the memberships listed by supported responses- Returns:
- this builder
-
polymorphic
- Parameters:
polymorphic- whether supported operations include subtypes- Returns:
- this builder
-
depth
- Parameters:
depth- requested hierarchy depth- Returns:
- this builder
-
lifecycle
- Parameters:
lifecycle- requested Context lifecycle set- Returns:
- this builder
-
propagationMode
- Parameters:
propagationMode- requested structural propagation- Returns:
- this builder
-
dryRun
- Parameters:
dryRun- whether a supported mutation is simulated- Returns:
- this builder
-
sync
- Parameters:
sync- the Contexts a Resource write reaches besides the token Context, ornull- Returns:
- this builder
-
sync
- Parameters:
context- the one Context a Resource write reaches besides the token Context (sync=<UUID>), ornull- Returns:
- this builder
-
preferReturn
- Parameters:
preferReturn- requested successful-response representation- Returns:
- this builder
-
addCustomHeader
Sets a value for a non-reserved custom header. Header-name comparison is case-insensitive; setting the same name again replaces its previous value. Authentication headers are validated by the client against its active authorization provider.- Parameters:
name- header namevalue- header value- Returns:
- this builder
-
build
- Returns:
- immutable request options
-