Class InvokeModelResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<InvokeModelResponse.Builder,InvokeModelResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal SdkBytesbody()Inference response from the model in the format specified in thecontentTypeheader.static InvokeModelResponse.Builderbuilder()final StringThe MIME type of the inference result.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final PerformanceConfigLatencyModel performance settings for the request.final StringModel performance settings for the request.static Class<? extends InvokeModelResponse.Builder>final ServiceTierTypeSpecifies the processing tier type used for serving the request.final StringSpecifies the processing tier type used for serving the request.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
body
Inference response from the model in the format specified in the
contentTypeheader. To see the format and content of the request and response bodies for different models, refer to Inference parameters.- Returns:
- Inference response from the model in the format specified in the
contentTypeheader. To see the format and content of the request and response bodies for different models, refer to Inference parameters.
-
contentType
The MIME type of the inference result.
- Returns:
- The MIME type of the inference result.
-
performanceConfigLatency
Model performance settings for the request.
If the service returns an enum value that is not available in the current SDK version,
performanceConfigLatencywill returnPerformanceConfigLatency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperformanceConfigLatencyAsString().- Returns:
- Model performance settings for the request.
- See Also:
-
performanceConfigLatencyAsString
Model performance settings for the request.
If the service returns an enum value that is not available in the current SDK version,
performanceConfigLatencywill returnPerformanceConfigLatency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromperformanceConfigLatencyAsString().- Returns:
- Model performance settings for the request.
- See Also:
-
serviceTier
Specifies the processing tier type used for serving the request.
If the service returns an enum value that is not available in the current SDK version,
serviceTierwill returnServiceTierType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceTierAsString().- Returns:
- Specifies the processing tier type used for serving the request.
- See Also:
-
serviceTierAsString
Specifies the processing tier type used for serving the request.
If the service returns an enum value that is not available in the current SDK version,
serviceTierwill returnServiceTierType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceTierAsString().- Returns:
- Specifies the processing tier type used for serving the request.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvokeModelResponse.Builder,InvokeModelResponse> - Specified by:
toBuilderin classAwsResponse
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
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
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-