Class EvaluationModelConfig
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.EvaluationModelConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluationModelConfig.Builder,EvaluationModelConfig>
@Generated("software.amazon.awssdk:codegen") public final class EvaluationModelConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluationModelConfig.Builder,EvaluationModelConfig>
Defines the models used in the model evaluation job.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluationModelConfig.Builderstatic classEvaluationModelConfig.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationBedrockModelbedrockModel()Defines the Amazon Bedrock model or inference profile and inference parameters you want used.static EvaluationModelConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static EvaluationModelConfigfromBedrockModel(Consumer<EvaluationBedrockModel.Builder> bedrockModel)Create an instance of this class withbedrockModel()initialized to the given value.static EvaluationModelConfigfromBedrockModel(EvaluationBedrockModel bedrockModel)Create an instance of this class withbedrockModel()initialized to the given value.static EvaluationModelConfigfromPrecomputedInferenceSource(Consumer<EvaluationPrecomputedInferenceSource.Builder> precomputedInferenceSource)Create an instance of this class withprecomputedInferenceSource()initialized to the given value.static EvaluationModelConfigfromPrecomputedInferenceSource(EvaluationPrecomputedInferenceSource precomputedInferenceSource)Create an instance of this class withprecomputedInferenceSource()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()EvaluationPrecomputedInferenceSourceprecomputedInferenceSource()Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends EvaluationModelConfig.Builder>serializableBuilderClass()EvaluationModelConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.EvaluationModelConfig.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
bedrockModel
public final EvaluationBedrockModel bedrockModel()
Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
- Returns:
- Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
-
precomputedInferenceSource
public final EvaluationPrecomputedInferenceSource precomputedInferenceSource()
Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
- Returns:
- Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
-
toBuilder
public EvaluationModelConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluationModelConfig.Builder,EvaluationModelConfig>
-
builder
public static EvaluationModelConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluationModelConfig.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.
-
fromBedrockModel
public static EvaluationModelConfig fromBedrockModel(EvaluationBedrockModel bedrockModel)
Create an instance of this class withbedrockModel()initialized to the given value.Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
- Parameters:
bedrockModel- Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
-
fromBedrockModel
public static EvaluationModelConfig fromBedrockModel(Consumer<EvaluationBedrockModel.Builder> bedrockModel)
Create an instance of this class withbedrockModel()initialized to the given value.Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
- Parameters:
bedrockModel- Defines the Amazon Bedrock model or inference profile and inference parameters you want used.
-
fromPrecomputedInferenceSource
public static EvaluationModelConfig fromPrecomputedInferenceSource(EvaluationPrecomputedInferenceSource precomputedInferenceSource)
Create an instance of this class withprecomputedInferenceSource()initialized to the given value.Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
- Parameters:
precomputedInferenceSource- Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
-
fromPrecomputedInferenceSource
public static EvaluationModelConfig fromPrecomputedInferenceSource(Consumer<EvaluationPrecomputedInferenceSource.Builder> precomputedInferenceSource)
Create an instance of this class withprecomputedInferenceSource()initialized to the given value.Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
- Parameters:
precomputedInferenceSource- Defines the model used to generate inference response data for a model evaluation job where you provide your own inference response data.
-
type
public EvaluationModelConfig.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beEvaluationModelConfig.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beEvaluationModelConfig.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-