public static final class CfnApiProps.Builder
extends java.lang.Object
CfnApiProps
Constructor and Description |
---|
Builder() |
public CfnApiProps.Builder stageName(java.lang.String stageName)
CfnApiProps.getStageName()
stageName
- `AWS::Serverless::Api.StageName`. This parameter is required.this
public CfnApiProps.Builder accessLogSetting(CfnApi.AccessLogSettingProperty accessLogSetting)
CfnApiProps.getAccessLogSetting()
accessLogSetting
- `AWS::Serverless::Api.AccessLogSetting`.this
public CfnApiProps.Builder accessLogSetting(IResolvable accessLogSetting)
CfnApiProps.getAccessLogSetting()
accessLogSetting
- `AWS::Serverless::Api.AccessLogSetting`.this
public CfnApiProps.Builder auth(IResolvable auth)
CfnApiProps.getAuth()
auth
- `AWS::Serverless::Api.Auth`.this
public CfnApiProps.Builder auth(CfnApi.AuthProperty auth)
CfnApiProps.getAuth()
auth
- `AWS::Serverless::Api.Auth`.this
public CfnApiProps.Builder binaryMediaTypes(java.util.List<java.lang.String> binaryMediaTypes)
CfnApiProps.getBinaryMediaTypes()
binaryMediaTypes
- `AWS::Serverless::Api.BinaryMediaTypes`.this
public CfnApiProps.Builder cacheClusterEnabled(java.lang.Boolean cacheClusterEnabled)
CfnApiProps.getCacheClusterEnabled()
cacheClusterEnabled
- `AWS::Serverless::Api.CacheClusterEnabled`.this
public CfnApiProps.Builder cacheClusterEnabled(IResolvable cacheClusterEnabled)
CfnApiProps.getCacheClusterEnabled()
cacheClusterEnabled
- `AWS::Serverless::Api.CacheClusterEnabled`.this
public CfnApiProps.Builder cacheClusterSize(java.lang.String cacheClusterSize)
CfnApiProps.getCacheClusterSize()
cacheClusterSize
- `AWS::Serverless::Api.CacheClusterSize`.this
public CfnApiProps.Builder canarySetting(IResolvable canarySetting)
CfnApiProps.getCanarySetting()
canarySetting
- `AWS::Serverless::Api.CanarySetting`.this
public CfnApiProps.Builder canarySetting(CfnApi.CanarySettingProperty canarySetting)
CfnApiProps.getCanarySetting()
canarySetting
- `AWS::Serverless::Api.CanarySetting`.this
public CfnApiProps.Builder cors(java.lang.String cors)
CfnApiProps.getCors()
cors
- `AWS::Serverless::Api.Cors`.this
public CfnApiProps.Builder cors(IResolvable cors)
CfnApiProps.getCors()
cors
- `AWS::Serverless::Api.Cors`.this
public CfnApiProps.Builder cors(CfnApi.CorsConfigurationProperty cors)
CfnApiProps.getCors()
cors
- `AWS::Serverless::Api.Cors`.this
public CfnApiProps.Builder definitionBody(java.lang.Object definitionBody)
CfnApiProps.getDefinitionBody()
definitionBody
- `AWS::Serverless::Api.DefinitionBody`.this
public CfnApiProps.Builder definitionUri(java.lang.String definitionUri)
CfnApiProps.getDefinitionUri()
definitionUri
- `AWS::Serverless::Api.DefinitionUri`.this
public CfnApiProps.Builder definitionUri(IResolvable definitionUri)
CfnApiProps.getDefinitionUri()
definitionUri
- `AWS::Serverless::Api.DefinitionUri`.this
public CfnApiProps.Builder definitionUri(CfnApi.S3LocationProperty definitionUri)
CfnApiProps.getDefinitionUri()
definitionUri
- `AWS::Serverless::Api.DefinitionUri`.this
public CfnApiProps.Builder description(java.lang.String description)
CfnApiProps.getDescription()
description
- `AWS::Serverless::Api.Description`.this
public CfnApiProps.Builder domain(IResolvable domain)
CfnApiProps.getDomain()
domain
- `AWS::Serverless::Api.Domain`.this
public CfnApiProps.Builder domain(CfnApi.DomainConfigurationProperty domain)
CfnApiProps.getDomain()
domain
- `AWS::Serverless::Api.Domain`.this
public CfnApiProps.Builder endpointConfiguration(java.lang.String endpointConfiguration)
CfnApiProps.getEndpointConfiguration()
endpointConfiguration
- `AWS::Serverless::Api.EndpointConfiguration`.this
public CfnApiProps.Builder endpointConfiguration(IResolvable endpointConfiguration)
CfnApiProps.getEndpointConfiguration()
endpointConfiguration
- `AWS::Serverless::Api.EndpointConfiguration`.this
public CfnApiProps.Builder endpointConfiguration(CfnApi.EndpointConfigurationProperty endpointConfiguration)
CfnApiProps.getEndpointConfiguration()
endpointConfiguration
- `AWS::Serverless::Api.EndpointConfiguration`.this
public CfnApiProps.Builder gatewayResponses(java.lang.Object gatewayResponses)
CfnApiProps.getGatewayResponses()
gatewayResponses
- `AWS::Serverless::Api.GatewayResponses`.this
public CfnApiProps.Builder methodSettings(java.util.List<? extends java.lang.Object> methodSettings)
CfnApiProps.getMethodSettings()
methodSettings
- `AWS::Serverless::Api.MethodSettings`.this
public CfnApiProps.Builder methodSettings(IResolvable methodSettings)
CfnApiProps.getMethodSettings()
methodSettings
- `AWS::Serverless::Api.MethodSettings`.this
public CfnApiProps.Builder minimumCompressionSize(java.lang.Number minimumCompressionSize)
CfnApiProps.getMinimumCompressionSize()
minimumCompressionSize
- `AWS::Serverless::Api.MinimumCompressionSize`.this
public CfnApiProps.Builder models(java.lang.Object models)
CfnApiProps.getModels()
models
- `AWS::Serverless::Api.Models`.this
public CfnApiProps.Builder name(java.lang.String name)
CfnApiProps.getName()
name
- `AWS::Serverless::Api.Name`.this
public CfnApiProps.Builder openApiVersion(java.lang.String openApiVersion)
CfnApiProps.getOpenApiVersion()
openApiVersion
- `AWS::Serverless::Api.OpenApiVersion`.this
public CfnApiProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
CfnApiProps.getTags()
tags
- `AWS::Serverless::Api.Tags`.this
public CfnApiProps.Builder tracingEnabled(java.lang.Boolean tracingEnabled)
CfnApiProps.getTracingEnabled()
tracingEnabled
- `AWS::Serverless::Api.TracingEnabled`.this
public CfnApiProps.Builder tracingEnabled(IResolvable tracingEnabled)
CfnApiProps.getTracingEnabled()
tracingEnabled
- `AWS::Serverless::Api.TracingEnabled`.this
public CfnApiProps.Builder variables(IResolvable variables)
CfnApiProps.getVariables()
variables
- `AWS::Serverless::Api.Variables`.this
public CfnApiProps.Builder variables(java.util.Map<java.lang.String,java.lang.String> variables)
CfnApiProps.getVariables()
variables
- `AWS::Serverless::Api.Variables`.this
public CfnApiProps build()
CfnApiProps
java.lang.NullPointerException
- if any required attribute was not provided