public class IncidentDetailsQueryBuilder extends java.lang.Object implements IIncidentDetailsQuery
IncidentDetailsQuery
objects.Constructor and Description |
---|
IncidentDetailsQueryBuilder(IncidentStyle style,
com.tomtom.online.sdk.common.location.BoundingBox boundingBox,
java.lang.Integer zoom,
java.lang.String trafficModelId) |
Modifier and Type | Method and Description |
---|---|
IncidentDetailsQuery |
build()
Creates new instance of
IncidentDetailsQuery |
static IncidentDetailsQueryBuilder |
create(IncidentStyle style,
com.tomtom.online.sdk.common.location.BoundingBox boundingBox,
java.lang.Integer zoom,
java.lang.String trafficModelId)
Builder used to create an instance of
IncidentDetailsQuery , once constructed, the user cannot change the field values |
IncidentDetailsQueryBuilder |
withExpandCluster(java.lang.Boolean expandCluster)
Sets whether a list of separate incidents should be added to clusters.
|
IncidentDetailsQueryBuilder |
withGeometryType(IncidentGeometryType geometryType)
Sets the type of vector geometry added to incidents
|
IncidentDetailsQueryBuilder |
withIncludeOriginalPosition(java.lang.Boolean includeOriginalPosition)
Sets whether the original position of the incident should be returned along with the one shifter to the
beginning of the traffic tube.
|
IncidentDetailsQueryBuilder |
withIsoLanguage(java.lang.String isoLanguage)
ISO 639-1 code for the output language.
|
IncidentDetailsQueryBuilder |
withLanguage(IncidentResponseLanguage language)
Sets the language to use in the response to created query.
|
public IncidentDetailsQueryBuilder(IncidentStyle style, com.tomtom.online.sdk.common.location.BoundingBox boundingBox, java.lang.Integer zoom, java.lang.String trafficModelId)
public IncidentDetailsQueryBuilder withLanguage(IncidentResponseLanguage language)
IIncidentDetailsQuery
withLanguage
in interface IIncidentDetailsQuery
language
- the language to use in the response to created querypublic IncidentDetailsQueryBuilder withGeometryType(IncidentGeometryType geometryType)
IIncidentDetailsQuery
withGeometryType
in interface IIncidentDetailsQuery
geometryType
- the type of vector geometry added to incidentspublic IncidentDetailsQueryBuilder withExpandCluster(java.lang.Boolean expandCluster)
IIncidentDetailsQuery
withExpandCluster
in interface IIncidentDetailsQuery
expandCluster
- if true, clusters will contain a list of incidents in addition to cluster datapublic IncidentDetailsQueryBuilder withIncludeOriginalPosition(java.lang.Boolean includeOriginalPosition)
IIncidentDetailsQuery
withIncludeOriginalPosition
in interface IIncidentDetailsQuery
includeOriginalPosition
- if true, the original position of the incident is included in the responsepublic IncidentDetailsQueryBuilder withIsoLanguage(java.lang.String isoLanguage)
IIncidentDetailsQuery
withIsoLanguage
in interface IIncidentDetailsQuery
isoLanguage
- the language to use in the response to created querypublic static IncidentDetailsQueryBuilder create(IncidentStyle style, com.tomtom.online.sdk.common.location.BoundingBox boundingBox, java.lang.Integer zoom, java.lang.String trafficModelId)
IncidentDetailsQuery
, once constructed, the user cannot change the field valuesIncidentDetailsQuery
to be used for further processingpublic IncidentDetailsQuery build()
IncidentDetailsQuery