io.burkard.cdk.services.apigateway.cfnDeployment.MethodSettingProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.apigateway.cfnDeployment
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object MethodSettingProperty {
def apply(
resourcePath: Option[String] = None,
cacheTtlInSeconds: Option[Number] = None,
throttlingBurstLimit: Option[Number] = None,
httpMethod: Option[String] = None,
dataTraceEnabled: Option[Boolean] = None,
loggingLevel: Option[String] = None,
throttlingRateLimit: Option[Number] = None,
cacheDataEncrypted: Option[Boolean] = None,
cachingEnabled: Option[Boolean] = None,
metricsEnabled: Option[Boolean] = None
): software.amazon.awscdk.services.apigateway.CfnDeployment.MethodSettingProperty =
(new software.amazon.awscdk.services.apigateway.CfnDeployment.MethodSettingProperty.Builder)
.resourcePath(resourcePath.orNull)
.cacheTtlInSeconds(cacheTtlInSeconds.orNull)
.throttlingBurstLimit(throttlingBurstLimit.orNull)
.httpMethod(httpMethod.orNull)
.dataTraceEnabled(dataTraceEnabled.map(Boolean.box).orNull)
.loggingLevel(loggingLevel.orNull)
.throttlingRateLimit(throttlingRateLimit.orNull)
.cacheDataEncrypted(cacheDataEncrypted.map(Boolean.box).orNull)
.cachingEnabled(cachingEnabled.map(Boolean.box).orNull)
.metricsEnabled(metricsEnabled.map(Boolean.box).orNull)
.build()
}