@ JsonIgnore public void setTag ( String key , String value ) { requireArgument ( key != null && ! key . trim ( ) . isEmpty ( ) , "Tag key cannot be null." ) ; requireArgument ( ! ReservedField . isReservedField ( key ) , "Tag is a reserved tag name." ) ; if ( value == null || value . isEmpty ( ) ) { _tags . remove ( key ) ; } else { _tags . put ( key , value ) ; } }
Sets a single tag for the query .