public static class PatchInsertInstruction.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PatchInsertInstruction |
build() |
PatchInsertInstruction.Builder |
copy(PatchInsertInstruction model) |
PatchInsertInstruction.Builder |
position(PatchInsertInstruction.Position position)
Where to insert the value, relative to the first item matched by
selectedItem . |
PatchInsertInstruction.Builder |
selectedItem(String selectedItem)
A selection to be evaluated against the array for identifying a particular reference item
within it, with the same format and semantics as
selection . |
PatchInsertInstruction.Builder |
selection(String selection) |
PatchInsertInstruction.Builder |
value(Object value)
A value to be inserted into the target.
|
public PatchInsertInstruction.Builder selection(String selection)
public PatchInsertInstruction.Builder value(Object value)
A value to be inserted into the target.
value
- the value to setpublic PatchInsertInstruction.Builder selectedItem(String selectedItem)
A selection to be evaluated against the array for identifying a particular reference item
within it, with the same format and semantics as selection
.
selectedItem
- the value to setpublic PatchInsertInstruction.Builder position(PatchInsertInstruction.Position position)
Where to insert the value, relative to the first item matched by selectedItem
. If
selectedItem
is unspecified, then “BEFORE” specifies insertion at the first
position in an array and “AFTER” specifies insertion at the last position. If selectedItem
is specified but results in an empty selection, then both values specify
insertion at the last position.
position
- the value to setpublic PatchInsertInstruction build()
public PatchInsertInstruction.Builder copy(PatchInsertInstruction model)
Copyright © 2016–2024. All rights reserved.