code: public PatternRuleInfo addPattern(UUID appId, String versionId, PatternRuleCreateObject pattern) {
          return addPatternWithServiceResponseAsync(appId, versionId, pattern).toBlocking().single().body();
      }
docs: Adds one pattern to the specified application.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param pattern The input pattern.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PatternRuleInfo object if successful.