Class Preferences


  • public final class Preferences
    extends Object
    Preferences related to the order.
    • Constructor Detail

      • Preferences

        public Preferences()
    • Method Detail

      • notificationPreferences

        public List<NotificationPreference> notificationPreferences()
        Get the notificationPreferences property: Notification preferences.
        Returns:
        the notificationPreferences value.
      • withNotificationPreferences

        public Preferences withNotificationPreferences​(List<NotificationPreference> notificationPreferences)
        Set the notificationPreferences property: Notification preferences.
        Parameters:
        notificationPreferences - the notificationPreferences value to set.
        Returns:
        the Preferences object itself.
      • transportPreferences

        public TransportPreferences transportPreferences()
        Get the transportPreferences property: Preferences related to the shipment logistics of the order.
        Returns:
        the transportPreferences value.
      • withTransportPreferences

        public Preferences withTransportPreferences​(TransportPreferences transportPreferences)
        Set the transportPreferences property: Preferences related to the shipment logistics of the order.
        Parameters:
        transportPreferences - the transportPreferences value to set.
        Returns:
        the Preferences object itself.
      • encryptionPreferences

        public EncryptionPreferences encryptionPreferences()
        Get the encryptionPreferences property: Preferences related to the Encryption.
        Returns:
        the encryptionPreferences value.
      • withEncryptionPreferences

        public Preferences withEncryptionPreferences​(EncryptionPreferences encryptionPreferences)
        Set the encryptionPreferences property: Preferences related to the Encryption.
        Parameters:
        encryptionPreferences - the encryptionPreferences value to set.
        Returns:
        the Preferences object itself.
      • managementResourcePreferences

        public ManagementResourcePreferences managementResourcePreferences()
        Get the managementResourcePreferences property: Preferences related to the Management resource.
        Returns:
        the managementResourcePreferences value.
      • withManagementResourcePreferences

        public Preferences withManagementResourcePreferences​(ManagementResourcePreferences managementResourcePreferences)
        Set the managementResourcePreferences property: Preferences related to the Management resource.
        Parameters:
        managementResourcePreferences - the managementResourcePreferences value to set.
        Returns:
        the Preferences object itself.
      • validate

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