public static class CreateBatchOptions.Builder extends Object
Constructor and 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.
|
Modifier and Type | Method and 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.
|
public Builder()
public Builder(String function, InputStream inputCredentialsFile, String inputBucketLocation, String inputBucketName, InputStream outputCredentialsFile, String outputBucketLocation, String outputBucketName)
function
- the functioninputCredentialsFile
- the inputCredentialsFileinputBucketLocation
- the inputBucketLocationinputBucketName
- the inputBucketNameoutputCredentialsFile
- the outputCredentialsFileoutputBucketLocation
- the outputBucketLocationoutputBucketName
- the outputBucketNamepublic CreateBatchOptions build()
public CreateBatchOptions.Builder function(String function)
function
- the functionpublic CreateBatchOptions.Builder inputCredentialsFile(InputStream inputCredentialsFile)
inputCredentialsFile
- the inputCredentialsFilepublic CreateBatchOptions.Builder inputBucketLocation(String inputBucketLocation)
inputBucketLocation
- the inputBucketLocationpublic CreateBatchOptions.Builder inputBucketName(String inputBucketName)
inputBucketName
- the inputBucketNamepublic CreateBatchOptions.Builder outputCredentialsFile(InputStream outputCredentialsFile)
outputCredentialsFile
- the outputCredentialsFilepublic CreateBatchOptions.Builder outputBucketLocation(String outputBucketLocation)
outputBucketLocation
- the outputBucketLocationpublic CreateBatchOptions.Builder outputBucketName(String outputBucketName)
outputBucketName
- the outputBucketNamepublic CreateBatchOptions.Builder model(String model)
model
- the modelpublic CreateBatchOptions.Builder inputCredentialsFile(File inputCredentialsFile) throws FileNotFoundException
inputCredentialsFile
- the inputCredentialsFileFileNotFoundException
- if the file could not be foundpublic CreateBatchOptions.Builder outputCredentialsFile(File outputCredentialsFile) throws FileNotFoundException
outputCredentialsFile
- the outputCredentialsFileFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.