public static final class UpdateTypeFragment.Builder extends Object
UpdateTypeFragment
with specified properties to modify.
Below is a snippet illustrating how to use this builder:
UpdateAttributeFragment fragment = UpdateTypeFragment.builder("myType").name("myTypeNewName").maxValue(30).create();
UpdateTypeFragment.builder(String)
Modifier and Type | Method and Description |
---|---|
UpdateTypeFragment.Builder |
baseType(BaseTypeKind value)
Sets the new base type on the type to modify.
|
UpdateTypeFragment |
create()
Creates a
UpdateTypeFragment instance with the properties configured on this builder. |
UpdateTypeFragment.Builder |
literals(List<String> literals)
Sets the new literals on the enumeration type to modify.
|
UpdateTypeFragment.Builder |
maxValue(Date value)
Sets the new maximum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
maxValue(float value)
Sets the new maximum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
maxValue(int value)
Sets the new maximum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
minValue(Date value)
Sets the new minimum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
minValue(float value)
Sets the new minimum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
minValue(int value)
Sets the new minimum allowed value on the type to modify.
|
UpdateTypeFragment.Builder |
name(String value)
Sets the new name on the type to modify.
|
public UpdateTypeFragment create()
UpdateTypeFragment
instance with the properties configured on this builder.UpdateTypeFragment
instance.public UpdateTypeFragment.Builder name(String value)
value
- the new type name.public UpdateTypeFragment.Builder literals(List<String> literals)
literals
- the new enumeration literals.public UpdateTypeFragment.Builder maxValue(int value)
value
- the new maximum value.public UpdateTypeFragment.Builder maxValue(float value)
value
- the new maximum value.public UpdateTypeFragment.Builder maxValue(Date value)
value
- the new maximum value.public UpdateTypeFragment.Builder minValue(int value)
value
- the new minimum value.public UpdateTypeFragment.Builder minValue(float value)
value
- the new minimum value.public UpdateTypeFragment.Builder minValue(Date value)
value
- the new minimum value.public UpdateTypeFragment.Builder baseType(BaseTypeKind value)
value
- the new base type.