Class GuardrailEvent
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.GuardrailEvent
- All Implemented Interfaces:
Serializable,SdkPojo,RetrieveAndGenerateStreamResponseOutput,ToCopyableBuilder<GuardrailEvent.Builder,GuardrailEvent>
- Direct Known Subclasses:
DefaultGuardrail
@Generated("software.amazon.awssdk:codegen")
public class GuardrailEvent
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<GuardrailEvent.Builder,GuardrailEvent>, RetrieveAndGenerateStreamResponseOutput
A guardrail event.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static classNested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.RetrieveAndGenerateStreamResponseOutput
RetrieveAndGenerateStreamResponseOutput.EventType -
Field Summary
Fields inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.RetrieveAndGenerateStreamResponseOutput
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the appropriate visit method depending on the subtype ofGuardrailEvent.final GuadrailActionaction()The guardrail action.final StringThe guardrail action.static GuardrailEvent.Builderbuilder()final GuardrailEventcopy(Consumer<? super GuardrailEvent.Builder> modifier) final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends GuardrailEvent.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.RetrieveAndGenerateStreamResponseOutput
sdkEventType
-
Constructor Details
-
GuardrailEvent
-
-
Method Details
-
action
The guardrail action.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuadrailAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The guardrail action.
- See Also:
-
actionAsString
The guardrail action.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuadrailAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The guardrail action.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GuardrailEvent.Builder,GuardrailEvent>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
copy
- Specified by:
copyin interfaceToCopyableBuilder<GuardrailEvent.Builder,GuardrailEvent>
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
Calls the appropriate visit method depending on the subtype ofGuardrailEvent.- Specified by:
acceptin interfaceRetrieveAndGenerateStreamResponseOutput- Parameters:
visitor- Visitor to invoke.
-