Class CreateCredentialsOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

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

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

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

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

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

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