Interface GraphqlApi.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GraphqlApi.Builder,GraphqlApi>,SdkBuilder<GraphqlApi.Builder,GraphqlApi>,SdkPojo
- Enclosing class:
- GraphqlApi
public static interface GraphqlApi.Builder extends SdkPojo, CopyableBuilder<GraphqlApi.Builder,GraphqlApi>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GraphqlApi.BuilderadditionalAuthenticationProviders(Collection<AdditionalAuthenticationProvider> additionalAuthenticationProviders)A list of additional authentication providers for theGraphqlApiAPI.GraphqlApi.BuilderadditionalAuthenticationProviders(Consumer<AdditionalAuthenticationProvider.Builder>... additionalAuthenticationProviders)A list of additional authentication providers for theGraphqlApiAPI.GraphqlApi.BuilderadditionalAuthenticationProviders(AdditionalAuthenticationProvider... additionalAuthenticationProviders)A list of additional authentication providers for theGraphqlApiAPI.GraphqlApi.BuilderapiId(String apiId)The API ID.GraphqlApi.BuilderapiType(String apiType)The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).GraphqlApi.BuilderapiType(GraphQLApiType apiType)The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).GraphqlApi.Builderarn(String arn)The Amazon Resource Name (ARN).GraphqlApi.BuilderauthenticationType(String authenticationType)The authentication type.GraphqlApi.BuilderauthenticationType(AuthenticationType authenticationType)The authentication type.GraphqlApi.Builderdns(Map<String,String> dns)The DNS records for the API.default GraphqlApi.BuilderlambdaAuthorizerConfig(Consumer<LambdaAuthorizerConfig.Builder> lambdaAuthorizerConfig)Configuration for Lambda function authorization.GraphqlApi.BuilderlambdaAuthorizerConfig(LambdaAuthorizerConfig lambdaAuthorizerConfig)Configuration for Lambda function authorization.default GraphqlApi.BuilderlogConfig(Consumer<LogConfig.Builder> logConfig)The Amazon CloudWatch Logs configuration.GraphqlApi.BuilderlogConfig(LogConfig logConfig)The Amazon CloudWatch Logs configuration.GraphqlApi.BuildermergedApiExecutionRoleArn(String mergedApiExecutionRoleArn)The Identity and Access Management service role ARN for a merged API.GraphqlApi.Buildername(String name)The API name.default GraphqlApi.BuilderopenIDConnectConfig(Consumer<OpenIDConnectConfig.Builder> openIDConnectConfig)The OpenID Connect configuration.GraphqlApi.BuilderopenIDConnectConfig(OpenIDConnectConfig openIDConnectConfig)The OpenID Connect configuration.GraphqlApi.Builderowner(String owner)The account owner of the GraphQL API.GraphqlApi.BuilderownerContact(String ownerContact)The owner contact information for an API resource.GraphqlApi.Buildertags(Map<String,String> tags)The tags.GraphqlApi.Builderuris(Map<String,String> uris)The URIs.default GraphqlApi.BuilderuserPoolConfig(Consumer<UserPoolConfig.Builder> userPoolConfig)The Amazon Cognito user pool configuration.GraphqlApi.BuilderuserPoolConfig(UserPoolConfig userPoolConfig)The Amazon Cognito user pool configuration.GraphqlApi.Buildervisibility(String visibility)Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE).GraphqlApi.Buildervisibility(GraphQLApiVisibility visibility)Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE).GraphqlApi.BuilderwafWebAclArn(String wafWebAclArn)The ARN of the WAF access control list (ACL) associated with thisGraphqlApi, if one exists.GraphqlApi.BuilderxrayEnabled(Boolean xrayEnabled)A flag indicating whether to use X-Ray tracing for thisGraphqlApi.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
GraphqlApi.Builder name(String name)
The API name.
- Parameters:
name- The API name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiId
GraphqlApi.Builder apiId(String apiId)
The API ID.
- Parameters:
apiId- The API ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authenticationType
GraphqlApi.Builder authenticationType(String authenticationType)
The authentication type.
- Parameters:
authenticationType- The authentication type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AuthenticationType,AuthenticationType
-
authenticationType
GraphqlApi.Builder authenticationType(AuthenticationType authenticationType)
The authentication type.
- Parameters:
authenticationType- The authentication type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AuthenticationType,AuthenticationType
-
logConfig
GraphqlApi.Builder logConfig(LogConfig logConfig)
The Amazon CloudWatch Logs configuration.
- Parameters:
logConfig- The Amazon CloudWatch Logs configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
default GraphqlApi.Builder logConfig(Consumer<LogConfig.Builder> logConfig)
The Amazon CloudWatch Logs configuration.
This is a convenience method that creates an instance of theLogConfig.Builderavoiding the need to create one manually viaLogConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfig(LogConfig).- Parameters:
logConfig- a consumer that will call methods onLogConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
logConfig(LogConfig)
-
userPoolConfig
GraphqlApi.Builder userPoolConfig(UserPoolConfig userPoolConfig)
The Amazon Cognito user pool configuration.
- Parameters:
userPoolConfig- The Amazon Cognito user pool configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userPoolConfig
default GraphqlApi.Builder userPoolConfig(Consumer<UserPoolConfig.Builder> userPoolConfig)
The Amazon Cognito user pool configuration.
This is a convenience method that creates an instance of theUserPoolConfig.Builderavoiding the need to create one manually viaUserPoolConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserPoolConfig(UserPoolConfig).- Parameters:
userPoolConfig- a consumer that will call methods onUserPoolConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
userPoolConfig(UserPoolConfig)
-
openIDConnectConfig
GraphqlApi.Builder openIDConnectConfig(OpenIDConnectConfig openIDConnectConfig)
The OpenID Connect configuration.
- Parameters:
openIDConnectConfig- The OpenID Connect configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openIDConnectConfig
default GraphqlApi.Builder openIDConnectConfig(Consumer<OpenIDConnectConfig.Builder> openIDConnectConfig)
The OpenID Connect configuration.
This is a convenience method that creates an instance of theOpenIDConnectConfig.Builderavoiding the need to create one manually viaOpenIDConnectConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toopenIDConnectConfig(OpenIDConnectConfig).- Parameters:
openIDConnectConfig- a consumer that will call methods onOpenIDConnectConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
openIDConnectConfig(OpenIDConnectConfig)
-
arn
GraphqlApi.Builder arn(String arn)
The Amazon Resource Name (ARN).
- Parameters:
arn- The Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
uris
GraphqlApi.Builder uris(Map<String,String> uris)
The URIs.
- Parameters:
uris- The URIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
GraphqlApi.Builder tags(Map<String,String> tags)
The tags.
- Parameters:
tags- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAuthenticationProviders
GraphqlApi.Builder additionalAuthenticationProviders(Collection<AdditionalAuthenticationProvider> additionalAuthenticationProviders)
A list of additional authentication providers for the
GraphqlApiAPI.- Parameters:
additionalAuthenticationProviders- A list of additional authentication providers for theGraphqlApiAPI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAuthenticationProviders
GraphqlApi.Builder additionalAuthenticationProviders(AdditionalAuthenticationProvider... additionalAuthenticationProviders)
A list of additional authentication providers for the
GraphqlApiAPI.- Parameters:
additionalAuthenticationProviders- A list of additional authentication providers for theGraphqlApiAPI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAuthenticationProviders
GraphqlApi.Builder additionalAuthenticationProviders(Consumer<AdditionalAuthenticationProvider.Builder>... additionalAuthenticationProviders)
A list of additional authentication providers for the
This is a convenience method that creates an instance of theGraphqlApiAPI.AdditionalAuthenticationProvider.Builderavoiding the need to create one manually viaAdditionalAuthenticationProvider.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#additionalAuthenticationProviders(List.) - Parameters:
additionalAuthenticationProviders- a consumer that will call methods onAdditionalAuthenticationProvider.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#additionalAuthenticationProviders(java.util.Collection)
-
xrayEnabled
GraphqlApi.Builder xrayEnabled(Boolean xrayEnabled)
A flag indicating whether to use X-Ray tracing for this
GraphqlApi.- Parameters:
xrayEnabled- A flag indicating whether to use X-Ray tracing for thisGraphqlApi.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafWebAclArn
GraphqlApi.Builder wafWebAclArn(String wafWebAclArn)
The ARN of the WAF access control list (ACL) associated with this
GraphqlApi, if one exists.- Parameters:
wafWebAclArn- The ARN of the WAF access control list (ACL) associated with thisGraphqlApi, if one exists.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaAuthorizerConfig
GraphqlApi.Builder lambdaAuthorizerConfig(LambdaAuthorizerConfig lambdaAuthorizerConfig)
Configuration for Lambda function authorization.
- Parameters:
lambdaAuthorizerConfig- Configuration for Lambda function authorization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaAuthorizerConfig
default GraphqlApi.Builder lambdaAuthorizerConfig(Consumer<LambdaAuthorizerConfig.Builder> lambdaAuthorizerConfig)
Configuration for Lambda function authorization.
This is a convenience method that creates an instance of theLambdaAuthorizerConfig.Builderavoiding the need to create one manually viaLambdaAuthorizerConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambdaAuthorizerConfig(LambdaAuthorizerConfig).- Parameters:
lambdaAuthorizerConfig- a consumer that will call methods onLambdaAuthorizerConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lambdaAuthorizerConfig(LambdaAuthorizerConfig)
-
dns
GraphqlApi.Builder dns(Map<String,String> dns)
The DNS records for the API.
- Parameters:
dns- The DNS records for the API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibility
GraphqlApi.Builder visibility(String visibility)
Sets the value of the GraphQL API to public (
GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set toGLOBALby default. This value cannot be changed once the API has been created.- Parameters:
visibility- Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set toGLOBALby default. This value cannot be changed once the API has been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GraphQLApiVisibility,GraphQLApiVisibility
-
visibility
GraphqlApi.Builder visibility(GraphQLApiVisibility visibility)
Sets the value of the GraphQL API to public (
GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set toGLOBALby default. This value cannot be changed once the API has been created.- Parameters:
visibility- Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set toGLOBALby default. This value cannot be changed once the API has been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GraphQLApiVisibility,GraphQLApiVisibility
-
apiType
GraphqlApi.Builder apiType(String apiType)
The value that indicates whether the GraphQL API is a standard API (
GRAPHQL) or merged API (MERGED).- Parameters:
apiType- The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GraphQLApiType,GraphQLApiType
-
apiType
GraphqlApi.Builder apiType(GraphQLApiType apiType)
The value that indicates whether the GraphQL API is a standard API (
GRAPHQL) or merged API (MERGED).- Parameters:
apiType- The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GraphQLApiType,GraphQLApiType
-
mergedApiExecutionRoleArn
GraphqlApi.Builder mergedApiExecutionRoleArn(String mergedApiExecutionRoleArn)
The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the
AUTO_MERGEto update the merged API endpoint with the source API changes automatically.- Parameters:
mergedApiExecutionRoleArn- The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt theAUTO_MERGEto update the merged API endpoint with the source API changes automatically.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
GraphqlApi.Builder owner(String owner)
The account owner of the GraphQL API.
- Parameters:
owner- The account owner of the GraphQL API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerContact
GraphqlApi.Builder ownerContact(String ownerContact)
The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- Parameters:
ownerContact- The owner contact information for an API resource.This field accepts any string input with a length of 0 - 256 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-