@Generated(value="software.amazon.awssdk:codegen") public final class InvokeModelRequest extends BedrockRuntimeRequest implements ToCopyableBuilder<InvokeModelRequest.Builder,InvokeModelRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
InvokeModelRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accept()
The desired MIME type of the inference body in the response.
|
SdkBytes |
body()
Input data in the format specified in the content-type request header.
|
static InvokeModelRequest.Builder |
builder() |
String |
contentType()
The MIME type of the input data in the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
modelId()
Identifier of the model.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InvokeModelRequest.Builder> |
serializableBuilderClass() |
InvokeModelRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accept()
The desired MIME type of the inference body in the response. The default value is application/json.
application/json.public final SdkBytes body()
Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
public final String contentType()
The MIME type of the input data in the request. The default value is application/json.
application/json.public final String modelId()
Identifier of the model.
public InvokeModelRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InvokeModelRequest.Builder,InvokeModelRequest>toBuilder in class BedrockRuntimeRequestpublic static InvokeModelRequest.Builder builder()
public static Class<? extends InvokeModelRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.