Package com.atlassian.bamboo.docker
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessCommand.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessCommand.Builder
builder()
boolean
equals(Object o)
@NotNull List<String>
getCommandList()
Get the command as a List.@NotNull String
getSafeCommandString()
Get the command as a String replacing all occurrences of the mask value with a masked password String, e.g.int
hashCode()
-
-
-
Method Detail
-
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.
-
builder
public static ProcessCommand.Builder builder()
-
-