Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.appsync.inputs.GraphQLApiState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.appsync.inputs;
import com.pulumi.aws.appsync.inputs.GraphQLApiAdditionalAuthenticationProviderArgs;
import com.pulumi.aws.appsync.inputs.GraphQLApiEnhancedMetricsConfigArgs;
import com.pulumi.aws.appsync.inputs.GraphQLApiLambdaAuthorizerConfigArgs;
import com.pulumi.aws.appsync.inputs.GraphQLApiLogConfigArgs;
import com.pulumi.aws.appsync.inputs.GraphQLApiOpenidConnectConfigArgs;
import com.pulumi.aws.appsync.inputs.GraphQLApiUserPoolConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GraphQLApiState extends com.pulumi.resources.ResourceArgs {
public static final GraphQLApiState Empty = new GraphQLApiState();
/**
* One or more additional authentication providers for the GraphQL API. See `additional_authentication_provider` Block for details.
*
*/
@Import(name="additionalAuthenticationProviders")
private @Nullable Output> additionalAuthenticationProviders;
/**
* @return One or more additional authentication providers for the GraphQL API. See `additional_authentication_provider` Block for details.
*
*/
public Optional>> additionalAuthenticationProviders() {
return Optional.ofNullable(this.additionalAuthenticationProviders);
}
/**
* API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `merged_api_execution_role_arn` to be set.
*
*/
@Import(name="apiType")
private @Nullable Output apiType;
/**
* @return API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `merged_api_execution_role_arn` to be set.
*
*/
public Optional> apiType() {
return Optional.ofNullable(this.apiType);
}
/**
* ARN
*
*/
@Import(name="arn")
private @Nullable Output arn;
/**
* @return ARN
*
*/
public Optional> arn() {
return Optional.ofNullable(this.arn);
}
/**
* Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
*
*/
@Import(name="authenticationType")
private @Nullable Output authenticationType;
/**
* @return Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
*
*/
public Optional> authenticationType() {
return Optional.ofNullable(this.authenticationType);
}
/**
* Enables and controls the enhanced metrics feature. See `enhanced_metrics_config` Block for details.
*
*/
@Import(name="enhancedMetricsConfig")
private @Nullable Output enhancedMetricsConfig;
/**
* @return Enables and controls the enhanced metrics feature. See `enhanced_metrics_config` Block for details.
*
*/
public Optional> enhancedMetricsConfig() {
return Optional.ofNullable(this.enhancedMetricsConfig);
}
/**
* Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
*
*/
@Import(name="introspectionConfig")
private @Nullable Output introspectionConfig;
/**
* @return Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
*
*/
public Optional> introspectionConfig() {
return Optional.ofNullable(this.introspectionConfig);
}
/**
* Nested argument containing Lambda authorizer configuration. See `lambda_authorizer_config` Block for details.
*
*/
@Import(name="lambdaAuthorizerConfig")
private @Nullable Output lambdaAuthorizerConfig;
/**
* @return Nested argument containing Lambda authorizer configuration. See `lambda_authorizer_config` Block for details.
*
*/
public Optional> lambdaAuthorizerConfig() {
return Optional.ofNullable(this.lambdaAuthorizerConfig);
}
/**
* Nested argument containing logging configuration. See `log_config` Block for details.
*
*/
@Import(name="logConfig")
private @Nullable Output logConfig;
/**
* @return Nested argument containing logging configuration. See `log_config` Block for details.
*
*/
public Optional> logConfig() {
return Optional.ofNullable(this.logConfig);
}
/**
* ARN of the execution role when `api_type` is set to `MERGED`.
*
*/
@Import(name="mergedApiExecutionRoleArn")
private @Nullable Output mergedApiExecutionRoleArn;
/**
* @return ARN of the execution role when `api_type` is set to `MERGED`.
*
*/
public Optional> mergedApiExecutionRoleArn() {
return Optional.ofNullable(this.mergedApiExecutionRoleArn);
}
/**
* User-supplied name for the GraphQL API.
*
* The following arguments are optional:
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return User-supplied name for the GraphQL API.
*
* The following arguments are optional:
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Nested argument containing OpenID Connect configuration. See `openid_connect_config` Block for details.
*
*/
@Import(name="openidConnectConfig")
private @Nullable Output openidConnectConfig;
/**
* @return Nested argument containing OpenID Connect configuration. See `openid_connect_config` Block for details.
*
*/
public Optional> openidConnectConfig() {
return Optional.ofNullable(this.openidConnectConfig);
}
/**
* The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds.
*
* Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
*
*/
@Import(name="queryDepthLimit")
private @Nullable Output queryDepthLimit;
/**
* @return The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds.
*
* Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
*
*/
public Optional> queryDepthLimit() {
return Optional.ofNullable(this.queryDepthLimit);
}
/**
* The maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
*
*/
@Import(name="resolverCountLimit")
private @Nullable Output resolverCountLimit;
/**
* @return The maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
*
*/
public Optional> resolverCountLimit() {
return Optional.ofNullable(this.resolverCountLimit);
}
/**
* Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
*
*/
@Import(name="schema")
private @Nullable Output schema;
/**
* @return Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
*
*/
public Optional> schema() {
return Optional.ofNullable(this.schema);
}
/**
* Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Import(name="tagsAll")
private @Nullable Output> tagsAll;
/**
* @return Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Optional>> tagsAll() {
return Optional.ofNullable(this.tagsAll);
}
/**
* Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
*
*/
@Import(name="uris")
private @Nullable Output> uris;
/**
* @return Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
*
*/
public Optional>> uris() {
return Optional.ofNullable(this.uris);
}
/**
* Amazon Cognito User Pool configuration. See `user_pool_config` Block for details.
*
*/
@Import(name="userPoolConfig")
private @Nullable Output userPoolConfig;
/**
* @return Amazon Cognito User Pool configuration. See `user_pool_config` Block for details.
*
*/
public Optional> userPoolConfig() {
return Optional.ofNullable(this.userPoolConfig);
}
/**
* Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
*
*/
@Import(name="visibility")
private @Nullable Output visibility;
/**
* @return Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
*
*/
public Optional> visibility() {
return Optional.ofNullable(this.visibility);
}
/**
* Whether tracing with X-ray is enabled. Defaults to false.
*
*/
@Import(name="xrayEnabled")
private @Nullable Output xrayEnabled;
/**
* @return Whether tracing with X-ray is enabled. Defaults to false.
*
*/
public Optional> xrayEnabled() {
return Optional.ofNullable(this.xrayEnabled);
}
private GraphQLApiState() {}
private GraphQLApiState(GraphQLApiState $) {
this.additionalAuthenticationProviders = $.additionalAuthenticationProviders;
this.apiType = $.apiType;
this.arn = $.arn;
this.authenticationType = $.authenticationType;
this.enhancedMetricsConfig = $.enhancedMetricsConfig;
this.introspectionConfig = $.introspectionConfig;
this.lambdaAuthorizerConfig = $.lambdaAuthorizerConfig;
this.logConfig = $.logConfig;
this.mergedApiExecutionRoleArn = $.mergedApiExecutionRoleArn;
this.name = $.name;
this.openidConnectConfig = $.openidConnectConfig;
this.queryDepthLimit = $.queryDepthLimit;
this.resolverCountLimit = $.resolverCountLimit;
this.schema = $.schema;
this.tags = $.tags;
this.tagsAll = $.tagsAll;
this.uris = $.uris;
this.userPoolConfig = $.userPoolConfig;
this.visibility = $.visibility;
this.xrayEnabled = $.xrayEnabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GraphQLApiState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GraphQLApiState $;
public Builder() {
$ = new GraphQLApiState();
}
public Builder(GraphQLApiState defaults) {
$ = new GraphQLApiState(Objects.requireNonNull(defaults));
}
/**
* @param additionalAuthenticationProviders One or more additional authentication providers for the GraphQL API. See `additional_authentication_provider` Block for details.
*
* @return builder
*
*/
public Builder additionalAuthenticationProviders(@Nullable Output> additionalAuthenticationProviders) {
$.additionalAuthenticationProviders = additionalAuthenticationProviders;
return this;
}
/**
* @param additionalAuthenticationProviders One or more additional authentication providers for the GraphQL API. See `additional_authentication_provider` Block for details.
*
* @return builder
*
*/
public Builder additionalAuthenticationProviders(List additionalAuthenticationProviders) {
return additionalAuthenticationProviders(Output.of(additionalAuthenticationProviders));
}
/**
* @param additionalAuthenticationProviders One or more additional authentication providers for the GraphQL API. See `additional_authentication_provider` Block for details.
*
* @return builder
*
*/
public Builder additionalAuthenticationProviders(GraphQLApiAdditionalAuthenticationProviderArgs... additionalAuthenticationProviders) {
return additionalAuthenticationProviders(List.of(additionalAuthenticationProviders));
}
/**
* @param apiType API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `merged_api_execution_role_arn` to be set.
*
* @return builder
*
*/
public Builder apiType(@Nullable Output apiType) {
$.apiType = apiType;
return this;
}
/**
* @param apiType API type. Valid values are `GRAPHQL` or `MERGED`. A `MERGED` type requires `merged_api_execution_role_arn` to be set.
*
* @return builder
*
*/
public Builder apiType(String apiType) {
return apiType(Output.of(apiType));
}
/**
* @param arn ARN
*
* @return builder
*
*/
public Builder arn(@Nullable Output arn) {
$.arn = arn;
return this;
}
/**
* @param arn ARN
*
* @return builder
*
*/
public Builder arn(String arn) {
return arn(Output.of(arn));
}
/**
* @param authenticationType Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
*
* @return builder
*
*/
public Builder authenticationType(@Nullable Output authenticationType) {
$.authenticationType = authenticationType;
return this;
}
/**
* @param authenticationType Authentication type. Valid values: `API_KEY`, `AWS_IAM`, `AMAZON_COGNITO_USER_POOLS`, `OPENID_CONNECT`, `AWS_LAMBDA`
*
* @return builder
*
*/
public Builder authenticationType(String authenticationType) {
return authenticationType(Output.of(authenticationType));
}
/**
* @param enhancedMetricsConfig Enables and controls the enhanced metrics feature. See `enhanced_metrics_config` Block for details.
*
* @return builder
*
*/
public Builder enhancedMetricsConfig(@Nullable Output enhancedMetricsConfig) {
$.enhancedMetricsConfig = enhancedMetricsConfig;
return this;
}
/**
* @param enhancedMetricsConfig Enables and controls the enhanced metrics feature. See `enhanced_metrics_config` Block for details.
*
* @return builder
*
*/
public Builder enhancedMetricsConfig(GraphQLApiEnhancedMetricsConfigArgs enhancedMetricsConfig) {
return enhancedMetricsConfig(Output.of(enhancedMetricsConfig));
}
/**
* @param introspectionConfig Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
*
* @return builder
*
*/
public Builder introspectionConfig(@Nullable Output introspectionConfig) {
$.introspectionConfig = introspectionConfig;
return this;
}
/**
* @param introspectionConfig Sets the value of the GraphQL API to enable (`ENABLED`) or disable (`DISABLED`) introspection. If no value is provided, the introspection configuration will be set to ENABLED by default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled. For more information about introspection, see [GraphQL introspection](https://graphql.org/learn/introspection/).
*
* @return builder
*
*/
public Builder introspectionConfig(String introspectionConfig) {
return introspectionConfig(Output.of(introspectionConfig));
}
/**
* @param lambdaAuthorizerConfig Nested argument containing Lambda authorizer configuration. See `lambda_authorizer_config` Block for details.
*
* @return builder
*
*/
public Builder lambdaAuthorizerConfig(@Nullable Output lambdaAuthorizerConfig) {
$.lambdaAuthorizerConfig = lambdaAuthorizerConfig;
return this;
}
/**
* @param lambdaAuthorizerConfig Nested argument containing Lambda authorizer configuration. See `lambda_authorizer_config` Block for details.
*
* @return builder
*
*/
public Builder lambdaAuthorizerConfig(GraphQLApiLambdaAuthorizerConfigArgs lambdaAuthorizerConfig) {
return lambdaAuthorizerConfig(Output.of(lambdaAuthorizerConfig));
}
/**
* @param logConfig Nested argument containing logging configuration. See `log_config` Block for details.
*
* @return builder
*
*/
public Builder logConfig(@Nullable Output logConfig) {
$.logConfig = logConfig;
return this;
}
/**
* @param logConfig Nested argument containing logging configuration. See `log_config` Block for details.
*
* @return builder
*
*/
public Builder logConfig(GraphQLApiLogConfigArgs logConfig) {
return logConfig(Output.of(logConfig));
}
/**
* @param mergedApiExecutionRoleArn ARN of the execution role when `api_type` is set to `MERGED`.
*
* @return builder
*
*/
public Builder mergedApiExecutionRoleArn(@Nullable Output mergedApiExecutionRoleArn) {
$.mergedApiExecutionRoleArn = mergedApiExecutionRoleArn;
return this;
}
/**
* @param mergedApiExecutionRoleArn ARN of the execution role when `api_type` is set to `MERGED`.
*
* @return builder
*
*/
public Builder mergedApiExecutionRoleArn(String mergedApiExecutionRoleArn) {
return mergedApiExecutionRoleArn(Output.of(mergedApiExecutionRoleArn));
}
/**
* @param name User-supplied name for the GraphQL API.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name User-supplied name for the GraphQL API.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param openidConnectConfig Nested argument containing OpenID Connect configuration. See `openid_connect_config` Block for details.
*
* @return builder
*
*/
public Builder openidConnectConfig(@Nullable Output openidConnectConfig) {
$.openidConnectConfig = openidConnectConfig;
return this;
}
/**
* @param openidConnectConfig Nested argument containing OpenID Connect configuration. See `openid_connect_config` Block for details.
*
* @return builder
*
*/
public Builder openidConnectConfig(GraphQLApiOpenidConnectConfigArgs openidConnectConfig) {
return openidConnectConfig(Output.of(openidConnectConfig));
}
/**
* @param queryDepthLimit The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds.
*
* Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
*
* @return builder
*
*/
public Builder queryDepthLimit(@Nullable Output queryDepthLimit) {
$.queryDepthLimit = queryDepthLimit;
return this;
}
/**
* @param queryDepthLimit The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is `0` (or unspecified), which indicates there's no depth limit. If you set a limit, it can be between `1` and `75` nested levels. This field will produce a limit error if the operation falls out of bounds.
*
* Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
*
* @return builder
*
*/
public Builder queryDepthLimit(Integer queryDepthLimit) {
return queryDepthLimit(Output.of(queryDepthLimit));
}
/**
* @param resolverCountLimit The maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
*
* @return builder
*
*/
public Builder resolverCountLimit(@Nullable Output resolverCountLimit) {
$.resolverCountLimit = resolverCountLimit;
return this;
}
/**
* @param resolverCountLimit The maximum number of resolvers that can be invoked in a single request. The default value is `0` (or unspecified), which will set the limit to `10000`. When specified, the limit value can be between `1` and `10000`. This field will produce a limit error if the operation falls out of bounds.
*
* @return builder
*
*/
public Builder resolverCountLimit(Integer resolverCountLimit) {
return resolverCountLimit(Output.of(resolverCountLimit));
}
/**
* @param schema Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
*
* @return builder
*
*/
public Builder schema(@Nullable Output schema) {
$.schema = schema;
return this;
}
/**
* @param schema Schema definition, in GraphQL schema language format. This provider cannot perform drift detection of this configuration.
*
* @return builder
*
*/
public Builder schema(String schema) {
return schema(Output.of(schema));
}
/**
* @param tags Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*
* @return builder
*
*/
public Builder tags(Map tags) {
return tags(Output.of(tags));
}
/**
* @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(@Nullable Output> tagsAll) {
$.tagsAll = tagsAll;
return this;
}
/**
* @param tagsAll Map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
*
* @return builder
*
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
public Builder tagsAll(Map tagsAll) {
return tagsAll(Output.of(tagsAll));
}
/**
* @param uris Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
*
* @return builder
*
*/
public Builder uris(@Nullable Output> uris) {
$.uris = uris;
return this;
}
/**
* @param uris Map of URIs associated with the API E.g., `uris["GRAPHQL"] = https://ID.appsync-api.REGION.amazonaws.com/graphql`
*
* @return builder
*
*/
public Builder uris(Map uris) {
return uris(Output.of(uris));
}
/**
* @param userPoolConfig Amazon Cognito User Pool configuration. See `user_pool_config` Block for details.
*
* @return builder
*
*/
public Builder userPoolConfig(@Nullable Output userPoolConfig) {
$.userPoolConfig = userPoolConfig;
return this;
}
/**
* @param userPoolConfig Amazon Cognito User Pool configuration. See `user_pool_config` Block for details.
*
* @return builder
*
*/
public Builder userPoolConfig(GraphQLApiUserPoolConfigArgs userPoolConfig) {
return userPoolConfig(Output.of(userPoolConfig));
}
/**
* @param visibility Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
*
* @return builder
*
*/
public Builder visibility(@Nullable Output visibility) {
$.visibility = visibility;
return this;
}
/**
* @param visibility Sets the value of the GraphQL API to public (`GLOBAL`) or private (`PRIVATE`). If no value is provided, the visibility will be set to `GLOBAL` by default. This value cannot be changed once the API has been created.
*
* @return builder
*
*/
public Builder visibility(String visibility) {
return visibility(Output.of(visibility));
}
/**
* @param xrayEnabled Whether tracing with X-ray is enabled. Defaults to false.
*
* @return builder
*
*/
public Builder xrayEnabled(@Nullable Output xrayEnabled) {
$.xrayEnabled = xrayEnabled;
return this;
}
/**
* @param xrayEnabled Whether tracing with X-ray is enabled. Defaults to false.
*
* @return builder
*
*/
public Builder xrayEnabled(Boolean xrayEnabled) {
return xrayEnabled(Output.of(xrayEnabled));
}
public GraphQLApiState build() {
return $;
}
}
}