Class AnalyzePromptEvent
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.AnalyzePromptEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,OptimizedPromptStream,ToCopyableBuilder<AnalyzePromptEvent.Builder,AnalyzePromptEvent>
- Direct Known Subclasses:
DefaultAnalyzePromptEvent
@Generated("software.amazon.awssdk:codegen") public class AnalyzePromptEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AnalyzePromptEvent.Builder,AnalyzePromptEvent>, OptimizedPromptStream
An event in which the prompt was analyzed in preparation for optimization.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnalyzePromptEvent.Builderprotected static classAnalyzePromptEvent.BuilderImpl-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.OptimizedPromptStream
OptimizedPromptStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.OptimizedPromptStream
UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnalyzePromptEvent(AnalyzePromptEvent.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(OptimizePromptResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofAnalyzePromptEvent.static AnalyzePromptEvent.Builderbuilder()AnalyzePromptEventcopy(Consumer<? super AnalyzePromptEvent.Builder> modifier)booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()A message describing the analysis of the prompt.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AnalyzePromptEvent.Builder>serializableBuilderClass()AnalyzePromptEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.bedrockagentruntime.model.OptimizedPromptStream
sdkEventType
-
-
-
-
Constructor Detail
-
AnalyzePromptEvent
protected AnalyzePromptEvent(AnalyzePromptEvent.BuilderImpl builder)
-
-
Method Detail
-
message
public final String message()
A message describing the analysis of the prompt.
- Returns:
- A message describing the analysis of the prompt.
-
toBuilder
public AnalyzePromptEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AnalyzePromptEvent.Builder,AnalyzePromptEvent>
-
builder
public static AnalyzePromptEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends AnalyzePromptEvent.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.
-
copy
public final AnalyzePromptEvent copy(Consumer<? super AnalyzePromptEvent.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<AnalyzePromptEvent.Builder,AnalyzePromptEvent>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
accept
public void accept(OptimizePromptResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofAnalyzePromptEvent.- Specified by:
acceptin interfaceOptimizedPromptStream- Parameters:
visitor- Visitor to invoke.
-
-