
commonMain.aws.sdk.kotlin.services.s3control.model.AwsLambdaTransformation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* Lambda function used to transform objects through an Object Lambda Access Point.
*/
public class AwsLambdaTransformation private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the Lambda function.
*/
public val functionArn: kotlin.String = requireNotNull(builder.functionArn) { "A non-null value must be provided for functionArn" }
/**
* Additional JSON that provides supplemental data to the Lambda function used to transform objects.
*/
public val functionPayload: kotlin.String? = builder.functionPayload
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.AwsLambdaTransformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AwsLambdaTransformation(")
append("functionArn=$functionArn,")
append("functionPayload=$functionPayload")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = functionArn.hashCode()
result = 31 * result + (functionPayload?.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 AwsLambdaTransformation
if (functionArn != other.functionArn) return false
if (functionPayload != other.functionPayload) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.AwsLambdaTransformation = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Lambda function.
*/
public var functionArn: kotlin.String? = null
/**
* Additional JSON that provides supplemental data to the Lambda function used to transform objects.
*/
public var functionPayload: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.AwsLambdaTransformation) : this() {
this.functionArn = x.functionArn
this.functionPayload = x.functionPayload
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.AwsLambdaTransformation = AwsLambdaTransformation(this)
internal fun correctErrors(): Builder {
if (functionArn == null) functionArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy