AllocatedTransportUnit.java
/*
* Copyright 2005-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.openwms.wms.shipping.spi;
import org.openwms.core.units.api.Measurable;
import java.io.Serializable;
/**
* A AllocatedTransportUnit.
*
* @author Heiko Scherrer
*/
public class AllocatedTransportUnit implements Serializable {
private String transportUnitBK;
private String loadUnitPosition;
private String loadUnitPKey;
private String sku;
private Measurable qty;
private String reservationId;
private AllocatedTransportUnit(Builder builder) {
transportUnitBK = builder.transportUnitBK;
loadUnitPosition = builder.loadUnitPosition;
loadUnitPKey = builder.loadUnitPKey;
sku = builder.sku;
qty = builder.qty;
reservationId = builder.reservationId;
}
public static Builder newBuilder() {
return new Builder();
}
public String getTransportUnitBK() {
return transportUnitBK;
}
public String getLoadUnitPosition() {
return loadUnitPosition;
}
public String getLoadUnitPKey() {
return loadUnitPKey;
}
public String getSku() {
return sku;
}
public Measurable getQty() {
return qty;
}
public String getReservationId() {
return reservationId;
}
public static final class Builder {
private String transportUnitBK;
private String loadUnitPosition;
private String loadUnitPKey;
private String sku;
private Measurable qty;
private String reservationId;
private Builder() {
}
public Builder transportUnitBK(String val) {
transportUnitBK = val;
return this;
}
public Builder loadUnitPosition(String val) {
loadUnitPosition = val;
return this;
}
public Builder loadUnitPKey(String val) {
loadUnitPKey = val;
return this;
}
public Builder sku(String val) {
sku = val;
return this;
}
public Builder qty(Measurable val) {
qty = val;
return this;
}
public Builder reservationId(String val) {
reservationId = val;
return this;
}
public AllocatedTransportUnit build() {
return new AllocatedTransportUnit(this);
}
}
}