Class Tag


  • public final class Tag
    extends Object
    The tag resource.
    • Constructor Detail

      • Tag

        public Tag()
    • Method Detail

      • key

        public String key()
        Get the key property: Tag key.
        Returns:
        the key value.
      • withKey

        public Tag withKey​(String key)
        Set the key property: Tag key.
        Parameters:
        key - the key value to set.
        Returns:
        the Tag object itself.
      • value

        public List<String> value()
        Get the value property: Tag values.
        Returns:
        the value value.
      • withValue

        public Tag withValue​(List<String> value)
        Set the value property: Tag values.
        Parameters:
        value - the value value to set.
        Returns:
        the Tag object itself.
      • validate

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