Interface DataType.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DataType.Builder,DataType>,SdkBuilder<DataType.Builder,DataType>,SdkPojo
- Enclosing class:
- DataType
public static interface DataType.Builder extends SdkPojo, CopyableBuilder<DataType.Builder,DataType>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataType.BuilderallowedValues(Collection<DataValue> allowedValues)The allowed values for this data type.DataType.BuilderallowedValues(Consumer<DataValue.Builder>... allowedValues)The allowed values for this data type.DataType.BuilderallowedValues(DataValue... allowedValues)The allowed values for this data type.default DataType.BuildernestedType(Consumer<DataType.Builder> nestedType)The nested type in the data type.DataType.BuildernestedType(DataType nestedType)The nested type in the data type.default DataType.Builderrelationship(Consumer<Relationship.Builder> relationship)A relationship that associates a component with another component.DataType.Builderrelationship(Relationship relationship)A relationship that associates a component with another component.DataType.Buildertype(String type)The underlying type of the data type.DataType.Buildertype(Type type)The underlying type of the data type.DataType.BuilderunitOfMeasure(String unitOfMeasure)The unit of measure used in this data type.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
DataType.Builder type(String type)
The underlying type of the data type.
-
type
DataType.Builder type(Type type)
The underlying type of the data 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.
-
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 theDataType.Builderavoiding the need to create one manually viaDataType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonestedType(DataType).- Parameters:
nestedType- a consumer that will call methods onDataType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
nestedType(DataType)
-
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 theDataValue.Builderavoiding the need to create one manually viaDataValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#allowedValues(List.) - Parameters:
allowedValues- a consumer that will call methods onDataValue.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.
-
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 theRelationship.Builderavoiding the need to create one manually viaRelationship.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torelationship(Relationship).- Parameters:
relationship- a consumer that will call methods onRelationship.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
relationship(Relationship)
-
-