Class InvokeModelWithResponseStreamRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest
-
- software.amazon.awssdk.services.bedrockruntime.model.InvokeModelWithResponseStreamRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<InvokeModelWithResponseStreamRequest.Builder,InvokeModelWithResponseStreamRequest>
@Generated("software.amazon.awssdk:codegen") public final class InvokeModelWithResponseStreamRequest extends BedrockRuntimeRequest implements ToCopyableBuilder<InvokeModelWithResponseStreamRequest.Builder,InvokeModelWithResponseStreamRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvokeModelWithResponseStreamRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaccept()The desired MIME type of the inference body in the response.SdkBytesbody()Inference input in the format specified by the content-type.static InvokeModelWithResponseStreamRequest.Builderbuilder()StringcontentType()The MIME type of the input data in the request.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmodelId()Id of the model to invoke using the streaming request.List<SdkField<?>>sdkFields()static Class<? extends InvokeModelWithResponseStreamRequest.Builder>serializableBuilderClass()InvokeModelWithResponseStreamRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
body
public final SdkBytes body()
Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
- Returns:
- Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
-
contentType
public final String contentType()
The MIME type of the input data in the request. The default value is
application/json.- Returns:
- The MIME type of the input data in the request. The default value is
application/json.
-
accept
public final String accept()
The desired MIME type of the inference body in the response. The default value is
application/json.- Returns:
- The desired MIME type of the inference body in the response. The default value is
application/json.
-
modelId
public final String modelId()
Id of the model to invoke using the streaming request.
- Returns:
- Id of the model to invoke using the streaming request.
-
toBuilder
public InvokeModelWithResponseStreamRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvokeModelWithResponseStreamRequest.Builder,InvokeModelWithResponseStreamRequest>- Specified by:
toBuilderin classBedrockRuntimeRequest
-
builder
public static InvokeModelWithResponseStreamRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvokeModelWithResponseStreamRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-