@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailTopicPolicy extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about topics that the guardrail should identify and deny.
This data type is used in the following API operations:
| Constructor and Description |
|---|
GuardrailTopicPolicy() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailTopicPolicy |
clone() |
boolean |
equals(Object obj) |
List<GuardrailTopic> |
getTopics()
A list of policies related to topics that the guardrail should deny.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTopics(Collection<GuardrailTopic> topics)
A list of policies related to topics that the guardrail should deny.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailTopicPolicy |
withTopics(Collection<GuardrailTopic> topics)
A list of policies related to topics that the guardrail should deny.
|
GuardrailTopicPolicy |
withTopics(GuardrailTopic... topics)
A list of policies related to topics that the guardrail should deny.
|
public List<GuardrailTopic> getTopics()
A list of policies related to topics that the guardrail should deny.
public void setTopics(Collection<GuardrailTopic> topics)
A list of policies related to topics that the guardrail should deny.
topics - A list of policies related to topics that the guardrail should deny.public GuardrailTopicPolicy withTopics(GuardrailTopic... topics)
A list of policies related to topics that the guardrail should deny.
NOTE: This method appends the values to the existing list (if any). Use
setTopics(java.util.Collection) or withTopics(java.util.Collection) if you want to override the
existing values.
topics - A list of policies related to topics that the guardrail should deny.public GuardrailTopicPolicy withTopics(Collection<GuardrailTopic> topics)
A list of policies related to topics that the guardrail should deny.
topics - A list of policies related to topics that the guardrail should deny.public String toString()
toString in class ObjectObject.toString()public GuardrailTopicPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.