public Waiter<GetQueueFleetAssociationRequest> queueFleetAssociationStopped() {

        return new WaiterBuilder<GetQueueFleetAssociationRequest, GetQueueFleetAssociationResult>()
                .withSdkFunction(new GetQueueFleetAssociationFunction(client)).withAcceptors(new QueueFleetAssociationStopped.IsSTOPPEDMatcher())
                .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(10)))
                .withExecutorService(executorService).build();
    }
Builds a QueueFleetAssociationStopped 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.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/waiters/AWSDeadlineWaiters.java