Class EvaluationConfig
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.EvaluationConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluationConfig.Builder,EvaluationConfig>
@Generated("software.amazon.awssdk:codegen") public final class EvaluationConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluationConfig.Builder,EvaluationConfig>
Used to specify either a
AutomatedEvaluationConfigorHumanEvaluationConfigobject.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluationConfig.Builderstatic classEvaluationConfig.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomatedEvaluationConfigautomated()Used to specify an automated model evaluation job.static EvaluationConfig.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static EvaluationConfigfromAutomated(Consumer<AutomatedEvaluationConfig.Builder> automated)Create an instance of this class withautomated()initialized to the given value.static EvaluationConfigfromAutomated(AutomatedEvaluationConfig automated)Create an instance of this class withautomated()initialized to the given value.static EvaluationConfigfromHuman(Consumer<HumanEvaluationConfig.Builder> human)Create an instance of this class withhuman()initialized to the given value.static EvaluationConfigfromHuman(HumanEvaluationConfig human)Create an instance of this class withhuman()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HumanEvaluationConfighuman()Used to specify a model evaluation job that uses human workers.SeeHumanEvaluationConfigto view the required parameters.List<SdkField<?>>sdkFields()static Class<? extends EvaluationConfig.Builder>serializableBuilderClass()EvaluationConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.EvaluationConfig.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
-
automated
public final AutomatedEvaluationConfig automated()
Used to specify an automated model evaluation job. See
AutomatedEvaluationConfigto view the required parameters.- Returns:
- Used to specify an automated model evaluation job. See
AutomatedEvaluationConfigto view the required parameters.
-
human
public final HumanEvaluationConfig human()
Used to specify a model evaluation job that uses human workers.See
HumanEvaluationConfigto view the required parameters.- Returns:
- Used to specify a model evaluation job that uses human workers.See
HumanEvaluationConfigto view the required parameters.
-
toBuilder
public EvaluationConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluationConfig.Builder,EvaluationConfig>
-
builder
public static EvaluationConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluationConfig.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.
-
fromAutomated
public static EvaluationConfig fromAutomated(AutomatedEvaluationConfig automated)
Create an instance of this class withautomated()initialized to the given value.Used to specify an automated model evaluation job. See
AutomatedEvaluationConfigto view the required parameters.- Parameters:
automated- Used to specify an automated model evaluation job. SeeAutomatedEvaluationConfigto view the required parameters.
-
fromAutomated
public static EvaluationConfig fromAutomated(Consumer<AutomatedEvaluationConfig.Builder> automated)
Create an instance of this class withautomated()initialized to the given value.Used to specify an automated model evaluation job. See
AutomatedEvaluationConfigto view the required parameters.- Parameters:
automated- Used to specify an automated model evaluation job. SeeAutomatedEvaluationConfigto view the required parameters.
-
fromHuman
public static EvaluationConfig fromHuman(HumanEvaluationConfig human)
Create an instance of this class withhuman()initialized to the given value.Used to specify a model evaluation job that uses human workers.See
HumanEvaluationConfigto view the required parameters.- Parameters:
human- Used to specify a model evaluation job that uses human workers.SeeHumanEvaluationConfigto view the required parameters.
-
fromHuman
public static EvaluationConfig fromHuman(Consumer<HumanEvaluationConfig.Builder> human)
Create an instance of this class withhuman()initialized to the given value.Used to specify a model evaluation job that uses human workers.See
HumanEvaluationConfigto view the required parameters.- Parameters:
human- Used to specify a model evaluation job that uses human workers.SeeHumanEvaluationConfigto view the required parameters.
-
type
public EvaluationConfig.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 beEvaluationConfig.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 beEvaluationConfig.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-