@Generated(value="software.amazon.awssdk:codegen") public final class LegGeometry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LegGeometry.Builder,LegGeometry>
Contains the geometry details for each path between a pair of positions. Used in plotting a route leg on a map.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LegGeometry.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LegGeometry.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLineString()
Returns true if the LineString property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<List<Double>> |
lineString()
An ordered list of positions used to plot a route on a map.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LegGeometry.Builder> |
serializableBuilderClass() |
LegGeometry.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasLineString()
public final List<List<Double>> lineString()
An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLineString() to see if a value was sent in this field.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
public LegGeometry.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LegGeometry.Builder,LegGeometry>public static LegGeometry.Builder builder()
public static Class<? extends LegGeometry.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.