
commonMain.aws.sdk.kotlin.services.lambda.model.DeleteFunctionEventInvokeConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lambda.model
public class DeleteFunctionEventInvokeConfigRequest private constructor(builder: Builder) {
/**
* The name of the Lambda function, version, or alias.
*
* **Name formats**
* + **Function name** - `my-function` (name-only), `my-function:v1` (with alias).
* + **Function ARN** - `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
* + **Partial ARN** - `123456789012:function:my-function`.
*
* You can append a version number or alias to any of the formats. 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" }
/**
* A version number or alias name.
*/
public val qualifier: kotlin.String? = builder.qualifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lambda.model.DeleteFunctionEventInvokeConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFunctionEventInvokeConfigRequest(")
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 DeleteFunctionEventInvokeConfigRequest
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.DeleteFunctionEventInvokeConfigRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the Lambda function, version, or alias.
*
* **Name formats**
* + **Function name** - `my-function` (name-only), `my-function:v1` (with alias).
* + **Function ARN** - `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
* + **Partial ARN** - `123456789012:function:my-function`.
*
* You can append a version number or alias to any of the formats. 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
/**
* A version number or alias name.
*/
public var qualifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lambda.model.DeleteFunctionEventInvokeConfigRequest) : this() {
this.functionName = x.functionName
this.qualifier = x.qualifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lambda.model.DeleteFunctionEventInvokeConfigRequest = DeleteFunctionEventInvokeConfigRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy