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.
|
| Modifier and Type | Method and Description |
|---|---|
OperationOptions |
build()
Creates the
OperationOptions. |
Map<String,Object> |
getOptions()
Returns a mutable reference of the options map.
|
OperationOptionsBuilder |
setAttributesToGet(Collection<String> attrNames)
Sets the
OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setAttributesToGet(String... attrNames)
Sets the
OperationOptions.OP_ATTRIBUTES_TO_GET option. |
OperationOptionsBuilder |
setContainer(QualifiedUid container)
Convenience method to set
OperationOptions.OP_CONTAINER |
OperationOptionsBuilder |
setOption(String name,
Object value)
Sets a given option and a value for that option.
|
OperationOptionsBuilder |
setRunAsUser(String user)
Set the run as user option.
|
OperationOptionsBuilder |
setRunWithPassword(GuardedString password)
Set the run with password option.
|
OperationOptionsBuilder |
setScope(String scope)
Convenience method to set
OperationOptions.OP_SCOPE |
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 setRunWithPassword(GuardedString password)
public OperationOptionsBuilder setRunAsUser(String user)
public OperationOptionsBuilder setScope(String scope)
OperationOptions.OP_SCOPEscope - The scope. May not be null.public OperationOptionsBuilder setContainer(QualifiedUid container)
OperationOptions.OP_CONTAINERcontainer - The container. May not be null.public Map<String,Object> getOptions()
public OperationOptions build()
OperationOptions.OperationOptionsCopyright © 2013. All Rights Reserved.