Class ShipmentPickUpRequest
java.lang.Object
com.azure.resourcemanager.databox.models.ShipmentPickUpRequest
Shipment pick up request details.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendTime()
Get the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.Get the shipmentLocation property: Shipment Location in the pickup place.Get the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.void
validate()
Validates the instance.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.withShipmentLocation
(String shipmentLocation) Set the shipmentLocation property: Shipment Location in the pickup place.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.
-
Constructor Details
-
ShipmentPickUpRequest
public ShipmentPickUpRequest()Creates an instance of ShipmentPickUpRequest class.
-
-
Method Details
-
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:
- the startTime value.
-
withStartTime
Set the startTime property: Minimum date after which the pick up should commence, this must be in local time of pick up area.- Parameters:
startTime
- the startTime value to set.- Returns:
- the ShipmentPickUpRequest object itself.
-
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:
- the endTime value.
-
withEndTime
Set the endTime property: Maximum date before which the pick up should commence, this must be in local time of pick up area.- Parameters:
endTime
- the endTime value to set.- Returns:
- the ShipmentPickUpRequest object itself.
-
shipmentLocation
Get the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.- Returns:
- the shipmentLocation value.
-
withShipmentLocation
Set the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.- Parameters:
shipmentLocation
- the shipmentLocation value to set.- Returns:
- the ShipmentPickUpRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-