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 interface
GuardrailTopic.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GuardrailTopicPolicyAction
action()
The action the guardrail should take when it intervenes on a topic.String
actionAsString()
The action the guardrail should take when it intervenes on a topic.static GuardrailTopic.Builder
builder()
Boolean
detected()
Indicates whether topic content that breaches the guardrail configuration is detected.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
name()
The name for the guardrail.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends GuardrailTopic.Builder>
serializableBuilderClass()
GuardrailTopic.Builder
toBuilder()
String
toString()
Returns a string representation of this object.GuardrailTopicType
type()
The type behavior that the guardrail should perform when the model detects the topic.String
typeAsString()
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,
type
will 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,
type
will 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,
action
will 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,
action
will 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
-
detected
public final Boolean detected()
Indicates whether topic content that breaches the guardrail configuration is detected.
- Returns:
- Indicates whether topic content that breaches the guardrail configuration is detected.
-
toBuilder
public GuardrailTopic.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
-
-