@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PromptVariant extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about a variant of the prompt.
Constructor and Description |
---|
PromptVariant() |
Modifier and Type | Method and Description |
---|---|
PromptVariant |
clone() |
boolean |
equals(Object obj) |
PromptInferenceConfiguration |
getInferenceConfiguration()
Contains inference configurations for the prompt variant.
|
String |
getModelId()
The unique identifier of the model with which to run inference on the prompt.
|
String |
getName()
The name of the prompt variant.
|
PromptTemplateConfiguration |
getTemplateConfiguration()
Contains configurations for the prompt template.
|
String |
getTemplateType()
The type of prompt template to use.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)
Contains inference configurations for the prompt variant.
|
void |
setModelId(String modelId)
The unique identifier of the model with which to run inference on the prompt.
|
void |
setName(String name)
The name of the prompt variant.
|
void |
setTemplateConfiguration(PromptTemplateConfiguration templateConfiguration)
Contains configurations for the prompt template.
|
void |
setTemplateType(String templateType)
The type of prompt template to use.
|
String |
toString()
Returns a string representation of this object.
|
PromptVariant |
withInferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)
Contains inference configurations for the prompt variant.
|
PromptVariant |
withModelId(String modelId)
The unique identifier of the model with which to run inference on the prompt.
|
PromptVariant |
withName(String name)
The name of the prompt variant.
|
PromptVariant |
withTemplateConfiguration(PromptTemplateConfiguration templateConfiguration)
Contains configurations for the prompt template.
|
PromptVariant |
withTemplateType(PromptTemplateType templateType)
The type of prompt template to use.
|
PromptVariant |
withTemplateType(String templateType)
The type of prompt template to use.
|
public void setInferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)
Contains inference configurations for the prompt variant.
inferenceConfiguration
- Contains inference configurations for the prompt variant.public PromptInferenceConfiguration getInferenceConfiguration()
Contains inference configurations for the prompt variant.
public PromptVariant withInferenceConfiguration(PromptInferenceConfiguration inferenceConfiguration)
Contains inference configurations for the prompt variant.
inferenceConfiguration
- Contains inference configurations for the prompt variant.public void setModelId(String modelId)
The unique identifier of the model with which to run inference on the prompt.
modelId
- The unique identifier of the model with which to run inference on the prompt.public String getModelId()
The unique identifier of the model with which to run inference on the prompt.
public PromptVariant withModelId(String modelId)
The unique identifier of the model with which to run inference on the prompt.
modelId
- The unique identifier of the model with which to run inference on the prompt.public void setName(String name)
The name of the prompt variant.
name
- The name of the prompt variant.public String getName()
The name of the prompt variant.
public PromptVariant withName(String name)
The name of the prompt variant.
name
- The name of the prompt variant.public void setTemplateConfiguration(PromptTemplateConfiguration templateConfiguration)
Contains configurations for the prompt template.
templateConfiguration
- Contains configurations for the prompt template.public PromptTemplateConfiguration getTemplateConfiguration()
Contains configurations for the prompt template.
public PromptVariant withTemplateConfiguration(PromptTemplateConfiguration templateConfiguration)
Contains configurations for the prompt template.
templateConfiguration
- Contains configurations for the prompt template.public void setTemplateType(String templateType)
The type of prompt template to use.
templateType
- The type of prompt template to use.PromptTemplateType
public String getTemplateType()
The type of prompt template to use.
PromptTemplateType
public PromptVariant withTemplateType(String templateType)
The type of prompt template to use.
templateType
- The type of prompt template to use.PromptTemplateType
public PromptVariant withTemplateType(PromptTemplateType templateType)
The type of prompt template to use.
templateType
- The type of prompt template to use.PromptTemplateType
public String toString()
toString
in class Object
Object.toString()
public PromptVariant clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.