public static class PushBatchesOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String projectId,
String collectionId,
String batchId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
PushBatchesOptions.Builder |
batchId(String batchId)
Set the batchId.
|
PushBatchesOptions |
build()
Builds a PushBatchesOptions.
|
PushBatchesOptions.Builder |
collectionId(String collectionId)
Set the collectionId.
|
PushBatchesOptions.Builder |
file(File file)
Set the file.
|
PushBatchesOptions.Builder |
file(InputStream file)
Set the file.
|
PushBatchesOptions.Builder |
filename(String filename)
Set the filename.
|
PushBatchesOptions.Builder |
projectId(String projectId)
Set the projectId.
|
public PushBatchesOptions build()
public PushBatchesOptions.Builder projectId(String projectId)
projectId
- the projectIdpublic PushBatchesOptions.Builder collectionId(String collectionId)
collectionId
- the collectionIdpublic PushBatchesOptions.Builder batchId(String batchId)
batchId
- the batchIdpublic PushBatchesOptions.Builder file(InputStream file)
file
- the filepublic PushBatchesOptions.Builder filename(String filename)
filename
- the filenamepublic PushBatchesOptions.Builder file(File file) throws FileNotFoundException
file
- the fileFileNotFoundException
- if the file could not be foundCopyright © 2024 IBM Cloud. All rights reserved.