@Generated(value="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
or StringValue
can be specified.
This object is specified in the CreateTrialComponent request.
Modifier and Type | Class and Description |
---|---|
static interface |
TrialComponentParameterValue.Builder |
static class |
TrialComponentParameterValue.Type |
Modifier and Type | Method and Description |
---|---|
static TrialComponentParameterValue.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static TrialComponentParameterValue |
fromNumberValue(Double numberValue)
Create an instance of this class with
numberValue() initialized to the given value. |
static TrialComponentParameterValue |
fromStringValue(String stringValue)
Create an instance of this class with
stringValue() 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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
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.
NumberValue
parameter.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.
StringValue
parameter.public TrialComponentParameterValue.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<TrialComponentParameterValue.Builder,TrialComponentParameterValue>
public static TrialComponentParameterValue.Builder builder()
public static Class<? extends TrialComponentParameterValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public static TrialComponentParameterValue fromStringValue(String stringValue)
stringValue()
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.
stringValue
- The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't
specify the NumberValue
parameter.public static TrialComponentParameterValue fromNumberValue(Double numberValue)
numberValue()
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.
numberValue
- The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't
specify the StringValue
parameter.public TrialComponentParameterValue.Type type()
TrialComponentParameterValue.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 be TrialComponentParameterValue.Type.UNKNOWN_TO_SDK_VERSION
if zero
members are set, and null
if more than one member is set.Copyright © 2023. All rights reserved.