Class UpdateCredentialsOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String environmentId, String credentialId)
      Instantiates a new builder with required properties.
      Parameters:
      environmentId - the environmentId
      credentialId - the credentialId
  • Method Details

    • build

      public UpdateCredentialsOptions build()
      Builds a UpdateCredentialsOptions.
      Returns:
      the new UpdateCredentialsOptions instance
    • environmentId

      public UpdateCredentialsOptions.Builder environmentId​(String environmentId)
      Set the environmentId.
      Parameters:
      environmentId - the environmentId
      Returns:
      the UpdateCredentialsOptions builder
    • credentialId

      public UpdateCredentialsOptions.Builder credentialId​(String credentialId)
      Set the credentialId.
      Parameters:
      credentialId - the credentialId
      Returns:
      the UpdateCredentialsOptions builder
    • sourceType

      public UpdateCredentialsOptions.Builder sourceType​(String sourceType)
      Set the sourceType.
      Parameters:
      sourceType - the sourceType
      Returns:
      the UpdateCredentialsOptions builder
    • credentialDetails

      public UpdateCredentialsOptions.Builder credentialDetails​(CredentialDetails credentialDetails)
      Set the credentialDetails.
      Parameters:
      credentialDetails - the credentialDetails
      Returns:
      the UpdateCredentialsOptions builder
    • status

      public UpdateCredentialsOptions.Builder status​(String status)
      Set the status.
      Parameters:
      status - the status
      Returns:
      the UpdateCredentialsOptions builder
    • credentials

      public UpdateCredentialsOptions.Builder credentials​(Credentials credentials)
      Set the credentials.
      Parameters:
      credentials - the credentials
      Returns:
      the UpdateCredentialsOptions builder