ShipmentPickUpRequest Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. ShipmentPickUpRequest
- com.
Implements
public final class ShipmentPickUpRequest
implements JsonSerializable<ShipmentPickUpRequest>
Shipment pick up request details.
Constructor Summary
| Constructor | Description |
|---|---|
| ShipmentPickUpRequest() |
Creates an instance of Shipment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
endTime()
Get the end |
|
static
Shipment |
fromJson(JsonReader jsonReader)
Reads an instance of Shipment |
| String |
shipmentLocation()
Get the shipment |
|
Offset |
startTime()
Get the start |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Shipment |
withEndTime(OffsetDateTime endTime)
Set the end |
|
Shipment |
withShipmentLocation(String shipmentLocation)
Set the shipment |
|
Shipment |
withStartTime(OffsetDateTime startTime)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
ShipmentPickUpRequest
public ShipmentPickUpRequest()
Creates an instance of ShipmentPickUpRequest class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.
Returns:
fromJson
public static ShipmentPickUpRequest fromJson(JsonReader jsonReader)
Reads an instance of ShipmentPickUpRequest from the JsonReader.
Parameters:
Returns:
Throws:
shipmentLocation
public String shipmentLocation()
Get the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndTime
public ShipmentPickUpRequest withEndTime(OffsetDateTime endTime)
Set the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.
Parameters:
Returns:
withShipmentLocation
public ShipmentPickUpRequest withShipmentLocation(String shipmentLocation)
Set the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.
Parameters:
Returns:
withStartTime
public ShipmentPickUpRequest withStartTime(OffsetDateTime startTime)
Set the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.
Parameters:
Returns: