
commonMain.aws.sdk.kotlin.services.s3control.model.CreateAccessPointForObjectLambdaRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class CreateAccessPointForObjectLambdaRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID for owner of the specified Object Lambda Access Point.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* Object Lambda Access Point configuration as a JSON document.
*/
public val configuration: aws.sdk.kotlin.services.s3control.model.ObjectLambdaConfiguration? = builder.configuration
/**
* The name you want to assign to this Object Lambda Access Point.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateAccessPointForObjectLambdaRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccessPointForObjectLambdaRequest(")
append("accountId=$accountId,")
append("configuration=$configuration,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (configuration?.hashCode() ?: 0)
result = 31 * result + (name?.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 CreateAccessPointForObjectLambdaRequest
if (accountId != other.accountId) return false
if (configuration != other.configuration) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateAccessPointForObjectLambdaRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID for owner of the specified Object Lambda Access Point.
*/
public var accountId: kotlin.String? = null
/**
* Object Lambda Access Point configuration as a JSON document.
*/
public var configuration: aws.sdk.kotlin.services.s3control.model.ObjectLambdaConfiguration? = null
/**
* The name you want to assign to this Object Lambda Access Point.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateAccessPointForObjectLambdaRequest) : this() {
this.accountId = x.accountId
this.configuration = x.configuration
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateAccessPointForObjectLambdaRequest = CreateAccessPointForObjectLambdaRequest(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.ObjectLambdaConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.s3control.model.ObjectLambdaConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.s3control.model.ObjectLambdaConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy