Interface WaypointOptimizationWaypoint.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WaypointOptimizationWaypoint.Builder,WaypointOptimizationWaypoint>,SdkBuilder<WaypointOptimizationWaypoint.Builder,WaypointOptimizationWaypoint>,SdkPojo
- Enclosing class:
- WaypointOptimizationWaypoint
public static interface WaypointOptimizationWaypoint.Builder extends SdkPojo, CopyableBuilder<WaypointOptimizationWaypoint.Builder,WaypointOptimizationWaypoint>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default WaypointOptimizationWaypoint.BuilderaccessHours(Consumer<WaypointOptimizationAccessHours.Builder> accessHours)Access hours corresponding to when a waypoint can be visited.WaypointOptimizationWaypoint.BuilderaccessHours(WaypointOptimizationAccessHours accessHours)Access hours corresponding to when a waypoint can be visited.WaypointOptimizationWaypoint.BuilderappointmentTime(String appointmentTime)Appointment time at the waypoint.WaypointOptimizationWaypoint.Builderbefore(Integer... before)Constraint defining what waypoints are to be visited after this waypoint.WaypointOptimizationWaypoint.Builderbefore(Collection<Integer> before)Constraint defining what waypoints are to be visited after this waypoint.WaypointOptimizationWaypoint.Builderheading(Double heading)GPS Heading at the position.WaypointOptimizationWaypoint.Builderid(String id)The waypoint Id.WaypointOptimizationWaypoint.Builderposition(Double... position)Position defined as[longitude, latitude].WaypointOptimizationWaypoint.Builderposition(Collection<Double> position)Position defined as[longitude, latitude].WaypointOptimizationWaypoint.BuilderserviceDuration(Long serviceDuration)Service time spent at the waypoint.default WaypointOptimizationWaypoint.BuildersideOfStreet(Consumer<WaypointOptimizationSideOfStreetOptions.Builder> sideOfStreet)Options to configure matching the provided position to a side of the street.WaypointOptimizationWaypoint.BuildersideOfStreet(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
accessHours
WaypointOptimizationWaypoint.Builder accessHours(WaypointOptimizationAccessHours 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:
accessHours(WaypointOptimizationAccessHours)
-
appointmentTime
WaypointOptimizationWaypoint.Builder appointmentTime(String 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
WaypointOptimizationWaypoint.Builder before(Collection<Integer> 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
WaypointOptimizationWaypoint.Builder before(Integer... 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
WaypointOptimizationWaypoint.Builder heading(Double 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
WaypointOptimizationWaypoint.Builder id(String 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
WaypointOptimizationWaypoint.Builder position(Collection<Double> 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
WaypointOptimizationWaypoint.Builder position(Double... 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
WaypointOptimizationWaypoint.Builder serviceDuration(Long 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:
sideOfStreet(WaypointOptimizationSideOfStreetOptions)
-
-