commonMain.aws.sdk.kotlin.services.pinpointsmsvoice.model.KinesisFirehoseDestination.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoice-jvm Show documentation
Show all versions of pinpointsmsvoice-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that contains information about an event destination that sends data to Amazon Kinesis Data Firehose.
*/
public class KinesisFirehoseDestination private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream.
*/
public val deliveryStreamArn: kotlin.String? = builder.deliveryStreamArn
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination.
*/
public val iamRoleArn: kotlin.String? = builder.iamRoleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoice.model.KinesisFirehoseDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KinesisFirehoseDestination(")
append("deliveryStreamArn=$deliveryStreamArn,")
append("iamRoleArn=$iamRoleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryStreamArn?.hashCode() ?: 0
result = 31 * result + (iamRoleArn?.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 KinesisFirehoseDestination
if (deliveryStreamArn != other.deliveryStreamArn) return false
if (iamRoleArn != other.iamRoleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoice.model.KinesisFirehoseDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream.
*/
public var deliveryStreamArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination.
*/
public var iamRoleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoice.model.KinesisFirehoseDestination) : this() {
this.deliveryStreamArn = x.deliveryStreamArn
this.iamRoleArn = x.iamRoleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoice.model.KinesisFirehoseDestination = KinesisFirehoseDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}