commonMain.aws.sdk.kotlin.services.firehose.model.DeleteDeliveryStreamRequest.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 DeleteDeliveryStreamRequest private constructor(builder: Builder) {
/**
* Set this to true if you want to delete the Firehose stream even if Firehose is unable to retire the grant for the CMK. Firehose might be unable to retire the grant due to a customer error, such as when the CMK or the grant are in an invalid state. If you force deletion, you can then use the [RevokeGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) operation to revoke the grant you gave to Firehose. If a failure to retire the grant happens due to an Amazon Web Services KMS issue, Firehose keeps retrying the delete operation.
*
* The default value is false.
*/
public val allowForceDelete: kotlin.Boolean? = builder.allowForceDelete
/**
* The name of the Firehose stream.
*/
public val deliveryStreamName: kotlin.String? = builder.deliveryStreamName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.firehose.model.DeleteDeliveryStreamRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDeliveryStreamRequest(")
append("allowForceDelete=$allowForceDelete,")
append("deliveryStreamName=$deliveryStreamName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowForceDelete?.hashCode() ?: 0
result = 31 * result + (deliveryStreamName?.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 DeleteDeliveryStreamRequest
if (allowForceDelete != other.allowForceDelete) return false
if (deliveryStreamName != other.deliveryStreamName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.firehose.model.DeleteDeliveryStreamRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Set this to true if you want to delete the Firehose stream even if Firehose is unable to retire the grant for the CMK. Firehose might be unable to retire the grant due to a customer error, such as when the CMK or the grant are in an invalid state. If you force deletion, you can then use the [RevokeGrant](https://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) operation to revoke the grant you gave to Firehose. If a failure to retire the grant happens due to an Amazon Web Services KMS issue, Firehose keeps retrying the delete operation.
*
* The default value is false.
*/
public var allowForceDelete: kotlin.Boolean? = null
/**
* The name of the Firehose stream.
*/
public var deliveryStreamName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.firehose.model.DeleteDeliveryStreamRequest) : this() {
this.allowForceDelete = x.allowForceDelete
this.deliveryStreamName = x.deliveryStreamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.firehose.model.DeleteDeliveryStreamRequest = DeleteDeliveryStreamRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}