Class DataModel
- java.lang.Object
-
- software.amazon.awssdk.services.timestreamwrite.model.DataModel
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DataModel.Builder,DataModel>
@Generated("software.amazon.awssdk:codegen") public final class DataModel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataModel.Builder,DataModel>
Data model for a batch load task.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataModel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataModel.Builderbuilder()List<DimensionMapping>dimensionMappings()Source to target mappings for dimensions.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasDimensionMappings()For responses, this returns true if the service returned a value for the DimensionMappings property.inthashCode()booleanhasMixedMeasureMappings()For responses, this returns true if the service returned a value for the MixedMeasureMappings property.StringmeasureNameColumn()List<MixedMeasureMapping>mixedMeasureMappings()Source to target mappings for measures.MultiMeasureMappingsmultiMeasureMappings()Source to target mappings for multi-measure records.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DataModel.Builder>serializableBuilderClass()StringtimeColumn()Source column to be mapped to time.TimeUnittimeUnit()The granularity of the timestamp unit.StringtimeUnitAsString()The granularity of the timestamp unit.DataModel.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
timeColumn
public final String timeColumn()
Source column to be mapped to time.
- Returns:
- Source column to be mapped to time.
-
timeUnit
public final TimeUnit timeUnit()
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is
MILLISECONDS.If the service returns an enum value that is not available in the current SDK version,
timeUnitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeUnitAsString().- Returns:
- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
nanoseconds, or other supported values. Default is
MILLISECONDS. - See Also:
TimeUnit
-
timeUnitAsString
public final String timeUnitAsString()
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is
MILLISECONDS.If the service returns an enum value that is not available in the current SDK version,
timeUnitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeUnitAsString().- Returns:
- The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
nanoseconds, or other supported values. Default is
MILLISECONDS. - See Also:
TimeUnit
-
hasDimensionMappings
public final boolean hasDimensionMappings()
For responses, this returns true if the service returned a value for the DimensionMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
dimensionMappings
public final List<DimensionMapping> dimensionMappings()
Source to target mappings for dimensions.
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
hasDimensionMappings()method.- Returns:
- Source to target mappings for dimensions.
-
multiMeasureMappings
public final MultiMeasureMappings multiMeasureMappings()
Source to target mappings for multi-measure records.
- Returns:
- Source to target mappings for multi-measure records.
-
hasMixedMeasureMappings
public final boolean hasMixedMeasureMappings()
For responses, this returns true if the service returned a value for the MixedMeasureMappings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
mixedMeasureMappings
public final List<MixedMeasureMapping> mixedMeasureMappings()
Source to target mappings for 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
hasMixedMeasureMappings()method.- Returns:
- Source to target mappings for measures.
-
measureNameColumn
public final String measureNameColumn()
- Returns:
-
toBuilder
public DataModel.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DataModel.Builder,DataModel>
-
builder
public static DataModel.Builder builder()
-
serializableBuilderClass
public static Class<? extends DataModel.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-