All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kendra.model.Urls Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWSKendraFrontend module holds the client classes that are used for communicating with AWSKendraFrontend Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.kendra.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides the configuration information of the URLs to crawl. *

*

* You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). * If you receive an error when crawling a website, it could be that the website is blocked from crawling. *

*

* When selecting websites to index, you must adhere to the Amazon Acceptable * Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your * own web pages, or web pages that you have authorization to index. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Urls implements Serializable, Cloneable, StructuredPojo { /** *

* Configuration of the seed or starting point URLs of the websites you want to crawl. *

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the website * host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. *

*/ private SeedUrlConfiguration seedUrlConfiguration; /** *

* Configuration of the sitemap URLs of the websites you want to crawl. *

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. *

*/ private SiteMapsConfiguration siteMapsConfiguration; /** *

* Configuration of the seed or starting point URLs of the websites you want to crawl. *

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the website * host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. *

* * @param seedUrlConfiguration * Configuration of the seed or starting point URLs of the websites you want to crawl.

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the * website host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. */ public void setSeedUrlConfiguration(SeedUrlConfiguration seedUrlConfiguration) { this.seedUrlConfiguration = seedUrlConfiguration; } /** *

* Configuration of the seed or starting point URLs of the websites you want to crawl. *

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the website * host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. *

* * @return Configuration of the seed or starting point URLs of the websites you want to crawl.

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the * website host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. */ public SeedUrlConfiguration getSeedUrlConfiguration() { return this.seedUrlConfiguration; } /** *

* Configuration of the seed or starting point URLs of the websites you want to crawl. *

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the website * host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. *

* * @param seedUrlConfiguration * Configuration of the seed or starting point URLs of the websites you want to crawl.

*

* You can choose to crawl only the website host names, or the website host names with subdomains, or the * website host names with subdomains and other domains that the web pages link to. *

*

* You can list up to 100 seed URLs. * @return Returns a reference to this object so that method calls can be chained together. */ public Urls withSeedUrlConfiguration(SeedUrlConfiguration seedUrlConfiguration) { setSeedUrlConfiguration(seedUrlConfiguration); return this; } /** *

* Configuration of the sitemap URLs of the websites you want to crawl. *

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. *

* * @param siteMapsConfiguration * Configuration of the sitemap URLs of the websites you want to crawl.

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. */ public void setSiteMapsConfiguration(SiteMapsConfiguration siteMapsConfiguration) { this.siteMapsConfiguration = siteMapsConfiguration; } /** *

* Configuration of the sitemap URLs of the websites you want to crawl. *

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. *

* * @return Configuration of the sitemap URLs of the websites you want to crawl.

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. */ public SiteMapsConfiguration getSiteMapsConfiguration() { return this.siteMapsConfiguration; } /** *

* Configuration of the sitemap URLs of the websites you want to crawl. *

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. *

* * @param siteMapsConfiguration * Configuration of the sitemap URLs of the websites you want to crawl.

*

* Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs. * @return Returns a reference to this object so that method calls can be chained together. */ public Urls withSiteMapsConfiguration(SiteMapsConfiguration siteMapsConfiguration) { setSiteMapsConfiguration(siteMapsConfiguration); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSeedUrlConfiguration() != null) sb.append("SeedUrlConfiguration: ").append(getSeedUrlConfiguration()).append(","); if (getSiteMapsConfiguration() != null) sb.append("SiteMapsConfiguration: ").append(getSiteMapsConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Urls == false) return false; Urls other = (Urls) obj; if (other.getSeedUrlConfiguration() == null ^ this.getSeedUrlConfiguration() == null) return false; if (other.getSeedUrlConfiguration() != null && other.getSeedUrlConfiguration().equals(this.getSeedUrlConfiguration()) == false) return false; if (other.getSiteMapsConfiguration() == null ^ this.getSiteMapsConfiguration() == null) return false; if (other.getSiteMapsConfiguration() != null && other.getSiteMapsConfiguration().equals(this.getSiteMapsConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSeedUrlConfiguration() == null) ? 0 : getSeedUrlConfiguration().hashCode()); hashCode = prime * hashCode + ((getSiteMapsConfiguration() == null) ? 0 : getSiteMapsConfiguration().hashCode()); return hashCode; } @Override public Urls clone() { try { return (Urls) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.kendra.model.transform.UrlsMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy