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
NumberValue
orStringValue
can 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 interface
TrialComponentParameterValue.Builder
static class
TrialComponentParameterValue.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrialComponentParameterValue.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
static TrialComponentParameterValue
fromNumberValue(Double numberValue)
Create an instance of this class withnumberValue()
initialized to the given value.static TrialComponentParameterValue
fromStringValue(String stringValue)
Create an instance of this class withstringValue()
initialized to the given value.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Double
numberValue()
The numeric value of a numeric hyperparameter.List<SdkField<?>>
sdkFields()
static Class<? extends TrialComponentParameterValue.Builder>
serializableBuilderClass()
String
stringValue()
The string value of a categorical hyperparameter.TrialComponentParameterValue.Builder
toBuilder()
String
toString()
Returns a string representation of this object.TrialComponentParameterValue.Type
type()
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
NumberValue
parameter.- Returns:
- The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't
specify the
NumberValue
parameter.
-
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
StringValue
parameter.- Returns:
- The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't
specify the
StringValue
parameter.
-
toBuilder
public TrialComponentParameterValue.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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
NumberValue
parameter.- Parameters:
stringValue
- The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify theNumberValue
parameter.
-
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
StringValue
parameter.- Parameters:
numberValue
- The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify theStringValue
parameter.
-
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_VERSION
if 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_VERSION
if zero members are set, andnull
if more than one member is set.
-
-