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

commonMain.aws.sdk.kotlin.services.lambda.model.GetRuntimeManagementConfigRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lambda.model



public class GetRuntimeManagementConfigRequest private constructor(builder: Builder) {
    /**
     * The name of the Lambda function.
     *
     * **Name formats**
     * + **Function name** – `my-function`.
     * + **Function ARN** – `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
     * + **Partial ARN** – `123456789012:function:my-function`.
     *
     * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
     */
    public val functionName: kotlin.String? = requireNotNull(builder.functionName) { "A non-null value must be provided for functionName" }
    /**
     * Specify a version of the function. This can be `$LATEST` or a published version number. If no value is specified, the configuration for the `$LATEST` version is returned.
     */
    public val qualifier: kotlin.String? = builder.qualifier

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

    override fun toString(): kotlin.String = buildString {
        append("GetRuntimeManagementConfigRequest(")
        append("functionName=$functionName,")
        append("qualifier=$qualifier")
        append(")")
    }

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

        if (functionName != other.functionName) return false
        if (qualifier != other.qualifier) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of the Lambda function.
         *
         * **Name formats**
         * + **Function name** – `my-function`.
         * + **Function ARN** – `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
         * + **Partial ARN** – `123456789012:function:my-function`.
         *
         * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
         */
        public var functionName: kotlin.String? = null
        /**
         * Specify a version of the function. This can be `$LATEST` or a published version number. If no value is specified, the configuration for the `$LATEST` version is returned.
         */
        public var qualifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lambda.model.GetRuntimeManagementConfigRequest) : this() {
            this.functionName = x.functionName
            this.qualifier = x.qualifier
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.lambda.model.GetRuntimeManagementConfigRequest = GetRuntimeManagementConfigRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy