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

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

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

import static com.google.common.base.Preconditions.checkNotNull;

import java.util.List;

import com.github.dockerjava.api.command.SearchImagesCmd;
import com.github.dockerjava.api.model.SearchItem;

/**
 * Search images
 *
 * @param term - search term
 *
 */
public class SearchImagesCmdImpl extends AbstrDockerCmd> implements SearchImagesCmd  {

	private String term;

	public SearchImagesCmdImpl(SearchImagesCmd.Exec exec, String term) {
		super(exec);
		withTerm(term);
	}

    @Override
	public String getTerm() {
        return term;
    }

    @Override
	public SearchImagesCmd withTerm(String term) {
		checkNotNull(term, "term was not specified");
		this.term = term;
		return this;
	}

    @Override
    public String toString() {
        return new StringBuilder("search ")
            .append(term)
            .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy