Class CfnGraphQLSchemaMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnGraphQLSchemaMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLSchemaMixinProps>
- Enclosing interface:
CfnGraphQLSchemaMixinProps
@Stability(Stable)
public static final class CfnGraphQLSchemaMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLSchemaMixinProps>
A builder for
CfnGraphQLSchemaMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGraphQLSchemaMixinProps.getApiId()build()Builds the configured instance.definition(String definition) Sets the value ofCfnGraphQLSchemaMixinProps.getDefinition()definitionS3Location(String definitionS3Location) Sets the value ofCfnGraphQLSchemaMixinProps.getDefinitionS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnGraphQLSchemaMixinProps.getApiId()- Parameters:
apiId- The AWS AppSync GraphQL API identifier to which you want to apply this schema.- Returns:
this
-
definition
Sets the value ofCfnGraphQLSchemaMixinProps.getDefinition()- Parameters:
definition- The text representation of a GraphQL schema in SDL format. For more information about using theReffunction, see Ref .- Returns:
this
-
definitionS3Location
@Stability(Stable) public CfnGraphQLSchemaMixinProps.Builder definitionS3Location(String definitionS3Location) Sets the value ofCfnGraphQLSchemaMixinProps.getDefinitionS3Location()- Parameters:
definitionS3Location- The location of a GraphQL schema file in an Amazon S3 bucket. Use this if you want to provision with the schema living in Amazon S3 rather than embedding it in your CloudFormation template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraphQLSchemaMixinProps>- Returns:
- a new instance of
CfnGraphQLSchemaMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-