All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mozafaq.extmergesort.IOLocation Maven / Gradle / Ivy

There is a newer version: 2.0.4.RELEASE
Show newest version
package com.mozafaq.extmergesort;

/**
 * @author Mozaffar Afaque
 */
public class IOLocation{
    private IOType ioType;
    private String s3Path;
    private String s3Region;
    private String fileSystemPath;
    private String objectName;

    private IOLocation() {

    }
    public static IOLocationBuilder newBuilder() {
        return new IOLocationBuilder();
    }

    public static class IOLocationBuilder {
        private IOLocationBuilder() {}

        private IOLocation ioLocation = new IOLocation();

        public IOLocationBuilder setIoType(IOType ioType) {
            ioLocation.ioType = ioType;
            return this;
        }

        public IOLocationBuilder setS3Path(String s3Path) {
            ioLocation.s3Path = s3Path;
            return this;
        }

        public IOLocationBuilder setFileSystemPath(String fileSystemPath) {
            ioLocation.fileSystemPath = fileSystemPath;
            return this;
        }

        public IOLocationBuilder setObjectName(String objectName) {
            ioLocation.objectName = objectName;
            return this;
        }

        public IOLocationBuilder setS3Region(String s3Region) {
            ioLocation.s3Region = s3Region;
            return this;
        }

        public IOLocation build() {
            IOLocation ioLocationTemp = ioLocation;
            ioLocation = new IOLocation();
            return ioLocationTemp;
        }
    }

    public IOType getIoType() {
        return ioType;
    }

    public String getS3Path() {
        return s3Path;
    }

    public String getFileSystemPath() {
        return fileSystemPath;
    }

    public String getObjectName() {
        return objectName;
    }

    public String getS3Region() {
        return s3Region;
    }


    @Override
    public String toString() {
        return "IOLocation{" +
                "ioType=" + ioType +
                ", s3Path='" + s3Path + '\'' +
                ", s3Region='" + s3Region + '\'' +
                ", fileSystemPath='" + fileSystemPath + '\'' +
                ", objectName='" + objectName + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy