commonMain.aws.sdk.kotlin.services.firehose.model.DescribeDeliveryStreamRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeDeliveryStreamRequest private constructor(builder: Builder) {
/**
* The name of the delivery stream.
*/
public val deliveryStreamName: kotlin.String? = builder.deliveryStreamName
/**
* The ID of the destination to start returning the destination information. Firehose supports one destination per delivery stream.
*/
public val exclusiveStartDestinationId: kotlin.String? = builder.exclusiveStartDestinationId
/**
* The limit on the number of destinations to return. You can have one destination per delivery stream.
*/
public val limit: kotlin.Int? = builder.limit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.DescribeDeliveryStreamRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDeliveryStreamRequest(")
append("deliveryStreamName=$deliveryStreamName,")
append("exclusiveStartDestinationId=$exclusiveStartDestinationId,")
append("limit=$limit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliveryStreamName?.hashCode() ?: 0
result = 31 * result + (exclusiveStartDestinationId?.hashCode() ?: 0)
result = 31 * result + (limit ?: 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 DescribeDeliveryStreamRequest
if (deliveryStreamName != other.deliveryStreamName) return false
if (exclusiveStartDestinationId != other.exclusiveStartDestinationId) return false
if (limit != other.limit) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.DescribeDeliveryStreamRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the delivery stream.
*/
public var deliveryStreamName: kotlin.String? = null
/**
* The ID of the destination to start returning the destination information. Firehose supports one destination per delivery stream.
*/
public var exclusiveStartDestinationId: kotlin.String? = null
/**
* The limit on the number of destinations to return. You can have one destination per delivery stream.
*/
public var limit: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.DescribeDeliveryStreamRequest) : this() {
this.deliveryStreamName = x.deliveryStreamName
this.exclusiveStartDestinationId = x.exclusiveStartDestinationId
this.limit = x.limit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.DescribeDeliveryStreamRequest = DescribeDeliveryStreamRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}