public static class Operations.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Operations |
build() |
Operations.Builder |
copy(Operations model) |
Operations.Builder |
op(Operations.Op op)
Defines the operation to be performed for this Patch.
|
Operations.Builder |
path(String path)
String containing an attribute path describing the target of the operation.
|
Operations.Builder |
value(Object value)
The value could be either a simple value attribute e.g.
|
public Operations.Builder op(Operations.Op op)
Defines the operation to be performed for this Patch. If op=remove, value is not required.
op
- the value to setpublic Operations.Builder path(String path)
String containing an attribute path describing the target of the operation. The “path” attribute is OPTIONAL for “add” and “replace” and is REQUIRED for “remove” operations. See Section 3.5.2 for details
path
- the value to setpublic Operations.Builder value(Object value)
The value could be either a simple value attribute e.g. string or number OR complex like map of the attributes to be added or replaced OR multivalues complex attributes.q1
value
- the value to setpublic Operations build()
public Operations.Builder copy(Operations model)
Copyright © 2016–2024. All rights reserved.