/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.geo.model; import java.io.Serializable; /** *
* 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
.
*
* The total weight of the truck. *
*
* For example, 3500
.
*
* Constraints:
* Range: 0.0 -
*/
private Double total;
/**
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Constraints:
* Allowed Values: Kilograms, Pounds
*/
private String unit;
/**
*
* The total weight of the truck. *
*
* For example, 3500
.
*
* Constraints:
* Range: 0.0 -
*
* @return
* The total weight of the truck. *
*
* For example, 3500
.
*
* The total weight of the truck. *
*
* For example, 3500
.
*
* Constraints:
* Range: 0.0 -
*
* @param total
* The total weight of the truck. *
*
* For example, 3500
.
*
* The total weight of the truck. *
*
* For example, 3500
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 0.0 -
*
* @param total
* The total weight of the truck. *
*
* For example, 3500
.
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Constraints:
* Allowed Values: Kilograms, Pounds
*
* @return
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Constraints:
* Allowed Values: Kilograms, Pounds
*
* @param unit
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: Kilograms, Pounds
*
* @param unit
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Constraints:
* Allowed Values: Kilograms, Pounds
*
* @param unit
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: Kilograms, Pounds
*
* @param unit
* The unit of measurement to use for the truck weight. *
*
* Default Value: Kilograms
*