@Generated(value="software.amazon.awssdk:codegen") public final class FeatureValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FeatureValue.Builder,FeatureValue>
The value associated with a feature.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FeatureValue.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FeatureValue.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
featureName()
The name of a feature that a feature value corresponds to.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasValueAsStringList()
For responses, this returns true if the service returned a value for the ValueAsStringList property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FeatureValue.Builder> |
serializableBuilderClass() |
FeatureValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
valueAsString()
The value in string format associated with a feature.
|
List<String> |
valueAsStringList()
The list of values in string format associated with a feature.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String featureName()
The name of a feature that a feature value corresponds to.
public final String valueAsString()
The value in string format associated with a feature. Used when your CollectionType is
None. Note that features types can be String, Integral, or
Fractional. This value represents all three types as a string.
CollectionType is
None. Note that features types can be String, Integral, or
Fractional. This value represents all three types as a string.public final boolean hasValueAsStringList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> valueAsStringList()
The list of values in string format associated with a feature. Used when your CollectionType is a
List, Set, or Vector. Note that features types can be String,
Integral, or Fractional. These values represents all three types as a string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasValueAsStringList() method.
CollectionType
is a List, Set, or Vector. Note that features types can be
String, Integral, or Fractional. These values represents all three
types as a string.public FeatureValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FeatureValue.Builder,FeatureValue>public static FeatureValue.Builder builder()
public static Class<? extends FeatureValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.