code: public Waiter<DescribeMLModelsRequest> mLModelAvailable() {
  
          return new WaiterBuilder<DescribeMLModelsRequest, DescribeMLModelsResult>().withSdkFunction(new DescribeMLModelsFunction(client))
                  .withAcceptors(new MLModelAvailable.IsCOMPLETEDMatcher(), new MLModelAvailable.IsFAILEDMatcher())
                  .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
                  .withExecutorService(executorService).build();
      }
docs: Builds a MLModelAvailable waiter by using custom parameters waiterParameters and other parameters defined in the
  waiters specification, and then polls until it determines whether the resource entered the desired state or not,
  where polling criteria is bound by either default polling strategy or custom polling strategy.