commonMain.aws.sdk.kotlin.services.glue.model.BatchGetTriggersResponse.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 BatchGetTriggersResponse private constructor(builder: Builder) {
/**
* A list of trigger definitions.
*/
public val triggers: List? = builder.triggers
/**
* A list of names of triggers not found.
*/
public val triggersNotFound: List? = builder.triggersNotFound
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetTriggersResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetTriggersResponse(")
append("triggers=$triggers,")
append("triggersNotFound=$triggersNotFound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = triggers?.hashCode() ?: 0
result = 31 * result + (triggersNotFound?.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 BatchGetTriggersResponse
if (triggers != other.triggers) return false
if (triggersNotFound != other.triggersNotFound) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetTriggersResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of trigger definitions.
*/
public var triggers: List? = null
/**
* A list of names of triggers not found.
*/
public var triggersNotFound: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetTriggersResponse) : this() {
this.triggers = x.triggers
this.triggersNotFound = x.triggersNotFound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetTriggersResponse = BatchGetTriggersResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}