Interface WaypointOptimizationWaypoint.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WaypointOptimizationWaypoint.Builder,,WaypointOptimizationWaypoint> SdkBuilder<WaypointOptimizationWaypoint.Builder,,WaypointOptimizationWaypoint> SdkPojo
- Enclosing class:
WaypointOptimizationWaypoint
-
Method Summary
Modifier and TypeMethodDescriptionaccessHours(Consumer<WaypointOptimizationAccessHours.Builder> accessHours) Access hours corresponding to when a waypoint can be visited.accessHours(WaypointOptimizationAccessHours accessHours) Access hours corresponding to when a waypoint can be visited.appointmentTime(String appointmentTime) Appointment time at the waypoint.Constraint defining what waypoints are to be visited after this waypoint.before(Collection<Integer> before) Constraint defining what waypoints are to be visited after this waypoint.GPS Heading at the position.The waypoint Id.Position defined as[longitude, latitude].position(Collection<Double> position) Position defined as[longitude, latitude].serviceDuration(Long serviceDuration) Service time spent at the waypoint.sideOfStreet(Consumer<WaypointOptimizationSideOfStreetOptions.Builder> sideOfStreet) Options to configure matching the provided position to a side of the street.sideOfStreet(WaypointOptimizationSideOfStreetOptions sideOfStreet) Options to configure matching the provided position to a side of the street.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
accessHours
Access hours corresponding to when a waypoint can be visited.
- Parameters:
accessHours- Access hours corresponding to when a waypoint can be visited.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessHours
default WaypointOptimizationWaypoint.Builder accessHours(Consumer<WaypointOptimizationAccessHours.Builder> accessHours) Access hours corresponding to when a waypoint can be visited.
This is a convenience method that creates an instance of theWaypointOptimizationAccessHours.Builderavoiding the need to create one manually viaWaypointOptimizationAccessHours.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessHours(WaypointOptimizationAccessHours).- Parameters:
accessHours- a consumer that will call methods onWaypointOptimizationAccessHours.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
appointmentTime
Appointment time at the waypoint.
- Parameters:
appointmentTime- Appointment time at the waypoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
before
Constraint defining what waypoints are to be visited after this waypoint.
- Parameters:
before- Constraint defining what waypoints are to be visited after this waypoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
before
Constraint defining what waypoints are to be visited after this waypoint.
- Parameters:
before- Constraint defining what waypoints are to be visited after this waypoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
heading
GPS Heading at the position.
- Parameters:
heading- GPS Heading at the position.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The waypoint Id.
- Parameters:
id- The waypoint Id.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Position defined as
[longitude, latitude].- Parameters:
position- Position defined as[longitude, latitude].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Position defined as
[longitude, latitude].- Parameters:
position- Position defined as[longitude, latitude].- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceDuration
Service time spent at the waypoint. At an appointment, the service time should be the appointment duration.
Unit:
seconds- Parameters:
serviceDuration- Service time spent at the waypoint. At an appointment, the service time should be the appointment duration.Unit:
seconds- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sideOfStreet
WaypointOptimizationWaypoint.Builder sideOfStreet(WaypointOptimizationSideOfStreetOptions sideOfStreet) Options to configure matching the provided position to a side of the street.
- Parameters:
sideOfStreet- Options to configure matching the provided position to a side of the street.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sideOfStreet
default WaypointOptimizationWaypoint.Builder sideOfStreet(Consumer<WaypointOptimizationSideOfStreetOptions.Builder> sideOfStreet) Options to configure matching the provided position to a side of the street.
This is a convenience method that creates an instance of theWaypointOptimizationSideOfStreetOptions.Builderavoiding the need to create one manually viaWaypointOptimizationSideOfStreetOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosideOfStreet(WaypointOptimizationSideOfStreetOptions).- Parameters:
sideOfStreet- a consumer that will call methods onWaypointOptimizationSideOfStreetOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-