@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)
Marshalls this structured data using the given
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.GuardrailContentFilterType
public String getType()
The guardrail type.
GuardrailContentFilterType
public GuardrailContentFilter withType(String type)
The guardrail type.
type
- The guardrail type.GuardrailContentFilterType
public GuardrailContentFilter withType(GuardrailContentFilterType type)
The guardrail type.
type
- The guardrail type.GuardrailContentFilterType
public void setConfidence(String confidence)
The guardrail confidence.
confidence
- The guardrail confidence.GuardrailContentFilterConfidence
public String getConfidence()
The guardrail confidence.
GuardrailContentFilterConfidence
public GuardrailContentFilter withConfidence(String confidence)
The guardrail confidence.
confidence
- The guardrail confidence.GuardrailContentFilterConfidence
public GuardrailContentFilter withConfidence(GuardrailContentFilterConfidence confidence)
The guardrail confidence.
confidence
- The guardrail confidence.GuardrailContentFilterConfidence
public void setAction(String action)
The guardrail action.
action
- The guardrail action.GuardrailContentPolicyAction
public String getAction()
The guardrail action.
GuardrailContentPolicyAction
public GuardrailContentFilter withAction(String action)
The guardrail action.
action
- The guardrail action.GuardrailContentPolicyAction
public GuardrailContentFilter withAction(GuardrailContentPolicyAction action)
The guardrail action.
action
- The guardrail action.GuardrailContentPolicyAction
public String toString()
toString
in class Object
Object.toString()
public GuardrailContentFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.