Class CredentialDetails.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.CredentialDetails.Builder
Enclosing class:
CredentialDetails

public static class CredentialDetails.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public CredentialDetails build()
      Builds a CredentialDetails.
      Returns:
      the new CredentialDetails instance
    • credentialType

      public CredentialDetails.Builder credentialType​(String credentialType)
      Set the credentialType.
      Parameters:
      credentialType - the credentialType
      Returns:
      the CredentialDetails builder
    • clientId

      public CredentialDetails.Builder clientId​(String clientId)
      Set the clientId.
      Parameters:
      clientId - the clientId
      Returns:
      the CredentialDetails builder
    • enterpriseId

      public CredentialDetails.Builder enterpriseId​(String enterpriseId)
      Set the enterpriseId.
      Parameters:
      enterpriseId - the enterpriseId
      Returns:
      the CredentialDetails builder
    • url

      public CredentialDetails.Builder url​(String url)
      Set the url.
      Parameters:
      url - the url
      Returns:
      the CredentialDetails builder
    • username

      public CredentialDetails.Builder username​(String username)
      Set the username.
      Parameters:
      username - the username
      Returns:
      the CredentialDetails builder
    • organizationUrl

      public CredentialDetails.Builder organizationUrl​(String organizationUrl)
      Set the organizationUrl.
      Parameters:
      organizationUrl - the organizationUrl
      Returns:
      the CredentialDetails builder
    • siteCollectionPath

      public CredentialDetails.Builder siteCollectionPath​(String siteCollectionPath)
      Set the siteCollectionPath.
      Parameters:
      siteCollectionPath - the siteCollectionPath
      Returns:
      the CredentialDetails builder
    • clientSecret

      public CredentialDetails.Builder clientSecret​(String clientSecret)
      Set the clientSecret.
      Parameters:
      clientSecret - the clientSecret
      Returns:
      the CredentialDetails builder
    • publicKeyId

      public CredentialDetails.Builder publicKeyId​(String publicKeyId)
      Set the publicKeyId.
      Parameters:
      publicKeyId - the publicKeyId
      Returns:
      the CredentialDetails builder
    • privateKey

      public CredentialDetails.Builder privateKey​(String privateKey)
      Set the privateKey.
      Parameters:
      privateKey - the privateKey
      Returns:
      the CredentialDetails builder
    • passphrase

      public CredentialDetails.Builder passphrase​(String passphrase)
      Set the passphrase.
      Parameters:
      passphrase - the passphrase
      Returns:
      the CredentialDetails builder
    • password

      public CredentialDetails.Builder password​(String password)
      Set the password.
      Parameters:
      password - the password
      Returns:
      the CredentialDetails builder
    • gatewayId

      public CredentialDetails.Builder gatewayId​(String gatewayId)
      Set the gatewayId.
      Parameters:
      gatewayId - the gatewayId
      Returns:
      the CredentialDetails builder
    • sourceVersion

      public CredentialDetails.Builder sourceVersion​(String sourceVersion)
      Set the sourceVersion.
      Parameters:
      sourceVersion - the sourceVersion
      Returns:
      the CredentialDetails builder
    • webApplicationUrl

      public CredentialDetails.Builder webApplicationUrl​(String webApplicationUrl)
      Set the webApplicationUrl.
      Parameters:
      webApplicationUrl - the webApplicationUrl
      Returns:
      the CredentialDetails builder
    • domain

      public CredentialDetails.Builder domain​(String domain)
      Set the domain.
      Parameters:
      domain - the domain
      Returns:
      the CredentialDetails builder
    • endpoint

      public CredentialDetails.Builder endpoint​(String endpoint)
      Set the endpoint.
      Parameters:
      endpoint - the endpoint
      Returns:
      the CredentialDetails builder
    • accessKeyId

      public CredentialDetails.Builder accessKeyId​(String accessKeyId)
      Set the accessKeyId.
      Parameters:
      accessKeyId - the accessKeyId
      Returns:
      the CredentialDetails builder
    • secretAccessKey

      public CredentialDetails.Builder secretAccessKey​(String secretAccessKey)
      Set the secretAccessKey.
      Parameters:
      secretAccessKey - the secretAccessKey
      Returns:
      the CredentialDetails builder