Class PatchOperation.Builder
- java.lang.Object
-
- com.courier.api.resources.users.tokens.types.PatchOperation.Builder
-
- All Implemented Interfaces:
PatchOperation._FinalStage,PatchOperation.OpStage,PatchOperation.PathStage
- Enclosing class:
- PatchOperation
public static final class PatchOperation.Builder extends java.lang.Object implements PatchOperation.OpStage, PatchOperation.PathStage, PatchOperation._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchOperationbuild()PatchOperation.Builderfrom(PatchOperation other)PatchOperation.PathStageop(java.lang.String op)The operation to perform.PatchOperation._FinalStagepath(java.lang.String path)The JSON path specifying the part of the profile to operate on.PatchOperation._FinalStagevalue(java.lang.String value)The value for the operation.PatchOperation._FinalStagevalue(java.util.Optional<java.lang.String> value)
-
-
-
Method Detail
-
from
public PatchOperation.Builder from(PatchOperation other)
- Specified by:
fromin interfacePatchOperation.OpStage
-
op
public PatchOperation.PathStage op(java.lang.String op)
The operation to perform.
- Specified by:
opin interfacePatchOperation.OpStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
path
public PatchOperation._FinalStage path(java.lang.String path)
The JSON path specifying the part of the profile to operate on.
- Specified by:
pathin interfacePatchOperation.PathStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public PatchOperation._FinalStage value(java.lang.String value)
The value for the operation.
- Specified by:
valuein interfacePatchOperation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public PatchOperation._FinalStage value(java.util.Optional<java.lang.String> value)
- Specified by:
valuein interfacePatchOperation._FinalStage
-
build
public PatchOperation build()
- Specified by:
buildin interfacePatchOperation._FinalStage
-
-