code: public String performTask(String taskParameters) {
          GetHlsUrlTaskParameters taskParams = GetHlsUrlTaskParameters.deserialize(taskParameters);
  
          String spaceId = taskParams.getSpaceId();
          String contentId = taskParams.getContentId();
  
          log.info("Performing " + TASK_NAME + " task with parameters: spaceId=" + spaceId +
                   ", contentId=" + contentId);
  
          // Will throw if bucket does not exist
          String bucketName = unwrappedS3Provider.getBucketName(spaceId);
          GetUrlTaskResult taskResult = new GetUrlTaskResult();
  
          // Ensure that streaming service is on
          checkThatStreamingServiceIsEnabled(spaceId, TASK_NAME);
  
          // Retrieve the existing distribution for the given space
          DistributionSummary existingDist = getExistingDistribution(bucketName);
          if (null == existingDist) {
              throw new UnsupportedTaskException(TASK_NAME,
                                                 "The " + TASK_NAME + " task can only be used after a space has " +
                                                 "been configured to enable HLS streaming. Use " +
                                                 StorageTaskConstants.ENABLE_HLS_TASK_NAME +
                                                 " to enable HLS streaming on this space.");
          }
          String domainName = existingDist.getDomainName();
  
          taskResult.setStreamUrl("https://" + domainName + "/" + contentId);
  
          String toReturn = taskResult.serialize();
          log.info("Result of " + TASK_NAME + " task: " + toReturn);
          return toReturn;
      }
docs: Build URL