Class Operations.Builder

  • Enclosing class:
    Operations

    public static class Operations.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • op

        public Operations.Builder op​(Operations.Op op)
        Defines the operation to be performed for this Patch.

        If op=remove, value is not required.

        Parameters:
        op - the value to set
        Returns:
        this builder
      • path

        public 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

        Parameters:
        path - the value to set
        Returns:
        this builder
      • value

        public 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

        Parameters:
        value - the value to set
        Returns:
        this builder