Class TransportPreferences


  • public final class TransportPreferences
    extends Object
    Preferences related to the shipment logistics of the sku.
    • Constructor Detail

      • TransportPreferences

        public TransportPreferences()
    • Method Detail

      • preferredShipmentType

        public TransportShipmentTypes preferredShipmentType()
        Get the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.
        Returns:
        the preferredShipmentType value.
      • withPreferredShipmentType

        public TransportPreferences withPreferredShipmentType​(TransportShipmentTypes preferredShipmentType)
        Set the preferredShipmentType property: Indicates Shipment Logistics type that the customer preferred.
        Parameters:
        preferredShipmentType - the preferredShipmentType value to set.
        Returns:
        the TransportPreferences object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.