Class TrialComponentParameterValue
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.TrialComponentParameterValue
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrialComponentParameterValue.Builder,TrialComponentParameterValue>
@Generated("software.amazon.awssdk:codegen") public final class TrialComponentParameterValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrialComponentParameterValue.Builder,TrialComponentParameterValue>
The value of a hyperparameter. Only one of
NumberValueorStringValuecan be specified.This object is specified in the CreateTrialComponent request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrialComponentParameterValue.Builderstatic classTrialComponentParameterValue.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrialComponentParameterValue.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static TrialComponentParameterValuefromNumberValue(Double numberValue)Create an instance of this class withnumberValue()initialized to the given value.static TrialComponentParameterValuefromStringValue(String stringValue)Create an instance of this class withstringValue()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()DoublenumberValue()The numeric value of a numeric hyperparameter.List<SdkField<?>>sdkFields()static Class<? extends TrialComponentParameterValue.Builder>serializableBuilderClass()StringstringValue()The string value of a categorical hyperparameter.TrialComponentParameterValue.BuildertoBuilder()StringtoString()Returns a string representation of this object.TrialComponentParameterValue.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
-
stringValue
public final String stringValue()
The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify the
NumberValueparameter.- Returns:
- The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't
specify the
NumberValueparameter.
-
numberValue
public final Double numberValue()
The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify the
StringValueparameter.- Returns:
- The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't
specify the
StringValueparameter.
-
toBuilder
public TrialComponentParameterValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrialComponentParameterValue.Builder,TrialComponentParameterValue>
-
builder
public static TrialComponentParameterValue.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrialComponentParameterValue.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.
-
fromStringValue
public static TrialComponentParameterValue fromStringValue(String stringValue)
Create an instance of this class withstringValue()initialized to the given value.The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify the
NumberValueparameter.- Parameters:
stringValue- The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify theNumberValueparameter.
-
fromNumberValue
public static TrialComponentParameterValue fromNumberValue(Double numberValue)
Create an instance of this class withnumberValue()initialized to the given value.The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify the
StringValueparameter.- Parameters:
numberValue- The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify theStringValueparameter.
-
type
public TrialComponentParameterValue.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 beTrialComponentParameterValue.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 beTrialComponentParameterValue.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-