commonMain.aws.sdk.kotlin.services.apprunner.model.UpdateVpcIngressConnectionRequest.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
public class UpdateVpcIngressConnectionRequest private constructor(builder: Builder) {
/**
* Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to update the VPC Ingress Connection resource.
*/
public val ingressVpcConfiguration: aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration? = builder.ingressVpcConfiguration
/**
* The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.
*/
public val vpcIngressConnectionArn: kotlin.String? = builder.vpcIngressConnectionArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.UpdateVpcIngressConnectionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateVpcIngressConnectionRequest(")
append("ingressVpcConfiguration=$ingressVpcConfiguration,")
append("vpcIngressConnectionArn=$vpcIngressConnectionArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ingressVpcConfiguration?.hashCode() ?: 0
result = 31 * result + (vpcIngressConnectionArn?.hashCode() ?: 0)
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 UpdateVpcIngressConnectionRequest
if (ingressVpcConfiguration != other.ingressVpcConfiguration) return false
if (vpcIngressConnectionArn != other.vpcIngressConnectionArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.UpdateVpcIngressConnectionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to update the VPC Ingress Connection resource.
*/
public var ingressVpcConfiguration: aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration? = null
/**
* The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.
*/
public var vpcIngressConnectionArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apprunner.model.UpdateVpcIngressConnectionRequest) : this() {
this.ingressVpcConfiguration = x.ingressVpcConfiguration
this.vpcIngressConnectionArn = x.vpcIngressConnectionArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apprunner.model.UpdateVpcIngressConnectionRequest = UpdateVpcIngressConnectionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration] inside the given [block]
*/
public fun ingressVpcConfiguration(block: aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration.Builder.() -> kotlin.Unit) {
this.ingressVpcConfiguration = aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}