commonMain.aws.sdk.kotlin.services.glue.model.BatchGetTriggersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetTriggersRequest private constructor(builder: Builder) {
/**
* A list of trigger names, which may be the names returned from the `ListTriggers` operation.
*/
public val triggerNames: List? = builder.triggerNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetTriggersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetTriggersRequest(")
append("triggerNames=$triggerNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = triggerNames?.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 BatchGetTriggersRequest
if (triggerNames != other.triggerNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetTriggersRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of trigger names, which may be the names returned from the `ListTriggers` operation.
*/
public var triggerNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetTriggersRequest) : this() {
this.triggerNames = x.triggerNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetTriggersRequest = BatchGetTriggersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}