public static final class AddFieldOptions.Builder
extends java.lang.Object
AddFieldOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AddFieldOptions |
build()
Builds the configured instance.
|
AddFieldOptions.Builder |
field(IField field)
Sets the value of
AddFieldOptions.getField() |
AddFieldOptions.Builder |
fieldName(java.lang.String fieldName)
Sets the value of
AddFieldOptions.getFieldName() |
public AddFieldOptions.Builder field(IField field)
AddFieldOptions.getField()
field
- The resolvable field to add.
This option must be configured for Object, Interface,
Input and Union Types.this
public AddFieldOptions.Builder fieldName(java.lang.String fieldName)
AddFieldOptions.getFieldName()
fieldName
- The name of the field.
This option must be configured for Object, Interface,
Input and Enum Types.this
public AddFieldOptions build()
AddFieldOptions
java.lang.NullPointerException
- if any required attribute was not provided