Class AwsRestHighLevelClient.Builder
- java.lang.Object
-
- com.amazonaws.athena.connectors.elasticsearch.AwsRestHighLevelClient.Builder
-
- Enclosing class:
- AwsRestHighLevelClient
public static class AwsRestHighLevelClient.Builder extends Object
A builder for the AwsRestHighLevelClient class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsRestHighLevelClient
build()
Builds the client.AwsRestHighLevelClient.Builder
withCredentials(String username, String password)
Injects the client builder with username/password credentials.AwsRestHighLevelClient.Builder
withCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider)
Injects the client builder with AWS credentials.
-
-
-
Constructor Detail
-
Builder
public Builder(String endpoint)
A constructor for the client builder.- Parameters:
endpoint
- is the cluster's endpoint and is injected into the builder.
-
-
Method Detail
-
withCredentials
public AwsRestHighLevelClient.Builder withCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider)
Injects the client builder with AWS credentials.- Parameters:
credentialsProvider
- is the AWS credentials provider.- Returns:
- self.
-
withCredentials
public AwsRestHighLevelClient.Builder withCredentials(String username, String password)
Injects the client builder with username/password credentials.- Parameters:
username
- is the username used for the domain.password
- is the password used for the domain.- Returns:
- self.
-
build
public AwsRestHighLevelClient build()
Builds the client.- Returns:
- a new client injected with the builder.
-
-