All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.s3control.model



/**
 * The alias of an Object Lambda Access Point. For more information, see [How to use a bucket-style alias for your S3 bucket Object Lambda Access Point](https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-use.html#ol-access-points-alias).
 */
public class ObjectLambdaAccessPointAlias private constructor(builder: Builder) {
    /**
     * The status of the Object Lambda Access Point alias. If the status is `PROVISIONING`, the Object Lambda Access Point is provisioning the alias and the alias is not ready for use yet. If the status is `READY`, the Object Lambda Access Point alias is successfully provisioned and ready for use.
     */
    public val status: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAliasStatus? = builder.status
    /**
     * The alias value of the Object Lambda Access Point.
     */
    public val value: kotlin.String? = builder.value

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ObjectLambdaAccessPointAlias(")
        append("status=$status,")
        append("value=$value")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = status?.hashCode() ?: 0
        result = 31 * result + (value?.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 ObjectLambdaAccessPointAlias

        if (status != other.status) return false
        if (value != other.value) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The status of the Object Lambda Access Point alias. If the status is `PROVISIONING`, the Object Lambda Access Point is provisioning the alias and the alias is not ready for use yet. If the status is `READY`, the Object Lambda Access Point alias is successfully provisioned and ready for use.
         */
        public var status: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAliasStatus? = null
        /**
         * The alias value of the Object Lambda Access Point.
         */
        public var value: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias) : this() {
            this.status = x.status
            this.value = x.value
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.s3control.model.ObjectLambdaAccessPointAlias = ObjectLambdaAccessPointAlias(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy