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(Stable)
public static final class GraphqlApiAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<GraphqlApiAttributes>
A builder for
GraphqlApiAttributes
-
Constructor Summary
-
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()
graphQlEndpointArn
(String graphQlEndpointArn) Sets the value ofinvalid @link
GraphqlApiAttributes#getGraphQlEndpointArn
modes
(List<? extends AuthorizationType> modes) Sets the value ofGraphqlApiAttributes.getModes()
visibility
(Visibility visibility) Sets the value ofGraphqlApiAttributes.getVisibility()
-
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
-
graphQlEndpointArn
@Stability(Stable) public GraphqlApiAttributes.Builder graphQlEndpointArn(String graphQlEndpointArn) Sets the value ofinvalid @link
GraphqlApiAttributes#getGraphQlEndpointArn
- Parameters:
graphQlEndpointArn
- The GraphQl endpoint arn for the GraphQL API.- Returns:
this
-
modes
@Stability(Stable) public GraphqlApiAttributes.Builder modes(List<? extends AuthorizationType> modes) Sets the value ofGraphqlApiAttributes.getModes()
- Parameters:
modes
- The Authorization Types for this GraphQL Api.- Returns:
this
-
visibility
Sets the value ofGraphqlApiAttributes.getVisibility()
- Parameters:
visibility
- The GraphQl API visibility.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GraphqlApiAttributes>
- Returns:
- a new instance of
GraphqlApiAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-