public Waiter<DescribeDBSnapshotsRequest> dBSnapshotAvailable() {

        return new WaiterBuilder<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResult>()
                .withSdkFunction(new DescribeDBSnapshotsFunction(client))
                .withAcceptors(new DBSnapshotAvailable.IsAvailableMatcher(), new DBSnapshotAvailable.IsDeletedMatcher(),
                        new DBSnapshotAvailable.IsDeletingMatcher(), new DBSnapshotAvailable.IsFailedMatcher(),
                        new DBSnapshotAvailable.IsIncompatiblerestoreMatcher(), new DBSnapshotAvailable.IsIncompatibleparametersMatcher())
                .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
                .withExecutorService(executorService).build();
    }
public Waiter < DescribeDBSnapshotsRequest > dBSnapshotAvailable ( ) { return new WaiterBuilder < DescribeDBSnapshotsRequest , DescribeDBSnapshotsResult > ( ) . withSdkFunction ( new DescribeDBSnapshotsFunction ( client ) ) . withAcceptors ( new DBSnapshotAvailable . IsAvailableMatcher ( ) , new DBSnapshotAvailable . IsDeletedMatcher ( ) , new DBSnapshotAvailable . IsDeletingMatcher ( ) , new DBSnapshotAvailable . IsFailedMatcher ( ) , new DBSnapshotAvailable . IsIncompatiblerestoreMatcher ( ) , new DBSnapshotAvailable . IsIncompatibleparametersMatcher ( ) ) . withDefaultPollingStrategy ( new PollingStrategy ( new MaxAttemptsRetryStrategy ( 60 ) , new FixedDelayStrategy ( 30 ) ) ) . withExecutorService ( executorService ) . build ( ) ; }
Builds a DBSnapshotAvailable 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.