public Observable<ServiceResponse<UUID>> createRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateRegexEntityRoleOptionalParameter createRegexEntityRoleOptionalParameter) {
        if (this.client.endpoint() == null) {
            throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
        }
        if (appId == null) {
            throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
        }
        if (versionId == null) {
            throw new IllegalArgumentException("Parameter versionId is required and cannot be null.");
        }
        if (entityId == null) {
            throw new IllegalArgumentException("Parameter entityId is required and cannot be null.");
        }
        final String name = createRegexEntityRoleOptionalParameter != null ? createRegexEntityRoleOptionalParameter.name() : null;

        return createRegexEntityRoleWithServiceResponseAsync(appId, versionId, entityId, name);
    }
public Observable < ServiceResponse < UUID > > createRegexEntityRoleWithServiceResponseAsync ( UUID appId , String versionId , UUID entityId , CreateRegexEntityRoleOptionalParameter createRegexEntityRoleOptionalParameter ) { if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgumentException ( "Parameter versionId is required and cannot be null." ) ; } if ( entityId == null ) { throw new IllegalArgumentException ( "Parameter entityId is required and cannot be null." ) ; } final String name = createRegexEntityRoleOptionalParameter != null ? createRegexEntityRoleOptionalParameter . name ( ) : null ; return createRegexEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , name ) ; }
Create an entity role for an entity in the application.

@param appId The application ID.
@param versionId The version ID.
@param entityId The entity model ID.
@param createRegexEntityRoleOptionalParameter the object representing the optional parameters to be set before calling this API
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the UUID object