Interface MixedMeasureMapping.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MixedMeasureMapping.Builder,MixedMeasureMapping>, SdkBuilder<MixedMeasureMapping.Builder,MixedMeasureMapping>, SdkPojo
Enclosing class:
MixedMeasureMapping

public static interface MixedMeasureMapping.Builder extends SdkPojo, CopyableBuilder<MixedMeasureMapping.Builder,MixedMeasureMapping>
  • Method Details

    • measureName

      MixedMeasureMapping.Builder measureName(String measureName)

      Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.

      Parameters:
      measureName - Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceColumn

      MixedMeasureMapping.Builder sourceColumn(String sourceColumn)

      This field refers to the source column from which measure-value is to be read for result materialization.

      Parameters:
      sourceColumn - This field refers to the source column from which measure-value is to be read for result materialization.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetMeasureName

      MixedMeasureMapping.Builder targetMeasureName(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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measureValueType

      MixedMeasureMapping.Builder measureValueType(String measureValueType)

      Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.

      Parameters:
      measureValueType - Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • measureValueType

      MixedMeasureMapping.Builder measureValueType(MeasureValueType measureValueType)

      Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.

      Parameters:
      measureValueType - Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • multiMeasureAttributeMappings

      MixedMeasureMapping.Builder multiMeasureAttributeMappings(Collection<MultiMeasureAttributeMapping> multiMeasureAttributeMappings)

      Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.

      Parameters:
      multiMeasureAttributeMappings - Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • multiMeasureAttributeMappings

      MixedMeasureMapping.Builder multiMeasureAttributeMappings(MultiMeasureAttributeMapping... multiMeasureAttributeMappings)

      Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.

      Parameters:
      multiMeasureAttributeMappings - Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • multiMeasureAttributeMappings

      MixedMeasureMapping.Builder multiMeasureAttributeMappings(Consumer<MultiMeasureAttributeMapping.Builder>... multiMeasureAttributeMappings)

      Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.

      This is a convenience method that creates an instance of the MultiMeasureAttributeMapping.Builder avoiding the need to create one manually via MultiMeasureAttributeMapping.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to multiMeasureAttributeMappings(List<MultiMeasureAttributeMapping>).

      Parameters:
      multiMeasureAttributeMappings - a consumer that will call methods on MultiMeasureAttributeMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: