Interface DataType.Builder

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

@Mutable @NotThreadSafe public static interface DataType.Builder extends SdkPojo, CopyableBuilder<DataType.Builder,DataType>
  • Method Details

    • 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

      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:
    • 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.
    • nestedType

      default DataType.Builder nestedType(Consumer<DataType.Builder> nestedType)

      The nested type in the data type.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to nestedType(DataType).

      Parameters:
      nestedType - a consumer that will call methods on DataType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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<DataValue>).

      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:
    • 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.
    • relationship

      default DataType.Builder relationship(Consumer<Relationship.Builder> relationship)

      A relationship that associates a component with another component.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to relationship(Relationship).

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