package de.rwth.idsg.steve.web.dto.ocpp15; import de.rwth.idsg.steve.web.dto.common.SingleChargePointSelect; import de.rwth.idsg.steve.web.validation.IdTag; import lombok.Getter; import lombok.Setter; import org.hibernate.validator.constraints.NotBlank; import org.joda.time.LocalDateTime; import javax.validation.constraints.Future; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; /** * @author Sevket Goekay <goekay@dbis.rwth-aachen.de> * @since 02.01.2015 */ @Getter @Setter public class ReserveNowParams extends SingleChargePointSelect { @NotNull(message = "Connector ID is required") @Min(value = 1, message = "Connector ID must be at least {value}") private Integer connectorId; @NotNull(message = "Expiry Date/Time is required") @Future(message = "Expiry Date/Time must be in future") private LocalDateTime expiry; @NotBlank(message = "User ID Tag is required.") @IdTag private String idTag; }