commonMain.aws.sdk.kotlin.services.snowball.model.LambdaResource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowball-jvm Show documentation
Show all versions of snowball-jvm Show documentation
The AWS SDK for Kotlin client for Snowball
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowball.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Identifies
*/
public class LambdaResource private constructor(builder: Builder) {
/**
* The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
*/
public val eventTriggers: List? = builder.eventTriggers
/**
* An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
*/
public val lambdaArn: kotlin.String? = builder.lambdaArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowball.model.LambdaResource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LambdaResource(")
append("eventTriggers=$eventTriggers,")
append("lambdaArn=$lambdaArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventTriggers?.hashCode() ?: 0
result = 31 * result + (lambdaArn?.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 LambdaResource
if (eventTriggers != other.eventTriggers) return false
if (lambdaArn != other.lambdaArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowball.model.LambdaResource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The array of ARNs for S3Resource objects to trigger the LambdaResource objects associated with this job.
*/
public var eventTriggers: List? = null
/**
* An Amazon Resource Name (ARN) that represents an Lambda function to be triggered by PUT object actions on the associated local Amazon S3 resource.
*/
public var lambdaArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowball.model.LambdaResource) : this() {
this.eventTriggers = x.eventTriggers
this.lambdaArn = x.lambdaArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowball.model.LambdaResource = LambdaResource(this)
internal fun correctErrors(): Builder {
return this
}
}
}