Constructor and Description |
---|
Builder()
Creates a new instance of the OptionsIn.Builder class.
|
Modifier and Type | Method and Description |
---|---|
OptionsIn |
build()
Builds an OptionsIn instance.
|
OptionsIn.Builder |
setIntervalRangeInclusion(OptionsIn.IntervalRangeInclusion intervalRangeInclusion)
Sets the intervalRangeInclusion option.
|
OptionsIn.Builder |
setMaxReturnNodes(int maxReturnNodes)
Sets the maxReturnNodes option.
|
OptionsIn.Builder |
setRequestLatestValues(int numberOfValues)
Sets the requestLatestValues option.
|
OptionsIn.Builder |
setRequestObjectSelectionCapabability(OptionsIn.RequestObjectSelectionCapability requestObjectSelectionCapability)
Sets the requestObjectSelectionCapability option.
|
OptionsIn.Builder |
setRequestPrivateGroupOnly(boolean requestPrivateGroupOnly)
Sets the requestPrivateGroupOnly option.
|
OptionsIn.Builder |
setReturnElements(OptionsIn.ReturnElements returnElements)
Sets the returnElements option.
|
public OptionsIn.Builder setReturnElements(OptionsIn.ReturnElements returnElements)
returnElements
- The option type.public OptionsIn.Builder setMaxReturnNodes(int maxReturnNodes)
The server must support growing objects in order for this option to be valid.
The maxDataNodes and maxDataPoints server capabilities determines the upper limit of maxReturnNodes.
maxReturnNodes
- The maximum number of return nodes. Must be a positive
number.WitsmlServer.getServerCapabilities()
public OptionsIn.Builder setIntervalRangeInclusion(OptionsIn.IntervalRangeInclusion intervalRangeInclusion)
intervalRangeInclusion
- Type of interval range inclusion.public OptionsIn.Builder setRequestObjectSelectionCapabability(OptionsIn.RequestObjectSelectionCapability requestObjectSelectionCapability)
requestObjectSelectionCapability
- Type of request object selection capability.public OptionsIn.Builder setRequestPrivateGroupOnly(boolean requestPrivateGroupOnly)
requestPrivateGroupOnly
- Whether or not to to query objects that have
the field privateGroupOnly set in the common
data.public OptionsIn.Builder setRequestLatestValues(int numberOfValues)
The maximum numberOfValues is limited to the maxRequestLatestValues in the
server capabilities WitsmlServer.getServerCapabilities()
.
numberOfValues
- Number of values to request.public OptionsIn build() throws IllegalStateException
IllegalStateException
- When invalid values are detected in one or more
options.Copyright © 2023 Petroware AS - https://petroware.no