nl.lexemmens.podman.enumeration.TlsVerify Maven / Gradle / Ivy
package nl.lexemmens.podman.enumeration;
/**
*
* Enumeration that allows specifying the TlsVerify option to use when bulding, pushing or saving
* container images.
*
*
* Not specifying this explicitly will invoke default behavior (which defaults to true).
*
*/
public enum TlsVerify {
/**
* Default setting.
*/
NOT_SPECIFIED(""),
/**
* Explicitly sets tlsVerify to true
*/
TRUE("--tls-verify=true"),
/**
* Explicitly sets tlsVerifyt to false
*/
FALSE("--tls-verify=false");
private final String command;
/**
* Constructor.
*/
TlsVerify(String command) {
this.command = command;
}
/**
*
* Returns the corresponding TLS Verification command matching the selected value
*
*
* When the value is {@link TlsVerify#NOT_SPECIFIED} this method returns an empty String
*
*
* @return The corresponding command.
*/
public String getCommand() {
return command;
}
}