Class SourceOptionsWebCrawl.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.SourceOptionsWebCrawl.Builder
Enclosing class:
SourceOptionsWebCrawl

public static class SourceOptionsWebCrawl.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String url)
      Instantiates a new builder with required properties.
      Parameters:
      url - the url
  • Method Details

    • build

      public SourceOptionsWebCrawl build()
      Builds a SourceOptionsWebCrawl.
      Returns:
      the new SourceOptionsWebCrawl instance
    • addBlacklist

      public SourceOptionsWebCrawl.Builder addBlacklist​(String blacklist)
      Adds an blacklist to blacklist.
      Parameters:
      blacklist - the new blacklist
      Returns:
      the SourceOptionsWebCrawl builder
    • url

      Set the url.
      Parameters:
      url - the url
      Returns:
      the SourceOptionsWebCrawl builder
    • limitToStartingHosts

      public SourceOptionsWebCrawl.Builder limitToStartingHosts​(Boolean limitToStartingHosts)
      Set the limitToStartingHosts.
      Parameters:
      limitToStartingHosts - the limitToStartingHosts
      Returns:
      the SourceOptionsWebCrawl builder
    • crawlSpeed

      public SourceOptionsWebCrawl.Builder crawlSpeed​(String crawlSpeed)
      Set the crawlSpeed.
      Parameters:
      crawlSpeed - the crawlSpeed
      Returns:
      the SourceOptionsWebCrawl builder
    • allowUntrustedCertificate

      public SourceOptionsWebCrawl.Builder allowUntrustedCertificate​(Boolean allowUntrustedCertificate)
      Set the allowUntrustedCertificate.
      Parameters:
      allowUntrustedCertificate - the allowUntrustedCertificate
      Returns:
      the SourceOptionsWebCrawl builder
    • maximumHops

      public SourceOptionsWebCrawl.Builder maximumHops​(long maximumHops)
      Set the maximumHops.
      Parameters:
      maximumHops - the maximumHops
      Returns:
      the SourceOptionsWebCrawl builder
    • requestTimeout

      public SourceOptionsWebCrawl.Builder requestTimeout​(long requestTimeout)
      Set the requestTimeout.
      Parameters:
      requestTimeout - the requestTimeout
      Returns:
      the SourceOptionsWebCrawl builder
    • overrideRobotsTxt

      public SourceOptionsWebCrawl.Builder overrideRobotsTxt​(Boolean overrideRobotsTxt)
      Set the overrideRobotsTxt.
      Parameters:
      overrideRobotsTxt - the overrideRobotsTxt
      Returns:
      the SourceOptionsWebCrawl builder
    • blacklist

      public SourceOptionsWebCrawl.Builder blacklist​(List<String> blacklist)
      Set the blacklist. Existing blacklist will be replaced.
      Parameters:
      blacklist - the blacklist
      Returns:
      the SourceOptionsWebCrawl builder