commonMain.aws.sdk.kotlin.services.apprunner.model.CreateVpcIngressConnectionRequest.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 CreateVpcIngressConnectionRequest private constructor(builder: Builder) {
/**
* Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
*/
public val ingressVpcConfiguration: aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration? = builder.ingressVpcConfiguration
/**
* The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.
*/
public val serviceArn: kotlin.String? = builder.serviceArn
/**
* An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
*/
public val tags: List? = builder.tags
/**
* A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your Amazon Web Services account in the Amazon Web Services Region.
*/
public val vpcIngressConnectionName: kotlin.String? = builder.vpcIngressConnectionName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.CreateVpcIngressConnectionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateVpcIngressConnectionRequest(")
append("ingressVpcConfiguration=$ingressVpcConfiguration,")
append("serviceArn=$serviceArn,")
append("tags=$tags,")
append("vpcIngressConnectionName=$vpcIngressConnectionName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ingressVpcConfiguration?.hashCode() ?: 0
result = 31 * result + (serviceArn?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vpcIngressConnectionName?.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 CreateVpcIngressConnectionRequest
if (ingressVpcConfiguration != other.ingressVpcConfiguration) return false
if (serviceArn != other.serviceArn) return false
if (tags != other.tags) return false
if (vpcIngressConnectionName != other.vpcIngressConnectionName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.CreateVpcIngressConnectionRequest = 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 create the VPC Ingress Connection resource.
*/
public var ingressVpcConfiguration: aws.sdk.kotlin.services.apprunner.model.IngressVpcConfiguration? = null
/**
* The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.
*/
public var serviceArn: kotlin.String? = null
/**
* An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
*/
public var tags: List? = null
/**
* A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your Amazon Web Services account in the Amazon Web Services Region.
*/
public var vpcIngressConnectionName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apprunner.model.CreateVpcIngressConnectionRequest) : this() {
this.ingressVpcConfiguration = x.ingressVpcConfiguration
this.serviceArn = x.serviceArn
this.tags = x.tags
this.vpcIngressConnectionName = x.vpcIngressConnectionName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apprunner.model.CreateVpcIngressConnectionRequest = CreateVpcIngressConnectionRequest(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
}
}
}