PollingState < T > withStatus ( String status , int statusCode ) throws IllegalArgumentException { if ( status == null ) { throw new IllegalArgumentException ( "Status is null." ) ; } this . status = status ; this . statusCode = statusCode ; return this ; }
Sets the polling status .