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

commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.CreateChannelFlowRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.chimesdkmessaging.model



public class CreateChannelFlowRequest private constructor(builder: Builder) {
    /**
     * The ARN of the channel flow request.
     */
    public val appInstanceArn: kotlin.String? = builder.appInstanceArn
    /**
     * The client token for the request. An Idempotency token.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The name of the channel flow.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Information about the processor Lambda functions.
     */
    public val processors: List? = builder.processors
    /**
     * The tags for the creation request.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateChannelFlowRequest(")
        append("appInstanceArn=$appInstanceArn,")
        append("clientRequestToken=*** Sensitive Data Redacted ***,")
        append("name=*** Sensitive Data Redacted ***,")
        append("processors=$processors,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appInstanceArn?.hashCode() ?: 0
        result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (processors?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateChannelFlowRequest

        if (appInstanceArn != other.appInstanceArn) return false
        if (clientRequestToken != other.clientRequestToken) return false
        if (name != other.name) return false
        if (processors != other.processors) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the channel flow request.
         */
        public var appInstanceArn: kotlin.String? = null
        /**
         * The client token for the request. An Idempotency token.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The name of the channel flow.
         */
        public var name: kotlin.String? = null
        /**
         * Information about the processor Lambda functions.
         */
        public var processors: List? = null
        /**
         * The tags for the creation request.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.CreateChannelFlowRequest) : this() {
            this.appInstanceArn = x.appInstanceArn
            this.clientRequestToken = x.clientRequestToken
            this.name = x.name
            this.processors = x.processors
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy