commonMain.aws.sdk.kotlin.services.secretsmanager.model.DeleteSecretResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secretsmanager-jvm Show documentation
Show all versions of secretsmanager-jvm Show documentation
The AWS SDK for Kotlin client for Secrets Manager
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.secretsmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class DeleteSecretResponse private constructor(builder: Builder) {
/**
* The ARN of the secret.
*/
public val arn: kotlin.String? = builder.arn
/**
* The date and time after which this secret Secrets Manager can permanently delete this secret, and it can no longer be restored. This value is the date and time of the delete request plus the number of days in `RecoveryWindowInDays`.
*/
public val deletionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.deletionDate
/**
* The name of the secret.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.secretsmanager.model.DeleteSecretResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteSecretResponse(")
append("arn=$arn,")
append("deletionDate=$deletionDate,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (deletionDate?.hashCode() ?: 0)
result = 31 * result + (name?.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 DeleteSecretResponse
if (arn != other.arn) return false
if (deletionDate != other.deletionDate) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.secretsmanager.model.DeleteSecretResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the secret.
*/
public var arn: kotlin.String? = null
/**
* The date and time after which this secret Secrets Manager can permanently delete this secret, and it can no longer be restored. This value is the date and time of the delete request plus the number of days in `RecoveryWindowInDays`.
*/
public var deletionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the secret.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.secretsmanager.model.DeleteSecretResponse) : this() {
this.arn = x.arn
this.deletionDate = x.deletionDate
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.secretsmanager.model.DeleteSecretResponse = DeleteSecretResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}