public static final class ParkingManager.ParkingBlockInfoOptions extends Object
Constructor and Description |
---|
ParkingBlockInfoOptions(ParkingBlock parkingBlock)
Initializes a new instance of the
ParkingManager.ParkingBlockInfoOptions class. |
Modifier and Type | Method and Description |
---|---|
ParkingManager.ParkingBlockInfoOptions |
setDuration(int... value)
Sets the duration of parking, in minutes.
|
ParkingManager.ParkingBlockInfoOptions |
setEntryTime(Date value)
Sets the date and time the user is expected to arrive at a parking lot.
|
ParkingManager.ParkingBlockInfoOptions |
setLimit(int limit)
Sets the maximum number of elements to return (for large response pagination).
|
ParkingManager.ParkingBlockInfoOptions |
setLocale(Locale locale)
Set the preferred locale for the language of the results.
|
ParkingManager.ParkingBlockInfoOptions |
setOffset(int offset)
Sets the starting index within requested collection (for pagination).
|
ParkingManager.ParkingBlockInfoOptions |
setOutputFields(int value)
Sets what parking lot information should be returned.
|
T |
setParkingType(int type)
Sets the requested parking types.
|
public ParkingBlockInfoOptions(ParkingBlock parkingBlock)
ParkingManager.ParkingBlockInfoOptions
class.parkingBlock
- The parking block for which to retrieve information.ParkingManager.ParkingManagerException
- Thrown when parkingLot
is null or invalid.public ParkingManager.ParkingBlockInfoOptions setEntryTime(Date value)
value
- The arrival date. The date cannot be set to date in the past.public ParkingManager.ParkingBlockInfoOptions setDuration(int... value)
value
- Duration of parking, in minutes. Multiple values are allowed.public ParkingManager.ParkingBlockInfoOptions setOutputFields(int value)
ParkingManager.PARKING_OUTPUT_FIELD_BASIC
.
Supported values are:
Fields can be combined. For instance, to return both basic information and pricing, use PARKING_OUTPUT_FIELD_BASIC | PARKING_OUTPUT_FIELD_PRICING.value
- Fields to return for parking lot information.public ParkingManager.ParkingBlockInfoOptions setLimit(int limit)
setParkingType(int)
set to both ParkingManager.PARKING_TYPE_PARKING_LOT
and
ParkingManager.PARKING_TYPE_PARKING_BLOCK
, count
is applied to each subset independently.
For instance, if count set to 10, response will return 10 parking lots and 10 parking blocks, if available.limit
- Current instance.public ParkingManager.ParkingBlockInfoOptions setOffset(int offset)
offset
- Offset index.public ParkingManager.ParkingBlockInfoOptions setLocale(Locale locale)
locale
- The locale or null
to use the default.public T setParkingType(int type)
ParkingManager.PARKING_TYPE_PARKING_LOT
.type
- Parking type.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.