code: public Waiter objectNotExists() {
  
          return new WaiterBuilder<GetObjectMetadataRequest, ObjectMetadata>()
                  .withSdkFunction(new HeadObjectFunction(client))
                  .withAcceptors(
                          new HttpFailureStatusAcceptor(404, WaiterState.SUCCESS))
                  .withDefaultPollingStrategy(
                          new PollingStrategy(new MaxAttemptsRetryStrategy(20),
                                  new FixedDelayStrategy(5)))
                  .withExecutorService(executorService).build();
      }
docs: Builds a ObjectNotExists 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.