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

com.github.dockerjava.core.command.InspectExecCmdImpl Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
package com.github.dockerjava.core.command;

import com.github.dockerjava.api.command.InspectExecCmd;
import com.github.dockerjava.api.command.InspectExecResponse;
import com.github.dockerjava.api.exception.NotFoundException;
import com.google.common.base.Preconditions;

public class InspectExecCmdImpl extends AbstrDockerCmd implements InspectExecCmd {
    private String execId;

    public InspectExecCmdImpl(InspectExecCmd.Exec execution, String execId) {
        super(execution);
        withExecId(execId);
    }

    @Override
    public String getExecId() {
        return execId;
    }

    @Override
    public InspectExecCmd withExecId(String execId) {
        Preconditions.checkNotNull(execId, "execId was not specified");
        this.execId = execId;
        return this;
    }

    /**
     * @throws NotFoundException
     *             No such exec
     */
    @Override
    public InspectExecResponse exec() throws NotFoundException {
        return super.exec();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy