@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailContextualGroundingFilter extends Object implements Serializable, Cloneable, StructuredPojo
The details for the guardrails contextual grounding filter.
Constructor and Description |
---|
GuardrailContextualGroundingFilter() |
Modifier and Type | Method and Description |
---|---|
GuardrailContextualGroundingFilter |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action performed by the guardrails contextual grounding filter.
|
Double |
getScore()
The score generated by contextual grounding filter.
|
Double |
getThreshold()
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
|
String |
getType()
The contextual grounding filter type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
The action performed by the guardrails contextual grounding filter.
|
void |
setScore(Double score)
The score generated by contextual grounding filter.
|
void |
setThreshold(Double threshold)
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
|
void |
setType(String type)
The contextual grounding filter type.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailContextualGroundingFilter |
withAction(GuardrailContextualGroundingPolicyAction action)
The action performed by the guardrails contextual grounding filter.
|
GuardrailContextualGroundingFilter |
withAction(String action)
The action performed by the guardrails contextual grounding filter.
|
GuardrailContextualGroundingFilter |
withScore(Double score)
The score generated by contextual grounding filter.
|
GuardrailContextualGroundingFilter |
withThreshold(Double threshold)
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
|
GuardrailContextualGroundingFilter |
withType(GuardrailContextualGroundingFilterType type)
The contextual grounding filter type.
|
GuardrailContextualGroundingFilter |
withType(String type)
The contextual grounding filter type.
|
public void setType(String type)
The contextual grounding filter type.
type
- The contextual grounding filter type.GuardrailContextualGroundingFilterType
public String getType()
The contextual grounding filter type.
GuardrailContextualGroundingFilterType
public GuardrailContextualGroundingFilter withType(String type)
The contextual grounding filter type.
type
- The contextual grounding filter type.GuardrailContextualGroundingFilterType
public GuardrailContextualGroundingFilter withType(GuardrailContextualGroundingFilterType type)
The contextual grounding filter type.
type
- The contextual grounding filter type.GuardrailContextualGroundingFilterType
public void setThreshold(Double threshold)
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
threshold
- The threshold used by contextual grounding filter to determine whether the content is grounded or not.public Double getThreshold()
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
public GuardrailContextualGroundingFilter withThreshold(Double threshold)
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
threshold
- The threshold used by contextual grounding filter to determine whether the content is grounded or not.public void setScore(Double score)
The score generated by contextual grounding filter.
score
- The score generated by contextual grounding filter.public Double getScore()
The score generated by contextual grounding filter.
public GuardrailContextualGroundingFilter withScore(Double score)
The score generated by contextual grounding filter.
score
- The score generated by contextual grounding filter.public void setAction(String action)
The action performed by the guardrails contextual grounding filter.
action
- The action performed by the guardrails contextual grounding filter.GuardrailContextualGroundingPolicyAction
public String getAction()
The action performed by the guardrails contextual grounding filter.
GuardrailContextualGroundingPolicyAction
public GuardrailContextualGroundingFilter withAction(String action)
The action performed by the guardrails contextual grounding filter.
action
- The action performed by the guardrails contextual grounding filter.GuardrailContextualGroundingPolicyAction
public GuardrailContextualGroundingFilter withAction(GuardrailContextualGroundingPolicyAction action)
The action performed by the guardrails contextual grounding filter.
action
- The action performed by the guardrails contextual grounding filter.GuardrailContextualGroundingPolicyAction
public String toString()
toString
in class Object
Object.toString()
public GuardrailContextualGroundingFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.