Class Argument


  • public final class Argument
    extends Object
    The properties of a run argument.
    • Constructor Detail

      • Argument

        public Argument()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the argument.
        Returns:
        the name value.
      • withName

        public Argument withName​(String name)
        Set the name property: The name of the argument.
        Parameters:
        name - the name value to set.
        Returns:
        the Argument object itself.
      • value

        public String value()
        Get the value property: The value of the argument.
        Returns:
        the value value.
      • withValue

        public Argument withValue​(String value)
        Set the value property: The value of the argument.
        Parameters:
        value - the value value to set.
        Returns:
        the Argument object itself.
      • isSecret

        public Boolean isSecret()
        Get the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.
        Returns:
        the isSecret value.
      • withIsSecret

        public Argument withIsSecret​(Boolean isSecret)
        Set the isSecret property: Flag to indicate whether the argument represents a secret and want to be removed from build logs.
        Parameters:
        isSecret - the isSecret value to set.
        Returns:
        the Argument object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.