Interface DataType.Builder

    • Method Detail

      • type

        DataType.Builder type​(String type)

        The underlying type of the data type.

        Parameters:
        type - The underlying type of the data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Type, Type
      • type

        DataType.Builder type​(Type type)

        The underlying type of the data type.

        Parameters:
        type - The underlying type of the data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Type, Type
      • nestedType

        DataType.Builder nestedType​(DataType nestedType)

        The nested type in the data type.

        Parameters:
        nestedType - The nested type in the data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allowedValues

        DataType.Builder allowedValues​(Collection<DataValue> allowedValues)

        The allowed values for this data type.

        Parameters:
        allowedValues - The allowed values for this data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allowedValues

        DataType.Builder allowedValues​(DataValue... allowedValues)

        The allowed values for this data type.

        Parameters:
        allowedValues - The allowed values for this data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • allowedValues

        DataType.Builder allowedValues​(Consumer<DataValue.Builder>... allowedValues)

        The allowed values for this data type.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #allowedValues(List).

        Parameters:
        allowedValues - a consumer that will call methods on DataValue.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #allowedValues(java.util.Collection)
      • unitOfMeasure

        DataType.Builder unitOfMeasure​(String unitOfMeasure)

        The unit of measure used in this data type.

        Parameters:
        unitOfMeasure - The unit of measure used in this data type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relationship

        DataType.Builder relationship​(Relationship relationship)

        A relationship that associates a component with another component.

        Parameters:
        relationship - A relationship that associates a component with another component.
        Returns:
        Returns a reference to this object so that method calls can be chained together.