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 Summary
-
Method Summary
Modifier and Type Method Description SourceOptionsWebCrawl.Builder
addBlacklist(String blacklist)
Adds an blacklist to blacklist.SourceOptionsWebCrawl.Builder
allowUntrustedCertificate(Boolean allowUntrustedCertificate)
Set the allowUntrustedCertificate.SourceOptionsWebCrawl.Builder
blacklist(List<String> blacklist)
Set the blacklist.SourceOptionsWebCrawl
build()
Builds a SourceOptionsWebCrawl.SourceOptionsWebCrawl.Builder
crawlSpeed(String crawlSpeed)
Set the crawlSpeed.SourceOptionsWebCrawl.Builder
limitToStartingHosts(Boolean limitToStartingHosts)
Set the limitToStartingHosts.SourceOptionsWebCrawl.Builder
maximumHops(long maximumHops)
Set the maximumHops.SourceOptionsWebCrawl.Builder
overrideRobotsTxt(Boolean overrideRobotsTxt)
Set the overrideRobotsTxt.SourceOptionsWebCrawl.Builder
requestTimeout(long requestTimeout)
Set the requestTimeout.SourceOptionsWebCrawl.Builder
url(String url)
Set the url.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
url
- the url
-
-
Method Details
-
build
Builds a SourceOptionsWebCrawl.- Returns:
- the new SourceOptionsWebCrawl instance
-
addBlacklist
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
Set the limitToStartingHosts.- Parameters:
limitToStartingHosts
- the limitToStartingHosts- Returns:
- the SourceOptionsWebCrawl builder
-
crawlSpeed
Set the crawlSpeed.- Parameters:
crawlSpeed
- the crawlSpeed- Returns:
- the SourceOptionsWebCrawl builder
-
allowUntrustedCertificate
Set the allowUntrustedCertificate.- Parameters:
allowUntrustedCertificate
- the allowUntrustedCertificate- Returns:
- the SourceOptionsWebCrawl builder
-
maximumHops
Set the maximumHops.- Parameters:
maximumHops
- the maximumHops- Returns:
- the SourceOptionsWebCrawl builder
-
requestTimeout
Set the requestTimeout.- Parameters:
requestTimeout
- the requestTimeout- Returns:
- the SourceOptionsWebCrawl builder
-
overrideRobotsTxt
Set the overrideRobotsTxt.- Parameters:
overrideRobotsTxt
- the overrideRobotsTxt- Returns:
- the SourceOptionsWebCrawl builder
-
blacklist
Set the blacklist. Existing blacklist will be replaced.- Parameters:
blacklist
- the blacklist- Returns:
- the SourceOptionsWebCrawl builder
-