Class ProcessCommand

java.lang.Object
com.atlassian.bamboo.docker.ProcessCommand

@Immutable public class ProcessCommand extends Object
Represents an external process command. The optional mask value will be hidden when retrieving the "safe" String representation of the command.
  • Method Details

    • getCommandList

      @NotNull public @NotNull List<String> getCommandList()
      Get the command as a List. The exact command is returned without applying the mask.
      Returns:
      the unmasked command as a List
    • getSafeCommandString

      @NotNull public @NotNull String getSafeCommandString()
      Get the command as a String replacing all occurrences of the mask value with a masked password String, e.g. "********".
      Returns:
      the masked String representation of the command.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static ProcessCommand.Builder builder()