Class GraphqlTypeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.GraphqlTypeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GraphqlTypeOptions>
- Enclosing interface:
GraphqlTypeOptions
@Stability(Experimental)
public static final class GraphqlTypeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<GraphqlTypeOptions>
A builder for
GraphqlTypeOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.intermediateType
(IIntermediateType intermediateType) Sets the value ofGraphqlTypeOptions.getIntermediateType()
Sets the value ofBaseTypeOptions.getIsList()
isRequired
(Boolean isRequired) Sets the value ofBaseTypeOptions.getIsRequired()
isRequiredList
(Boolean isRequiredList) Sets the value ofBaseTypeOptions.getIsRequiredList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
intermediateType
@Stability(Experimental) public GraphqlTypeOptions.Builder intermediateType(IIntermediateType intermediateType) Sets the value ofGraphqlTypeOptions.getIntermediateType()
- Parameters:
intermediateType
- the intermediate type linked to this attribute.- Returns:
this
-
isList
Sets the value ofBaseTypeOptions.getIsList()
- Parameters:
isList
- property determining if this attribute is a list i.e. if true, attribute would be [Type].- Returns:
this
-
isRequired
Sets the value ofBaseTypeOptions.getIsRequired()
- Parameters:
isRequired
- property determining if this attribute is non-nullable i.e. if true, attribute would be Type!.- Returns:
this
-
isRequiredList
Sets the value ofBaseTypeOptions.getIsRequiredList()
- Parameters:
isRequiredList
- property determining if this attribute is a non-nullable list i.e. if true, attribute would be [ Type ]! or if isRequired true, attribe would be [ Type! ]!.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GraphqlTypeOptions>
- Returns:
- a new instance of
GraphqlTypeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-