Class AddFieldOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AddFieldOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddFieldOptions>
- Enclosing interface:
- AddFieldOptions
@Stability(Experimental)
public static final class AddFieldOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AddFieldOptions>
A builder for
AddFieldOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofAddFieldOptions.getField()
Sets the value ofAddFieldOptions.getFieldName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Sets the value ofAddFieldOptions.getField()
- Parameters:
field
- The resolvable field to add. This option must be configured for Object, Interface, Input and Union Types.- Returns:
this
-
fieldName
Sets the value ofAddFieldOptions.getFieldName()
- Parameters:
fieldName
- The name of the field. This option must be configured for Object, Interface, Input and Enum Types.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddFieldOptions>
- Returns:
- a new instance of
AddFieldOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-