Class CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.WebCrawlerBasicAuthenticationProperty>
- Enclosing interface:
CfnDataSource.WebCrawlerBasicAuthenticationProperty
@Stability(Stable)
public static final class CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.WebCrawlerBasicAuthenticationProperty>
A builder for
CfnDataSource.WebCrawlerBasicAuthenticationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.credentials
(String credentials) Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getCredentials()
Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getHost()
Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentials
@Stability(Stable) public CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder credentials(String credentials) Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getCredentials()
- Parameters:
credentials
- Your secret ARN, which you can create in AWS Secrets Manager. This parameter is required. You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.- Returns:
this
-
host
@Stability(Stable) public CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder host(String host) Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getHost()
- Parameters:
host
- The name of the website host you want to connect to using authentication credentials. This parameter is required. For example, the host name of https://a.example.com/page1.html is "a.example.com".- Returns:
this
-
port
@Stability(Stable) public CfnDataSource.WebCrawlerBasicAuthenticationProperty.Builder port(Number port) Sets the value ofCfnDataSource.WebCrawlerBasicAuthenticationProperty.getPort()
- Parameters:
port
- The port number of the website host you want to connect to using authentication credentials. This parameter is required. For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.WebCrawlerBasicAuthenticationProperty>
- Returns:
- a new instance of
CfnDataSource.WebCrawlerBasicAuthenticationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-