
commonMain.aws.sdk.kotlin.services.kafka.model.DescribeVpcConnectionResponse.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 DescribeVpcConnectionResponse private constructor(builder: Builder) {
/**
* The authentication type of VPC connection.
*/
public val authentication: kotlin.String? = builder.authentication
/**
* The creation time of the VPC connection.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The list of security groups for the VPC connection.
*/
public val securityGroups: List? = builder.securityGroups
/**
* The state of VPC connection.
*/
public val state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = builder.state
/**
* The list of subnets for the VPC connection.
*/
public val subnets: List? = builder.subnets
/**
* A map of tags for the VPC connection.
*/
public val tags: Map? = builder.tags
/**
* The Amazon Resource Name (ARN) that uniquely identifies an MSK cluster.
*/
public val targetClusterArn: kotlin.String? = builder.targetClusterArn
/**
* The Amazon Resource Name (ARN) that uniquely identifies a MSK VPC connection.
*/
public val vpcConnectionArn: kotlin.String? = builder.vpcConnectionArn
/**
* The VPC Id for 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.DescribeVpcConnectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeVpcConnectionResponse(")
append("authentication=$authentication,")
append("creationTime=$creationTime,")
append("securityGroups=$securityGroups,")
append("state=$state,")
append("subnets=$subnets,")
append("tags=$tags,")
append("targetClusterArn=$targetClusterArn,")
append("vpcConnectionArn=$vpcConnectionArn,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authentication?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (securityGroups?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (subnets?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (targetClusterArn?.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 DescribeVpcConnectionResponse
if (authentication != other.authentication) return false
if (creationTime != other.creationTime) return false
if (securityGroups != other.securityGroups) return false
if (state != other.state) return false
if (subnets != other.subnets) return false
if (tags != other.tags) return false
if (targetClusterArn != other.targetClusterArn) 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.DescribeVpcConnectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The authentication type of VPC connection.
*/
public var authentication: kotlin.String? = null
/**
* The creation time of the VPC connection.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The list of security groups for the VPC connection.
*/
public var securityGroups: List? = null
/**
* The state of VPC connection.
*/
public var state: aws.sdk.kotlin.services.kafka.model.VpcConnectionState? = null
/**
* The list of subnets for the VPC connection.
*/
public var subnets: List? = null
/**
* A map of tags for the VPC connection.
*/
public var tags: Map? = null
/**
* The Amazon Resource Name (ARN) that uniquely identifies an MSK cluster.
*/
public var targetClusterArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) that uniquely identifies a MSK VPC connection.
*/
public var vpcConnectionArn: kotlin.String? = null
/**
* The VPC Id for the VPC connection.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafka.model.DescribeVpcConnectionResponse) : this() {
this.authentication = x.authentication
this.creationTime = x.creationTime
this.securityGroups = x.securityGroups
this.state = x.state
this.subnets = x.subnets
this.tags = x.tags
this.targetClusterArn = x.targetClusterArn
this.vpcConnectionArn = x.vpcConnectionArn
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafka.model.DescribeVpcConnectionResponse = DescribeVpcConnectionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy