@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SystemContentBlock extends Object implements Serializable, Cloneable, StructuredPojo
A system content block.
| Constructor and Description |
|---|
SystemContentBlock() |
| Modifier and Type | Method and Description |
|---|---|
SystemContentBlock |
clone() |
boolean |
equals(Object obj) |
GuardrailConverseContentBlock |
getGuardContent()
A content block to assess with the guardrail.
|
String |
getText()
A system prompt for the model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setGuardContent(GuardrailConverseContentBlock guardContent)
A content block to assess with the guardrail.
|
void |
setText(String text)
A system prompt for the model.
|
String |
toString()
Returns a string representation of this object.
|
SystemContentBlock |
withGuardContent(GuardrailConverseContentBlock guardContent)
A content block to assess with the guardrail.
|
SystemContentBlock |
withText(String text)
A system prompt for the model.
|
public void setText(String text)
A system prompt for the model.
text - A system prompt for the model.public String getText()
A system prompt for the model.
public SystemContentBlock withText(String text)
A system prompt for the model.
text - A system prompt for the model.public void setGuardContent(GuardrailConverseContentBlock guardContent)
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
guardContent - A content block to assess with the guardrail. Use with the Converse or
ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
public GuardrailConverseContentBlock getGuardContent()
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
public SystemContentBlock withGuardContent(GuardrailConverseContentBlock guardContent)
A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
guardContent - A content block to assess with the guardrail. Use with the Converse or
ConverseStream API operations.
For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
public String toString()
toString in class ObjectObject.toString()public SystemContentBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.