Class CreateFieldMappingRequest.Builder
- java.lang.Object
-
- com.merge.api.resources.ticketing.fieldmapping.requests.CreateFieldMappingRequest.Builder
-
- All Implemented Interfaces:
CreateFieldMappingRequest._FinalStage,CreateFieldMappingRequest.CommonModelNameStage,CreateFieldMappingRequest.RemoteMethodStage,CreateFieldMappingRequest.RemoteUrlPathStage,CreateFieldMappingRequest.TargetFieldDescriptionStage,CreateFieldMappingRequest.TargetFieldNameStage
- Enclosing class:
- CreateFieldMappingRequest
public static final class CreateFieldMappingRequest.Builder extends java.lang.Object implements CreateFieldMappingRequest.TargetFieldNameStage, CreateFieldMappingRequest.TargetFieldDescriptionStage, CreateFieldMappingRequest.RemoteMethodStage, CreateFieldMappingRequest.RemoteUrlPathStage, CreateFieldMappingRequest.CommonModelNameStage, CreateFieldMappingRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFieldMappingRequest._FinalStageaddAllRemoteFieldTraversalPath(java.util.List<com.fasterxml.jackson.databind.JsonNode> remoteFieldTraversalPath)The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.CreateFieldMappingRequest._FinalStageaddRemoteFieldTraversalPath(com.fasterxml.jackson.databind.JsonNode remoteFieldTraversalPath)The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.CreateFieldMappingRequestbuild()CreateFieldMappingRequest._FinalStagecommonModelName(java.lang.String commonModelName)The name of the Common Model that the remote field corresponds to in a given category.CreateFieldMappingRequest.Builderfrom(CreateFieldMappingRequest other)CreateFieldMappingRequest._FinalStageremoteFieldTraversalPath(java.util.List<com.fasterxml.jackson.databind.JsonNode> remoteFieldTraversalPath)CreateFieldMappingRequest.RemoteUrlPathStageremoteMethod(java.lang.String remoteMethod)The method of the remote endpoint where the remote field is coming from.CreateFieldMappingRequest.CommonModelNameStageremoteUrlPath(java.lang.String remoteUrlPath)The path of the remote endpoint where the remote field is coming from.CreateFieldMappingRequest.RemoteMethodStagetargetFieldDescription(java.lang.String targetFieldDescription)The description of the target field you want this remote field to map to.CreateFieldMappingRequest.TargetFieldDescriptionStagetargetFieldName(java.lang.String targetFieldName)The name of the target field you want this remote field to map to.
-
-
-
Method Detail
-
from
public CreateFieldMappingRequest.Builder from(CreateFieldMappingRequest other)
- Specified by:
fromin interfaceCreateFieldMappingRequest.TargetFieldNameStage
-
targetFieldName
public CreateFieldMappingRequest.TargetFieldDescriptionStage targetFieldName(java.lang.String targetFieldName)
The name of the target field you want this remote field to map to.
- Specified by:
targetFieldNamein interfaceCreateFieldMappingRequest.TargetFieldNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
targetFieldDescription
public CreateFieldMappingRequest.RemoteMethodStage targetFieldDescription(java.lang.String targetFieldDescription)
The description of the target field you want this remote field to map to.
- Specified by:
targetFieldDescriptionin interfaceCreateFieldMappingRequest.TargetFieldDescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remoteMethod
public CreateFieldMappingRequest.RemoteUrlPathStage remoteMethod(java.lang.String remoteMethod)
The method of the remote endpoint where the remote field is coming from.
- Specified by:
remoteMethodin interfaceCreateFieldMappingRequest.RemoteMethodStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remoteUrlPath
public CreateFieldMappingRequest.CommonModelNameStage remoteUrlPath(java.lang.String remoteUrlPath)
The path of the remote endpoint where the remote field is coming from.
- Specified by:
remoteUrlPathin interfaceCreateFieldMappingRequest.RemoteUrlPathStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
commonModelName
public CreateFieldMappingRequest._FinalStage commonModelName(java.lang.String commonModelName)
The name of the Common Model that the remote field corresponds to in a given category.
- Specified by:
commonModelNamein interfaceCreateFieldMappingRequest.CommonModelNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllRemoteFieldTraversalPath
public CreateFieldMappingRequest._FinalStage addAllRemoteFieldTraversalPath(java.util.List<com.fasterxml.jackson.databind.JsonNode> remoteFieldTraversalPath)
The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.
- Specified by:
addAllRemoteFieldTraversalPathin interfaceCreateFieldMappingRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addRemoteFieldTraversalPath
public CreateFieldMappingRequest._FinalStage addRemoteFieldTraversalPath(com.fasterxml.jackson.databind.JsonNode remoteFieldTraversalPath)
The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.
- Specified by:
addRemoteFieldTraversalPathin interfaceCreateFieldMappingRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remoteFieldTraversalPath
public CreateFieldMappingRequest._FinalStage remoteFieldTraversalPath(java.util.List<com.fasterxml.jackson.databind.JsonNode> remoteFieldTraversalPath)
- Specified by:
remoteFieldTraversalPathin interfaceCreateFieldMappingRequest._FinalStage
-
build
public CreateFieldMappingRequest build()
- Specified by:
buildin interfaceCreateFieldMappingRequest._FinalStage
-
-