code: protected List<StreamingDistributionSummary> getAllExistingDistributions(String bucketName) {
  
          List<StreamingDistributionSummary> distListForBucket = new ArrayList<>();
  
          StreamingDistributionList distList =
              cfClient.listStreamingDistributions(new ListStreamingDistributionsRequest())
                      .getStreamingDistributionList();
  
          List<StreamingDistributionSummary> streamingDistList = distList.getItems();
          while (distList.isTruncated()) {
              distList = cfClient.listStreamingDistributions(
                  new ListStreamingDistributionsRequest().withMarker(distList.getNextMarker()))
                                 .getStreamingDistributionList();
              streamingDistList.addAll(distList.getItems());
          }
  
          for (StreamingDistributionSummary distSummary : streamingDistList) {
              if (isDistFromBucket(bucketName, distSummary)) {
                  distListForBucket.add(distSummary);
              }
          }
  
          return distListForBucket;
      }
docs: /*
  Determines if a streaming distribution already exists for a given bucket