
commonMain.aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafka.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class CreateVpcConnectionResponse private constructor(builder: Builder) {
/**
* The authentication type of VPC connection.
*/
public val authentication: kotlin.String? = builder.authentication
/**
* The list of client subnets.
*/
public val clientSubnets: List? = builder.clientSubnets
/**
* The creation time of VPC connection.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The list of security groups.
*/
public val securityGroups: List? = builder.securityGroups
/**
* The State of Vpc Connection.
*/
public val state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = builder.state
/**
* A map of tags for the VPC connection.
*/
public val tags: Map? = builder.tags
/**
* The VPC connection ARN.
*/
public val vpcConnectionArn: kotlin.String? = builder.vpcConnectionArn
/**
* The VPC ID of the VPC connection.
*/
public val vpcId: kotlin.String? = builder.vpcId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateVpcConnectionResponse(")
append("authentication=$authentication,")
append("clientSubnets=$clientSubnets,")
append("creationTime=$creationTime,")
append("securityGroups=$securityGroups,")
append("state=$state,")
append("tags=$tags,")
append("vpcConnectionArn=$vpcConnectionArn,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authentication?.hashCode() ?: 0
result = 31 * result + (clientSubnets?.hashCode() ?: 0)
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (securityGroups?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vpcConnectionArn?.hashCode() ?: 0)
result = 31 * result + (vpcId?.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 CreateVpcConnectionResponse
if (authentication != other.authentication) return false
if (clientSubnets != other.clientSubnets) return false
if (creationTime != other.creationTime) return false
if (securityGroups != other.securityGroups) return false
if (state != other.state) return false
if (tags != other.tags) return false
if (vpcConnectionArn != other.vpcConnectionArn) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The authentication type of VPC connection.
*/
public var authentication: kotlin.String? = null
/**
* The list of client subnets.
*/
public var clientSubnets: List? = null
/**
* The creation time of VPC connection.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The list of security groups.
*/
public var securityGroups: List? = null
/**
* The State of Vpc Connection.
*/
public var state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = null
/**
* A map of tags for the VPC connection.
*/
public var tags: Map? = null
/**
* The VPC connection ARN.
*/
public var vpcConnectionArn: kotlin.String? = null
/**
* The VPC ID of the VPC connection.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionResponse) : this() {
this.authentication = x.authentication
this.clientSubnets = x.clientSubnets
this.creationTime = x.creationTime
this.securityGroups = x.securityGroups
this.state = x.state
this.tags = x.tags
this.vpcConnectionArn = x.vpcConnectionArn
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.CreateVpcConnectionResponse = CreateVpcConnectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy