@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TextPromptTemplateConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains configurations for a text prompt template. To include a variable, enclose a word in double curly braces as
in {{variable}}
.
Constructor and Description |
---|
TextPromptTemplateConfiguration() |
Modifier and Type | Method and Description |
---|---|
TextPromptTemplateConfiguration |
clone() |
boolean |
equals(Object obj) |
List<PromptInputVariable> |
getInputVariables()
An array of the variables in the prompt template.
|
String |
getText()
The message for the prompt.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInputVariables(Collection<PromptInputVariable> inputVariables)
An array of the variables in the prompt template.
|
void |
setText(String text)
The message for the prompt.
|
String |
toString()
Returns a string representation of this object.
|
TextPromptTemplateConfiguration |
withInputVariables(Collection<PromptInputVariable> inputVariables)
An array of the variables in the prompt template.
|
TextPromptTemplateConfiguration |
withInputVariables(PromptInputVariable... inputVariables)
An array of the variables in the prompt template.
|
TextPromptTemplateConfiguration |
withText(String text)
The message for the prompt.
|
public List<PromptInputVariable> getInputVariables()
An array of the variables in the prompt template.
public void setInputVariables(Collection<PromptInputVariable> inputVariables)
An array of the variables in the prompt template.
inputVariables
- An array of the variables in the prompt template.public TextPromptTemplateConfiguration withInputVariables(PromptInputVariable... inputVariables)
An array of the variables in the prompt template.
NOTE: This method appends the values to the existing list (if any). Use
setInputVariables(java.util.Collection)
or withInputVariables(java.util.Collection)
if you want
to override the existing values.
inputVariables
- An array of the variables in the prompt template.public TextPromptTemplateConfiguration withInputVariables(Collection<PromptInputVariable> inputVariables)
An array of the variables in the prompt template.
inputVariables
- An array of the variables in the prompt template.public void setText(String text)
The message for the prompt.
text
- The message for the prompt.public String getText()
The message for the prompt.
public TextPromptTemplateConfiguration withText(String text)
The message for the prompt.
text
- The message for the prompt.public String toString()
toString
in class Object
Object.toString()
public TextPromptTemplateConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.