Class BaseTypeOptions.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.BaseTypeOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseTypeOptions>
- Enclosing interface:
BaseTypeOptions
@Stability(Experimental)
public static final class BaseTypeOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BaseTypeOptions>
A builder for
BaseTypeOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
-
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<BaseTypeOptions>
- Returns:
- a new instance of
BaseTypeOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-