@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GuardrailTopic extends Object implements Serializable, Cloneable, StructuredPojo
Information about a topic guardrail.
| Constructor and Description |
|---|
GuardrailTopic() |
| Modifier and Type | Method and Description |
|---|---|
GuardrailTopic |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action the guardrail should take when it intervenes on a topic.
|
String |
getName()
The name for the guardrail.
|
String |
getType()
The type behavior that the guardrail should perform when the model detects the topic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAction(String action)
The action the guardrail should take when it intervenes on a topic.
|
void |
setName(String name)
The name for the guardrail.
|
void |
setType(String type)
The type behavior that the guardrail should perform when the model detects the topic.
|
String |
toString()
Returns a string representation of this object.
|
GuardrailTopic |
withAction(GuardrailTopicPolicyAction action)
The action the guardrail should take when it intervenes on a topic.
|
GuardrailTopic |
withAction(String action)
The action the guardrail should take when it intervenes on a topic.
|
GuardrailTopic |
withName(String name)
The name for the guardrail.
|
GuardrailTopic |
withType(GuardrailTopicType type)
The type behavior that the guardrail should perform when the model detects the topic.
|
GuardrailTopic |
withType(String type)
The type behavior that the guardrail should perform when the model detects the topic.
|
public void setName(String name)
The name for the guardrail.
name - The name for the guardrail.public String getName()
The name for the guardrail.
public GuardrailTopic withName(String name)
The name for the guardrail.
name - The name for the guardrail.public void setType(String type)
The type behavior that the guardrail should perform when the model detects the topic.
type - The type behavior that the guardrail should perform when the model detects the topic.GuardrailTopicTypepublic String getType()
The type behavior that the guardrail should perform when the model detects the topic.
GuardrailTopicTypepublic GuardrailTopic withType(String type)
The type behavior that the guardrail should perform when the model detects the topic.
type - The type behavior that the guardrail should perform when the model detects the topic.GuardrailTopicTypepublic GuardrailTopic withType(GuardrailTopicType type)
The type behavior that the guardrail should perform when the model detects the topic.
type - The type behavior that the guardrail should perform when the model detects the topic.GuardrailTopicTypepublic void setAction(String action)
The action the guardrail should take when it intervenes on a topic.
action - The action the guardrail should take when it intervenes on a topic.GuardrailTopicPolicyActionpublic String getAction()
The action the guardrail should take when it intervenes on a topic.
GuardrailTopicPolicyActionpublic GuardrailTopic withAction(String action)
The action the guardrail should take when it intervenes on a topic.
action - The action the guardrail should take when it intervenes on a topic.GuardrailTopicPolicyActionpublic GuardrailTopic withAction(GuardrailTopicPolicyAction action)
The action the guardrail should take when it intervenes on a topic.
action - The action the guardrail should take when it intervenes on a topic.GuardrailTopicPolicyActionpublic String toString()
toString in class ObjectObject.toString()public GuardrailTopic clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.