Class GuardrailTopic
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockruntime.model.GuardrailTopic
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GuardrailTopic.Builder,GuardrailTopic>
@Generated("software.amazon.awssdk:codegen") public final class GuardrailTopic extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GuardrailTopic.Builder,GuardrailTopic>
Information about a topic guardrail.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGuardrailTopic.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuardrailTopicPolicyActionaction()The action the guardrail should take when it intervenes on a topic.StringactionAsString()The action the guardrail should take when it intervenes on a topic.static GuardrailTopic.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name for the guardrail.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GuardrailTopic.Builder>serializableBuilderClass()GuardrailTopic.BuildertoBuilder()StringtoString()Returns a string representation of this object.GuardrailTopicTypetype()The type behavior that the guardrail should perform when the model detects the topic.StringtypeAsString()The type behavior that the guardrail should perform when the model detects the topic.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name for the guardrail.
- Returns:
- The name for the guardrail.
-
type
public final GuardrailTopicType type()
The type behavior that the guardrail should perform when the model detects the topic.
If the service returns an enum value that is not available in the current SDK version,
typewill returnGuardrailTopicType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type behavior that the guardrail should perform when the model detects the topic.
- See Also:
GuardrailTopicType
-
typeAsString
public final String typeAsString()
The type behavior that the guardrail should perform when the model detects the topic.
If the service returns an enum value that is not available in the current SDK version,
typewill returnGuardrailTopicType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type behavior that the guardrail should perform when the model detects the topic.
- See Also:
GuardrailTopicType
-
action
public final GuardrailTopicPolicyAction action()
The action the guardrail should take when it intervenes on a topic.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuardrailTopicPolicyAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action the guardrail should take when it intervenes on a topic.
- See Also:
GuardrailTopicPolicyAction
-
actionAsString
public final String actionAsString()
The action the guardrail should take when it intervenes on a topic.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuardrailTopicPolicyAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action the guardrail should take when it intervenes on a topic.
- See Also:
GuardrailTopicPolicyAction
-
toBuilder
public GuardrailTopic.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GuardrailTopic.Builder,GuardrailTopic>
-
builder
public static GuardrailTopic.Builder builder()
-
serializableBuilderClass
public static Class<? extends GuardrailTopic.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-