class DhisResourceId implements Serializable {

    public static boolean isValidId( @Nullable String id )
    {
        if ( id == null )
        {
            return false;
        }

        return ID_PATTERN.matcher( id ).matches();
    }

    @JsonCreator public  DhisResourceId( @JsonProperty( "type" ) @Nonnull DhisResourceType type, @JsonProperty( "id" ) @Nonnull String id );

}