Class GraphqlApiAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.GraphqlApiAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GraphqlApiAttributes>
- Enclosing interface:
- GraphqlApiAttributes
@Stability(Experimental)
public static final class GraphqlApiAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<GraphqlApiAttributes>
A builder for
GraphqlApiAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.graphqlApiArn(String graphqlApiArn) Sets the value ofGraphqlApiAttributes.getGraphqlApiArn()graphqlApiId(String graphqlApiId) Sets the value ofGraphqlApiAttributes.getGraphqlApiId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
graphqlApiId
Sets the value ofGraphqlApiAttributes.getGraphqlApiId()- Parameters:
graphqlApiId- an unique AWS AppSync GraphQL API identifier i.e. 'lxz775lwdrgcndgz3nurvac7oa'. This parameter is required.- Returns:
this
-
graphqlApiArn
Sets the value ofGraphqlApiAttributes.getGraphqlApiArn()- Parameters:
graphqlApiArn- the arn for the GraphQL Api.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GraphqlApiAttributes>- Returns:
- a new instance of
GraphqlApiAttributes - Throws:
NullPointerException- if any required attribute was not provided
-