@Generated(value="software.amazon.awssdk:codegen") public final class MixedMeasureMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MixedMeasureMapping.Builder,MixedMeasureMapping>
MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MixedMeasureMapping.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MixedMeasureMapping.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMultiMeasureAttributeMappings()
For responses, this returns true if the service returned a value for the MultiMeasureAttributeMappings property.
|
String |
measureName()
Refers to the value of measure_name in a result row.
|
MeasureValueType |
measureValueType()
Type of the value that is to be read from sourceColumn.
|
String |
measureValueTypeAsString()
Type of the value that is to be read from sourceColumn.
|
List<MultiMeasureAttributeMapping> |
multiMeasureAttributeMappings()
Required when measureValueType is MULTI.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MixedMeasureMapping.Builder> |
serializableBuilderClass() |
String |
sourceColumn()
This field refers to the source column from which measure-value is to be read for result materialization.
|
String |
targetMeasureName()
Target measure name to be used.
|
MixedMeasureMapping.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String measureName()
Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
public final String sourceColumn()
This field refers to the source column from which measure-value is to be read for result materialization.
public final String targetMeasureName()
Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
public final MeasureValueType measureValueType()
Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
If the service returns an enum value that is not available in the current SDK version, measureValueType
will return MeasureValueType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from measureValueTypeAsString().
MeasureValueTypepublic final String measureValueTypeAsString()
Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
If the service returns an enum value that is not available in the current SDK version, measureValueType
will return MeasureValueType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from measureValueTypeAsString().
MeasureValueTypepublic final boolean hasMultiMeasureAttributeMappings()
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<MultiMeasureAttributeMapping> multiMeasureAttributeMappings()
Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
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 hasMultiMeasureAttributeMappings() method.
public MixedMeasureMapping.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MixedMeasureMapping.Builder,MixedMeasureMapping>public static MixedMeasureMapping.Builder builder()
public static Class<? extends MixedMeasureMapping.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.