commonMain.aws.sdk.kotlin.services.glue.model.PhysicalConnectionRequirements.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The OAuth client app in GetConnection response.
*/
public class PhysicalConnectionRequirements private constructor(builder: Builder) {
/**
* The connection's Availability Zone.
*/
public val availabilityZone: kotlin.String? = builder.availabilityZone
/**
* The security group ID list used by the connection.
*/
public val securityGroupIdList: List? = builder.securityGroupIdList
/**
* The subnet ID used by the connection.
*/
public val subnetId: kotlin.String? = builder.subnetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.PhysicalConnectionRequirements = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PhysicalConnectionRequirements(")
append("availabilityZone=$availabilityZone,")
append("securityGroupIdList=$securityGroupIdList,")
append("subnetId=$subnetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = availabilityZone?.hashCode() ?: 0
result = 31 * result + (securityGroupIdList?.hashCode() ?: 0)
result = 31 * result + (subnetId?.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 PhysicalConnectionRequirements
if (availabilityZone != other.availabilityZone) return false
if (securityGroupIdList != other.securityGroupIdList) return false
if (subnetId != other.subnetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.PhysicalConnectionRequirements = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The connection's Availability Zone.
*/
public var availabilityZone: kotlin.String? = null
/**
* The security group ID list used by the connection.
*/
public var securityGroupIdList: List? = null
/**
* The subnet ID used by the connection.
*/
public var subnetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.PhysicalConnectionRequirements) : this() {
this.availabilityZone = x.availabilityZone
this.securityGroupIdList = x.securityGroupIdList
this.subnetId = x.subnetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.PhysicalConnectionRequirements = PhysicalConnectionRequirements(this)
internal fun correctErrors(): Builder {
return this
}
}
}