Class TripSendProblemRequest
- java.lang.Object
-
- global.maplink.trip.schema.v2.problem.TripProblem
-
- global.maplink.trip.schema.v1.payload.TripSendProblemRequest
-
- All Implemented Interfaces:
MapLinkServiceRequest<TripSolutionId>,Validable
public class TripSendProblemRequest extends TripProblem implements MapLinkServiceRequest<TripSolutionId>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTripSendProblemRequest.TripSendProblemRequestBuilder
-
Field Summary
Fields Modifier and Type Field Description static StringPATH-
Fields inherited from class global.maplink.trip.schema.v2.problem.TripProblem
avoidanceBehavior, avoidanceTypes, calculationMode, crossedBorders, emission, freight, place, points, restrictionZones, toll, turnByTurn
-
-
Constructor Summary
Constructors Constructor Description TripSendProblemRequest()TripSendProblemRequest(List<SitePoint> points, CalculationMode calculationMode, Set<String> restrictionZones, Set<AvoidanceType> avoidanceTypes, AvoidanceBehavior avoidanceBehavior, TollRequest toll, CrossedBordersRequest crossedBorders, FreightCalculationRequest freight, EmissionRequest emission, PlaceRouteRequest place, TurnByTurnRequest turnByTurn, String clientId, String profileName, List<SpeedPreference> speedPreferences, VehicleSpecification vehicleSpecification, Callback callback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestasHttpRequest(Environment environment, JsonMapper mapper)static TripSendProblemRequest.TripSendProblemRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)CallbackgetCallback()StringgetClientId()StringgetProfileName()Function<Response,TripSolutionId>getResponseParser(JsonMapper mapper)List<SpeedPreference>getSpeedPreferences()VehicleSpecificationgetVehicleSpecification()inthashCode()StringtoString()List<ValidationViolation>validate()voidvalidateWithPoints()-
Methods inherited from class global.maplink.trip.schema.v2.problem.TripProblem
getAvoidanceBehavior, getAvoidanceTypes, getCalculationMode, getCrossedBorders, getEmission, getFreight, getPlace, getPoints, getRestrictionZones, getToll, getTurnByTurn
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface global.maplink.validations.Validable
throwIfInvalid
-
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TripSendProblemRequest
public TripSendProblemRequest(List<SitePoint> points, CalculationMode calculationMode, Set<String> restrictionZones, Set<AvoidanceType> avoidanceTypes, AvoidanceBehavior avoidanceBehavior, TollRequest toll, CrossedBordersRequest crossedBorders, FreightCalculationRequest freight, EmissionRequest emission, PlaceRouteRequest place, TurnByTurnRequest turnByTurn, String clientId, String profileName, List<SpeedPreference> speedPreferences, VehicleSpecification vehicleSpecification, Callback callback)
-
TripSendProblemRequest
public TripSendProblemRequest()
-
-
Method Detail
-
asHttpRequest
public Request asHttpRequest(Environment environment, JsonMapper mapper)
- Specified by:
asHttpRequestin interfaceMapLinkServiceRequest<TripSolutionId>
-
getResponseParser
public Function<Response,TripSolutionId> getResponseParser(JsonMapper mapper)
- Specified by:
getResponseParserin interfaceMapLinkServiceRequest<TripSolutionId>
-
validate
public List<ValidationViolation> validate()
- Specified by:
validatein interfaceMapLinkServiceRequest<TripSolutionId>- Specified by:
validatein interfaceValidable- Overrides:
validatein classTripProblem
-
validateWithPoints
public void validateWithPoints()
-
builder
public static TripSendProblemRequest.TripSendProblemRequestBuilder builder()
-
getClientId
public String getClientId()
-
getProfileName
public String getProfileName()
-
getSpeedPreferences
public List<SpeedPreference> getSpeedPreferences()
-
getVehicleSpecification
public VehicleSpecification getVehicleSpecification()
-
getCallback
public Callback getCallback()
-
toString
public String toString()
- Overrides:
toStringin classTripProblem
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classTripProblem
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classTripProblem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTripProblem
-
-