
commonMain.aws.sdk.kotlin.services.apptest.model.Tn3270.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the TN3270 protocol.
*/
public class Tn3270 private constructor(builder: Builder) {
/**
* The data set names of the TN3270 protocol.
*/
public val exportDataSetNames: List? = builder.exportDataSetNames
/**
* The script of the TN3270 protocol.
*/
public val script: aws.sdk.kotlin.services.apptest.model.Script? = builder.script
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.Tn3270 = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Tn3270(")
append("exportDataSetNames=$exportDataSetNames,")
append("script=$script")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exportDataSetNames?.hashCode() ?: 0
result = 31 * result + (script?.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 Tn3270
if (exportDataSetNames != other.exportDataSetNames) return false
if (script != other.script) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.Tn3270 = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The data set names of the TN3270 protocol.
*/
public var exportDataSetNames: List? = null
/**
* The script of the TN3270 protocol.
*/
public var script: aws.sdk.kotlin.services.apptest.model.Script? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.Tn3270) : this() {
this.exportDataSetNames = x.exportDataSetNames
this.script = x.script
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.Tn3270 = Tn3270(this)
/**
* construct an [aws.sdk.kotlin.services.apptest.model.Script] inside the given [block]
*/
public fun script(block: aws.sdk.kotlin.services.apptest.model.Script.Builder.() -> kotlin.Unit) {
this.script = aws.sdk.kotlin.services.apptest.model.Script.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy