Class Secret


  • public final class Secret
    extends Object
    Secret definition.
    • Constructor Detail

      • Secret

        public Secret()
    • Method Detail

      • name

        public String name()
        Get the name property: Secret Name.
        Returns:
        the name value.
      • withName

        public Secret withName​(String name)
        Set the name property: Secret Name.
        Parameters:
        name - the name value to set.
        Returns:
        the Secret object itself.
      • value

        public String value()
        Get the value property: Secret Value.
        Returns:
        the value value.
      • withValue

        public Secret withValue​(String value)
        Set the value property: Secret Value.
        Parameters:
        value - the value value to set.
        Returns:
        the Secret object itself.
      • validate

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