Class CouchbaseRemoteAnalyticsLink

java.lang.Object
com.couchbase.client.java.manager.analytics.link.AnalyticsLink
com.couchbase.client.java.manager.analytics.link.CouchbaseRemoteAnalyticsLink

public class CouchbaseRemoteAnalyticsLink extends AnalyticsLink
An analytics link to a remote couchbase cluster.
  • Constructor Details

  • Method Details

    • type

      public AnalyticsLinkType type()
      Description copied from class: AnalyticsLink
      Returns the type of the link.
      Specified by:
      type in class AnalyticsLink
      Returns:
      the type of the link.
    • hostname

      public String hostname()
      Returns the hostname of the remote cluster.
      Returns:
      the hostname of the remote cluster.
    • hostname

      public CouchbaseRemoteAnalyticsLink hostname(String hostname)
      Sets the hostname of the remote cluster (required).
      Parameters:
      hostname - the hostname of the remote cluster.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • encryption

      Returns the encryption level for the link to the remote cluster.
      Returns:
      the encryption level for the link to the remote cluster.
    • encryption

      Sets the encryption level for the link to the remote cluster (required).
      Parameters:
      encryption - the encryption level for the link to the remote cluster.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • username

      public String username()
      Returns the username when connecting to the remote cluster.
      Returns:
      the username when connecting to the remote cluster.
    • username

      public CouchbaseRemoteAnalyticsLink username(String username)
      Sets the username when connecting to the remote cluster (required).
      Parameters:
      username - the username when connecting to the remote cluster.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • password

      public String password()
      Sets the password when connecting to the remote cluster.
      Returns:
      the password when connecting to the remote cluster.
    • password

      public CouchbaseRemoteAnalyticsLink password(String password)
      Sets the password when connecting to the remote cluster (required).
      Parameters:
      password - the password when connecting to the remote cluster.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • certificate

      public String certificate()
      Returns the certificate when encryption is used.
      Returns:
      the certificate when encryption is used.
    • certificate

      public CouchbaseRemoteAnalyticsLink certificate(String certificate)
      Sets the certificate when encryption is used.
      Parameters:
      certificate - the certificate when encryption is used.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • clientCertificate

      public String clientCertificate()
      Returns the client certificate when encryption is used.
      Returns:
      the client certificate when encryption is used.
    • clientCertificate

      public CouchbaseRemoteAnalyticsLink clientCertificate(String clientCertificate)
      Sets the client certificate when encryption is used.
      Parameters:
      clientCertificate - the client certificate when encryption is used.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • clientKey

      public String clientKey()
      Returns the client key.
      Returns:
      the client key.
    • clientKey

      public CouchbaseRemoteAnalyticsLink clientKey(String clientKey)
      Sets the client key.
      Parameters:
      clientKey - the client key.
      Returns:
      this CouchbaseRemoteAnalyticsLink for chaining purposes.
    • toString

      public String toString()
      Overrides:
      toString in class Object