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 Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String function, InputStream inputCredentialsFile, String inputBucketLocation, String inputBucketName, InputStream outputCredentialsFile, String outputBucketLocation, String outputBucketName)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CreateBatchOptions
build()
Builds a CreateBatchOptions.CreateBatchOptions.Builder
function(String function)
Set the function.CreateBatchOptions.Builder
inputBucketLocation(String inputBucketLocation)
Set the inputBucketLocation.CreateBatchOptions.Builder
inputBucketName(String inputBucketName)
Set the inputBucketName.CreateBatchOptions.Builder
inputCredentialsFile(File inputCredentialsFile)
Set the inputCredentialsFile.CreateBatchOptions.Builder
inputCredentialsFile(InputStream inputCredentialsFile)
Set the inputCredentialsFile.CreateBatchOptions.Builder
model(String model)
Set the model.CreateBatchOptions.Builder
outputBucketLocation(String outputBucketLocation)
Set the outputBucketLocation.CreateBatchOptions.Builder
outputBucketName(String outputBucketName)
Set the outputBucketName.CreateBatchOptions.Builder
outputCredentialsFile(File outputCredentialsFile)
Set the outputCredentialsFile.CreateBatchOptions.Builder
outputCredentialsFile(InputStream outputCredentialsFile)
Set the outputCredentialsFile.
-
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 functioninputCredentialsFile
- the inputCredentialsFileinputBucketLocation
- the inputBucketLocationinputBucketName
- the inputBucketNameoutputCredentialsFile
- the outputCredentialsFileoutputBucketLocation
- the outputBucketLocationoutputBucketName
- the outputBucketName
-
-
Method Details
-
build
Builds a CreateBatchOptions.- Returns:
- the new CreateBatchOptions instance
-
function
Set the function.- Parameters:
function
- the function- Returns:
- the CreateBatchOptions builder
-
inputCredentialsFile
Set the inputCredentialsFile.- Parameters:
inputCredentialsFile
- the inputCredentialsFile- Returns:
- the CreateBatchOptions builder
-
inputBucketLocation
Set the inputBucketLocation.- Parameters:
inputBucketLocation
- the inputBucketLocation- Returns:
- the CreateBatchOptions builder
-
inputBucketName
Set the inputBucketName.- Parameters:
inputBucketName
- the inputBucketName- Returns:
- the CreateBatchOptions builder
-
outputCredentialsFile
Set the outputCredentialsFile.- Parameters:
outputCredentialsFile
- the outputCredentialsFile- Returns:
- the CreateBatchOptions builder
-
outputBucketLocation
Set the outputBucketLocation.- Parameters:
outputBucketLocation
- the outputBucketLocation- Returns:
- the CreateBatchOptions builder
-
outputBucketName
Set the outputBucketName.- Parameters:
outputBucketName
- the outputBucketName- Returns:
- the CreateBatchOptions builder
-
model
Set the model.- Parameters:
model
- the model- Returns:
- the CreateBatchOptions builder
-
inputCredentialsFile
public CreateBatchOptions.Builder inputCredentialsFile(File inputCredentialsFile) throws FileNotFoundExceptionSet 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 FileNotFoundExceptionSet the outputCredentialsFile.- Parameters:
outputCredentialsFile
- the outputCredentialsFile- Returns:
- the CreateBatchOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-