Class ShipmentPickUpRequest

java.lang.Object
com.azure.resourcemanager.databox.models.ShipmentPickUpRequest

public final class ShipmentPickUpRequest extends Object
Shipment pick up request details.
  • Constructor Details

    • ShipmentPickUpRequest

      public ShipmentPickUpRequest()
      Creates an instance of ShipmentPickUpRequest class.
  • Method Details

    • 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:
      the startTime value.
    • 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:
      startTime - the startTime value to set.
      Returns:
      the ShipmentPickUpRequest object itself.
    • 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:
      the endTime value.
    • 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:
      endTime - the endTime value to set.
      Returns:
      the ShipmentPickUpRequest object itself.
    • shipmentLocation

      public String shipmentLocation()
      Get the shipmentLocation property: Shipment Location in the pickup place. Eg.front desk.
      Returns:
      the shipmentLocation value.
    • withShipmentLocation

      public ShipmentPickUpRequest withShipmentLocation(String shipmentLocation)
      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.