@Generated(value="software.amazon.awssdk:codegen") public final class TruckWeight extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TruckWeight.Builder,TruckWeight>
Contains details about the truck's weight specifications. Used to avoid roads that can't support or allow the total
weight for requests that specify TravelMode as Truck.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TruckWeight.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TruckWeight.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TruckWeight.Builder> |
serializableBuilderClass() |
TruckWeight.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Double |
total()
The total weight of the truck.
|
VehicleWeightUnit |
unit()
The unit of measurement to use for the truck weight.
|
String |
unitAsString()
The unit of measurement to use for the truck weight.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Double total()
The total weight of the truck.
For example, 3500.
For example, 3500.
public final VehicleWeightUnit unit()
The unit of measurement to use for the truck weight.
Default Value: Kilograms
If the service returns an enum value that is not available in the current SDK version, unit will return
VehicleWeightUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Default Value: Kilograms
VehicleWeightUnitpublic final String unitAsString()
The unit of measurement to use for the truck weight.
Default Value: Kilograms
If the service returns an enum value that is not available in the current SDK version, unit will return
VehicleWeightUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
Default Value: Kilograms
VehicleWeightUnitpublic TruckWeight.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TruckWeight.Builder,TruckWeight>public static TruckWeight.Builder builder()
public static Class<? extends TruckWeight.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.