
commonMain.aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelFlowCallbackRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmessaging.model
public class ChannelFlowCallbackRequest private constructor(builder: Builder) {
/**
* The identifier passed to the processor by the service when invoked. Use the identifier to call back the service.
*/
public val callbackId: kotlin.String? = builder.callbackId
/**
* The ARN of the channel.
*/
public val channelArn: kotlin.String? = builder.channelArn
/**
* Stores information about the processed message.
*/
public val channelMessage: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMessageCallback? = builder.channelMessage
/**
* When a processor determines that a message needs to be `DENIED`, pass this parameter with a value of true.
*/
public val deleteResource: kotlin.Boolean? = builder.deleteResource
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelFlowCallbackRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ChannelFlowCallbackRequest(")
append("callbackId=$callbackId,")
append("channelArn=$channelArn,")
append("channelMessage=$channelMessage,")
append("deleteResource=$deleteResource")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = callbackId?.hashCode() ?: 0
result = 31 * result + (channelArn?.hashCode() ?: 0)
result = 31 * result + (channelMessage?.hashCode() ?: 0)
result = 31 * result + (deleteResource?.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 ChannelFlowCallbackRequest
if (callbackId != other.callbackId) return false
if (channelArn != other.channelArn) return false
if (channelMessage != other.channelMessage) return false
if (deleteResource != other.deleteResource) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelFlowCallbackRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier passed to the processor by the service when invoked. Use the identifier to call back the service.
*/
public var callbackId: kotlin.String? = null
/**
* The ARN of the channel.
*/
public var channelArn: kotlin.String? = null
/**
* Stores information about the processed message.
*/
public var channelMessage: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMessageCallback? = null
/**
* When a processor determines that a message needs to be `DENIED`, pass this parameter with a value of true.
*/
public var deleteResource: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelFlowCallbackRequest) : this() {
this.callbackId = x.callbackId
this.channelArn = x.channelArn
this.channelMessage = x.channelMessage
this.deleteResource = x.deleteResource
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelFlowCallbackRequest = ChannelFlowCallbackRequest(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMessageCallback] inside the given [block]
*/
public fun channelMessage(block: aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMessageCallback.Builder.() -> kotlin.Unit) {
this.channelMessage = aws.sdk.kotlin.services.chimesdkmessaging.model.ChannelMessageCallback.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy