Class EnumType
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appsync.EnumType
- All Implemented Interfaces:
IIntermediateType
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.494Z")
@Stability(Experimental)
public class EnumType
extends software.amazon.jsii.JsiiObject
implements IIntermediateType
(experimental) Enum Types are abstract types that includes a set of fields that represent the strings this type can create.
Example:
GraphqlApi api; EnumType episode = EnumType.Builder.create("Episode") .definition(List.of("NEWHOPE", "EMPIRE", "JEDI")) .build(); api.addType(episode);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forEnumType
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IIntermediateType
IIntermediateType.Jsii$Default, IIntermediateType.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionEnumType
(String name, EnumTypeOptions options) protected
EnumType
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EnumType
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(AddFieldOptions options) (experimental) Add a field to this Enum Type.(experimental) Create an GraphQL Type representing this Enum Type.attribute
(BaseTypeOptions options) (experimental) Create an GraphQL Type representing this Enum Type.(experimental) the attributes of this type.protected List<AuthorizationType>
getModes()
(experimental) the authorization modes for this intermediate type.getName()
(experimental) the name of this type.protected void
setModes
(List<AuthorizationType> value) (experimental) the authorization modes for this intermediate type.toString()
(experimental) Generate the string of this enum type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.appsync.IIntermediateType
getDirectives, getInterfaceTypes, getIntermediateType, getResolvers, setResolvers
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EnumType
protected EnumType(software.amazon.jsii.JsiiObjectRef objRef) -
EnumType
protected EnumType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EnumType
- Parameters:
name
- This parameter is required.options
- This parameter is required.
-
-
Method Details
-
addField
(experimental) Add a field to this Enum Type.To add a field to this Enum Type, you must only configure addField with the fieldName options.
- Specified by:
addField
in interfaceIIntermediateType
- Parameters:
options
- the options to add a field. This parameter is required.
-
attribute
(experimental) Create an GraphQL Type representing this Enum Type.- Specified by:
attribute
in interfaceIIntermediateType
- Parameters:
options
-
-
attribute
(experimental) Create an GraphQL Type representing this Enum Type.- Specified by:
attribute
in interfaceIIntermediateType
-
toString
(experimental) Generate the string of this enum type.- Specified by:
toString
in interfaceIIntermediateType
- Overrides:
toString
in classObject
-
getDefinition
(experimental) the attributes of this type.- Specified by:
getDefinition
in interfaceIIntermediateType
-
getName
(experimental) the name of this type.- Specified by:
getName
in interfaceIIntermediateType
-
getModes
(experimental) the authorization modes for this intermediate type. -
setModes
(experimental) the authorization modes for this intermediate type.
-