LineStationRouteDto.java 1.36 KB
package com.bsth.controller.schedule.dto;

/**
 * 线路站点路由dto。
 */
public class LineStationRouteDto {
    /** 站点名字 */
    private String stationName;
    /** 站点编码 */
    private String stationCode;

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public LineStationRouteDto() {}
    public LineStationRouteDto(Builder builder) {
        this.stationName = builder.stationName;
        this.stationCode = builder.stationCode;
    }

    public static Builder getBuilder() {
        return new Builder();
    }
    public static class Builder {
        /** 站点名字 */
        private String stationName;
        /** 站点编码 */
        private String stationCode;

        public Builder setStationName(String stationName) {
            this.stationName = stationName;
            return this;
        }

        public Builder setStationCode(String stationCode) {
            this.stationCode = stationCode;
            return this;
        }

        public LineStationRouteDto build() {
            return new LineStationRouteDto(this);
        }
    }
}