@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailContextualGroundingPolicy extends Object implements Serializable, Cloneable, StructuredPojo
The details for the guardrails contextual grounding policy.
| Constructor and Description |
|---|
GuardrailContextualGroundingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailContextualGroundingPolicy |
clone() |
boolean |
equals(Object obj) |
List<GuardrailContextualGroundingFilter> |
getFilters()
The filter details for the guardrails contextual grounding policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFilters(Collection<GuardrailContextualGroundingFilter> filters)
The filter details for the guardrails contextual grounding policy.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailContextualGroundingPolicy |
withFilters(Collection<GuardrailContextualGroundingFilter> filters)
The filter details for the guardrails contextual grounding policy.
|
GuardrailContextualGroundingPolicy |
withFilters(GuardrailContextualGroundingFilter... filters)
The filter details for the guardrails contextual grounding policy.
|
public List<GuardrailContextualGroundingFilter> getFilters()
The filter details for the guardrails contextual grounding policy.
public void setFilters(Collection<GuardrailContextualGroundingFilter> filters)
The filter details for the guardrails contextual grounding policy.
filters - The filter details for the guardrails contextual grounding policy.public GuardrailContextualGroundingPolicy withFilters(GuardrailContextualGroundingFilter... filters)
The filter details for the guardrails contextual grounding policy.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection) or withFilters(java.util.Collection) if you want to override
the existing values.
filters - The filter details for the guardrails contextual grounding policy.public GuardrailContextualGroundingPolicy withFilters(Collection<GuardrailContextualGroundingFilter> filters)
The filter details for the guardrails contextual grounding policy.
filters - The filter details for the guardrails contextual grounding policy.public String toString()
toString in class ObjectObject.toString()public GuardrailContextualGroundingPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.