Class AwsRestHighLevelClient.Builder

  • Enclosing class:
    AwsRestHighLevelClient

    public static class AwsRestHighLevelClient.Builder
    extends Object
    A builder for the AwsRestHighLevelClient class.
    • 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.