commonMain.aws.sdk.kotlin.services.apprunner.model.IngressConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apprunner-jvm Show documentation
Show all versions of apprunner-jvm Show documentation
The AWS SDK for Kotlin client for AppRunner
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apprunner.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Network configuration settings for inbound network traffic.
*/
public class IngressConfiguration private constructor(builder: Builder) {
/**
* Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to `True`. To make the service privately accessible, from only within an Amazon VPC set it to `False`.
*/
public val isPubliclyAccessible: kotlin.Boolean = builder.isPubliclyAccessible
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.IngressConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IngressConfiguration(")
append("isPubliclyAccessible=$isPubliclyAccessible")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isPubliclyAccessible.hashCode()
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as IngressConfiguration
if (isPubliclyAccessible != other.isPubliclyAccessible) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.IngressConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies whether your App Runner service is publicly accessible. To make the service publicly accessible set it to `True`. To make the service privately accessible, from only within an Amazon VPC set it to `False`.
*/
public var isPubliclyAccessible: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apprunner.model.IngressConfiguration) : this() {
this.isPubliclyAccessible = x.isPubliclyAccessible
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apprunner.model.IngressConfiguration = IngressConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}