public Observable<ServiceResponse<Page<ActivityInner>>> listByModuleSinglePageAsync(final String resourceGroupName, final String automationAccountName, final String moduleName) {
        if (resourceGroupName == null) {
            throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
        }
        if (automationAccountName == null) {
            throw new IllegalArgumentException("Parameter automationAccountName is required and cannot be null.");
        }
        if (moduleName == null) {
            throw new IllegalArgumentException("Parameter moduleName is required and cannot be null.");
        }
        if (this.client.subscriptionId() == null) {
            throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
        }
        final String apiVersion = "2015-10-31";
        return service.listByModule(resourceGroupName, automationAccountName, moduleName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<ActivityInner>>>>() {
                @Override
                public Observable<ServiceResponse<Page<ActivityInner>>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<PageImpl<ActivityInner>> result = listByModuleDelegate(response);
                        return Observable.just(new ServiceResponse<Page<ActivityInner>>(result.body(), result.response()));
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < Page < ActivityInner > > > listByModuleSinglePageAsync ( final String resourceGroupName , final String automationAccountName , final String moduleName ) { if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( automationAccountName == null ) { throw new IllegalArgumentException ( "Parameter automationAccountName is required and cannot be null." ) ; } if ( moduleName == null ) { throw new IllegalArgumentException ( "Parameter moduleName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } final String apiVersion = "2015-10-31" ; return service . listByModule ( resourceGroupName , automationAccountName , moduleName , this . client . subscriptionId ( ) , apiVersion , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < Page < ActivityInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < ActivityInner > > > call ( Response < ResponseBody > response ) { try { ServiceResponse < PageImpl < ActivityInner > > result = listByModuleDelegate ( response ) ; return Observable . just ( new ServiceResponse < Page < ActivityInner > > ( result . body ( ) , result . response ( ) ) ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Retrieve a list of activities in the module identified by module name.

ServiceResponse<PageImpl<ActivityInner>> * @param resourceGroupName Name of an Azure Resource group.
ServiceResponse<PageImpl<ActivityInner>> * @param automationAccountName The name of the automation account.
ServiceResponse<PageImpl<ActivityInner>> * @param moduleName The name of module.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the PagedList&lt;ActivityInner&gt; object wrapped in {@link ServiceResponse} if successful.