public final class OperationOptionsBuilder extends Object
OperationOptions
.Constructor and Description |
---|
OperationOptionsBuilder()
Create a builder with an empty set of options.
|
OperationOptionsBuilder(OperationOptions options)
Create a builder from an existing set of options.
|
public OperationOptionsBuilder()
public OperationOptionsBuilder(OperationOptions options)
options
- The existing set of options. Must not be null.public OperationOptionsBuilder setOption(String name, Object value)
name
- The name of the optionvalue
- The value of the option. Must be one of the types that we can serialize. See
ObjectSerializerFactory
for a list of supported types.public OperationOptionsBuilder setAttributesToGet(String... attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET
option.attrNames
- list of Attribute
names.public OperationOptionsBuilder setAttributesToGet(Collection<String> attrNames)
OperationOptions.OP_ATTRIBUTES_TO_GET
option.attrNames
- list of Attribute
names.public OperationOptionsBuilder setReturnDefaultAttributes(Boolean flag)
OperationOptions.OP_RETURN_DEFAULT_ATTRIBUTES
option.public OperationOptionsBuilder setRunWithPassword(GuardedString password)
public OperationOptionsBuilder setRunAsUser(String user)
public OperationOptionsBuilder setScope(String scope)
OperationOptions.OP_SCOPE
.scope
- The scope. May not be null.public OperationOptionsBuilder setContainer(QualifiedUid container)
OperationOptions.OP_CONTAINER
.container
- The container. May not be null.public OperationOptionsBuilder setPagedResultsCookie(String pagedResultsCookie)
OperationOptions.OP_PAGED_RESULTS_COOKIE
.pagedResultsCookie
- The pagedResultsCookie. May not be null.public OperationOptionsBuilder setPagedResultsOffset(Integer pagedResultsOffset)
OperationOptions.OP_PAGED_RESULTS_OFFSET
.pagedResultsOffset
- The pagedResultsOffset. May not be null.public OperationOptionsBuilder setPageSize(Integer pageSize)
OperationOptions.OP_PAGE_SIZE
.pageSize
- The pageSize. May not be null.public OperationOptionsBuilder setSortKeys(List<SortKey> sortKeys)
OperationOptions.OP_SORT_KEYS
.sortKeys
- The sort keys. May not be null.public OperationOptionsBuilder setSortKeys(SortKey... sortKeys)
OperationOptions.OP_SORT_KEYS
.sortKeys
- The sort keys. May not be null.public OperationOptionsBuilder setAllowPartialResults(boolean allowPartialResults)
OperationOptions.OP_ALLOW_PARTIAL_RESULTS
.allowPartialResults
- Flag indicating whether partial results are allowed.public OperationOptionsBuilder setAllowPartialAttributeValues(boolean allowPartialAttributeValues)
OperationOptions.OP_ALLOW_PARTIAL_ATTRIBUTE_VALUES
.allowPartialResults
- Flag indicating whether partial attribute values are allowed.public Map<String,Object> getOptions()
public OperationOptions build()
OperationOptions
.OperationOptions
Copyright © 2019. All rights reserved.