public static class AddCustomPromptOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String promptId,
PromptMetadata metadata,
InputStream file)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddCustomPromptOptions |
build()
Builds a AddCustomPromptOptions.
|
AddCustomPromptOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
AddCustomPromptOptions.Builder |
file(File file)
Set the file.
|
AddCustomPromptOptions.Builder |
file(InputStream file)
Set the file.
|
AddCustomPromptOptions.Builder |
metadata(PromptMetadata metadata)
Set the metadata.
|
AddCustomPromptOptions.Builder |
promptId(String promptId)
Set the promptId.
|
public Builder()
public Builder(String customizationId, String promptId, PromptMetadata metadata, InputStream file)
customizationId
- the customizationIdpromptId
- the promptIdmetadata
- the metadatafile
- the filepublic AddCustomPromptOptions build()
public AddCustomPromptOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddCustomPromptOptions.Builder promptId(String promptId)
promptId
- the promptIdpublic AddCustomPromptOptions.Builder metadata(PromptMetadata metadata)
metadata
- the metadatapublic AddCustomPromptOptions.Builder file(InputStream file)
file
- the filepublic AddCustomPromptOptions.Builder file(File file) throws FileNotFoundException
file
- the fileFileNotFoundException
- if the file could not be foundCopyright © 2022 IBM Cloud. All rights reserved.