Class CfnGraphQLSchemaProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLSchemaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLSchemaProps>
- Enclosing interface:
CfnGraphQLSchemaProps
@Stability(Stable)
public static final class CfnGraphQLSchemaProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLSchemaProps>
A builder for
CfnGraphQLSchemaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGraphQLSchemaProps.getApiId()build()Builds the configured instance.definition(String definition) Sets the value ofCfnGraphQLSchemaProps.getDefinition()definitionS3Location(String definitionS3Location) Sets the value ofCfnGraphQLSchemaProps.getDefinitionS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnGraphQLSchemaProps.getApiId()- Parameters:
apiId- The AWS AppSync GraphQL API identifier to which you want to apply this schema. This parameter is required.- Returns:
this
-
definition
Sets the value ofCfnGraphQLSchemaProps.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 CfnGraphQLSchemaProps.Builder definitionS3Location(String definitionS3Location) Sets the value ofCfnGraphQLSchemaProps.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<CfnGraphQLSchemaProps>- Returns:
- a new instance of
CfnGraphQLSchemaProps - Throws:
NullPointerException- if any required attribute was not provided
-