Class CreateBatchOptions.Builder

java.lang.Object
com.ibm.watson.compare_comply.v1.model.CreateBatchOptions.Builder
Enclosing class:
CreateBatchOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String function, InputStream inputCredentialsFile, String inputBucketLocation, String inputBucketName, InputStream outputCredentialsFile, String outputBucketLocation, String outputBucketName)
      Instantiates a new builder with required properties.
      Parameters:
      function - the function
      inputCredentialsFile - the inputCredentialsFile
      inputBucketLocation - the inputBucketLocation
      inputBucketName - the inputBucketName
      outputCredentialsFile - the outputCredentialsFile
      outputBucketLocation - the outputBucketLocation
      outputBucketName - the outputBucketName
  • Method Details

    • build

      public CreateBatchOptions build()
      Builds a CreateBatchOptions.
      Returns:
      the new CreateBatchOptions instance
    • function

      public CreateBatchOptions.Builder function​(String function)
      Set the function.
      Parameters:
      function - the function
      Returns:
      the CreateBatchOptions builder
    • inputCredentialsFile

      public CreateBatchOptions.Builder inputCredentialsFile​(InputStream inputCredentialsFile)
      Set the inputCredentialsFile.
      Parameters:
      inputCredentialsFile - the inputCredentialsFile
      Returns:
      the CreateBatchOptions builder
    • inputBucketLocation

      public CreateBatchOptions.Builder inputBucketLocation​(String inputBucketLocation)
      Set the inputBucketLocation.
      Parameters:
      inputBucketLocation - the inputBucketLocation
      Returns:
      the CreateBatchOptions builder
    • inputBucketName

      public CreateBatchOptions.Builder inputBucketName​(String inputBucketName)
      Set the inputBucketName.
      Parameters:
      inputBucketName - the inputBucketName
      Returns:
      the CreateBatchOptions builder
    • outputCredentialsFile

      public CreateBatchOptions.Builder outputCredentialsFile​(InputStream outputCredentialsFile)
      Set the outputCredentialsFile.
      Parameters:
      outputCredentialsFile - the outputCredentialsFile
      Returns:
      the CreateBatchOptions builder
    • outputBucketLocation

      public CreateBatchOptions.Builder outputBucketLocation​(String outputBucketLocation)
      Set the outputBucketLocation.
      Parameters:
      outputBucketLocation - the outputBucketLocation
      Returns:
      the CreateBatchOptions builder
    • outputBucketName

      public CreateBatchOptions.Builder outputBucketName​(String outputBucketName)
      Set the outputBucketName.
      Parameters:
      outputBucketName - the outputBucketName
      Returns:
      the CreateBatchOptions builder
    • model

      public CreateBatchOptions.Builder model​(String model)
      Set the model.
      Parameters:
      model - the model
      Returns:
      the CreateBatchOptions builder
    • inputCredentialsFile

      public CreateBatchOptions.Builder inputCredentialsFile​(File inputCredentialsFile) throws FileNotFoundException
      Set the inputCredentialsFile.
      Parameters:
      inputCredentialsFile - the inputCredentialsFile
      Returns:
      the CreateBatchOptions builder
      Throws:
      FileNotFoundException - if the file could not be found
    • outputCredentialsFile

      public CreateBatchOptions.Builder outputCredentialsFile​(File outputCredentialsFile) throws FileNotFoundException
      Set the outputCredentialsFile.
      Parameters:
      outputCredentialsFile - the outputCredentialsFile
      Returns:
      the CreateBatchOptions builder
      Throws:
      FileNotFoundException - if the file could not be found