
commonMain.aws.sdk.kotlin.services.s3control.model.ObjectLambdaTransformationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* A configuration used when creating an Object Lambda Access Point transformation.
*/
public class ObjectLambdaTransformationConfiguration private constructor(builder: Builder) {
/**
* A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject`, `ListObjects`, `HeadObject`, and `ListObjectsV2`.
*/
public val actions: List = requireNotNull(builder.actions) { "A non-null value must be provided for actions" }
/**
* A container for the content transformation of an Object Lambda Access Point configuration.
*/
public val contentTransformation: aws.sdk.kotlin.services.s3control.model.ObjectLambdaContentTransformation? = builder.contentTransformation
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.ObjectLambdaTransformationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ObjectLambdaTransformationConfiguration(")
append("actions=$actions,")
append("contentTransformation=$contentTransformation")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actions.hashCode()
result = 31 * result + (contentTransformation?.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 ObjectLambdaTransformationConfiguration
if (actions != other.actions) return false
if (contentTransformation != other.contentTransformation) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.ObjectLambdaTransformationConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* A container for the action of an Object Lambda Access Point configuration. Valid inputs are `GetObject`, `ListObjects`, `HeadObject`, and `ListObjectsV2`.
*/
public var actions: List? = null
/**
* A container for the content transformation of an Object Lambda Access Point configuration.
*/
public var contentTransformation: aws.sdk.kotlin.services.s3control.model.ObjectLambdaContentTransformation? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.ObjectLambdaTransformationConfiguration) : this() {
this.actions = x.actions
this.contentTransformation = x.contentTransformation
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.ObjectLambdaTransformationConfiguration = ObjectLambdaTransformationConfiguration(this)
internal fun correctErrors(): Builder {
if (actions == null) actions = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy