public static class PromptMetadata.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String promptText)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
PromptMetadata |
build()
Builds a PromptMetadata.
|
PromptMetadata.Builder |
promptText(String promptText)
Set the promptText.
|
PromptMetadata.Builder |
speakerId(String speakerId)
Set the speakerId.
|
public Builder()
public Builder(String promptText)
promptText
- the promptTextpublic PromptMetadata build()
public PromptMetadata.Builder promptText(String promptText)
promptText
- the promptTextpublic PromptMetadata.Builder speakerId(String speakerId)
speakerId
- the speakerIdCopyright © 2021 IBM Cloud. All rights reserved.