@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailContentFilter extends Object implements Serializable, Cloneable, StructuredPojo
The content filter for a guardrail.
| Constructor and Description |
|---|
GuardrailContentFilter() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailContentFilter |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The guardrail action.
|
String |
getConfidence()
The guardrail confidence.
|
String |
getType()
The guardrail type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAction(String action)
The guardrail action.
|
void |
setConfidence(String confidence)
The guardrail confidence.
|
void |
setType(String type)
The guardrail type.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailContentFilter |
withAction(GuardrailContentPolicyAction action)
The guardrail action.
|
GuardrailContentFilter |
withAction(String action)
The guardrail action.
|
GuardrailContentFilter |
withConfidence(GuardrailContentFilterConfidence confidence)
The guardrail confidence.
|
GuardrailContentFilter |
withConfidence(String confidence)
The guardrail confidence.
|
GuardrailContentFilter |
withType(GuardrailContentFilterType type)
The guardrail type.
|
GuardrailContentFilter |
withType(String type)
The guardrail type.
|
public void setType(String type)
The guardrail type.
type - The guardrail type.GuardrailContentFilterTypepublic String getType()
The guardrail type.
GuardrailContentFilterTypepublic GuardrailContentFilter withType(String type)
The guardrail type.
type - The guardrail type.GuardrailContentFilterTypepublic GuardrailContentFilter withType(GuardrailContentFilterType type)
The guardrail type.
type - The guardrail type.GuardrailContentFilterTypepublic void setConfidence(String confidence)
The guardrail confidence.
confidence - The guardrail confidence.GuardrailContentFilterConfidencepublic String getConfidence()
The guardrail confidence.
GuardrailContentFilterConfidencepublic GuardrailContentFilter withConfidence(String confidence)
The guardrail confidence.
confidence - The guardrail confidence.GuardrailContentFilterConfidencepublic GuardrailContentFilter withConfidence(GuardrailContentFilterConfidence confidence)
The guardrail confidence.
confidence - The guardrail confidence.GuardrailContentFilterConfidencepublic void setAction(String action)
The guardrail action.
action - The guardrail action.GuardrailContentPolicyActionpublic String getAction()
The guardrail action.
GuardrailContentPolicyActionpublic GuardrailContentFilter withAction(String action)
The guardrail action.
action - The guardrail action.GuardrailContentPolicyActionpublic GuardrailContentFilter withAction(GuardrailContentPolicyAction action)
The guardrail action.
action - The guardrail action.GuardrailContentPolicyActionpublic String toString()
toString in class ObjectObject.toString()public GuardrailContentFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2025. All rights reserved.