Class DefaultGuardrail
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.GuardrailEvent
software.amazon.awssdk.services.bedrockagentruntime.model.retrieveandgeneratestreamresponseoutput.DefaultGuardrail
- All Implemented Interfaces:
Serializable
,SdkPojo
,RetrieveAndGenerateStreamResponseOutput
,ToCopyableBuilder<GuardrailEvent.Builder,
GuardrailEvent>
@Generated("software.amazon.awssdk:codegen")
public final class DefaultGuardrail
extends GuardrailEvent
A specialization of
software.amazon.awssdk.services.bedrockagentruntime.model.GuardrailEvent
that represents
the RetrieveAndGenerateStreamResponseOutput$guardrail
event. Do not use this class directly. Instead, use the
static builder methods on
RetrieveAndGenerateStreamResponseOutput
.- See Also:
-
Nested Class Summary
Nested ClassesNested 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Calls the appropriate visit method depending on the subtype ofGuardrailEvent
.static DefaultGuardrail.Builder
builder()
The type of this event.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class software.amazon.awssdk.services.bedrockagentruntime.model.GuardrailEvent
action, actionAsString, copy, equals, equalsBySdkFields, getValueForField, hashCode, sdkFieldNameToField, sdkFields, serializableBuilderClass, toString
-
Method Details
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<GuardrailEvent.Builder,
GuardrailEvent> - Overrides:
toBuilder
in classGuardrailEvent
- Returns:
- a builder for type T
-
builder
-
accept
Description copied from class:GuardrailEvent
Calls the appropriate visit method depending on the subtype ofGuardrailEvent
.- Specified by:
accept
in interfaceRetrieveAndGenerateStreamResponseOutput
- Overrides:
accept
in classGuardrailEvent
- Parameters:
visitor
- Visitor to invoke.
-
sdkEventType
Description copied from interface:RetrieveAndGenerateStreamResponseOutput
The type of this event. Corresponds to the:event-type
header on the Message.
-