
commonMain.aws.sdk.kotlin.services.lightsail.model.DeleteLoadBalancerTlsCertificateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class DeleteLoadBalancerTlsCertificateRequest private constructor(builder: Builder) {
/**
* The SSL/TLS certificate name.
*/
public val certificateName: kotlin.String? = builder.certificateName
/**
* When `true`, forces the deletion of an SSL/TLS certificate.
*
* There can be two certificates associated with a Lightsail load balancer: the primary and the backup. The `force` parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer.
*/
public val force: kotlin.Boolean? = builder.force
/**
* The load balancer name.
*/
public val loadBalancerName: kotlin.String? = builder.loadBalancerName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.DeleteLoadBalancerTlsCertificateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteLoadBalancerTlsCertificateRequest(")
append("certificateName=$certificateName,")
append("force=$force,")
append("loadBalancerName=$loadBalancerName)")
}
override fun hashCode(): kotlin.Int {
var result = certificateName?.hashCode() ?: 0
result = 31 * result + (force?.hashCode() ?: 0)
result = 31 * result + (loadBalancerName?.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 DeleteLoadBalancerTlsCertificateRequest
if (certificateName != other.certificateName) return false
if (force != other.force) return false
if (loadBalancerName != other.loadBalancerName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.DeleteLoadBalancerTlsCertificateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The SSL/TLS certificate name.
*/
public var certificateName: kotlin.String? = null
/**
* When `true`, forces the deletion of an SSL/TLS certificate.
*
* There can be two certificates associated with a Lightsail load balancer: the primary and the backup. The `force` parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer.
*/
public var force: kotlin.Boolean? = null
/**
* The load balancer name.
*/
public var loadBalancerName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.DeleteLoadBalancerTlsCertificateRequest) : this() {
this.certificateName = x.certificateName
this.force = x.force
this.loadBalancerName = x.loadBalancerName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.DeleteLoadBalancerTlsCertificateRequest = DeleteLoadBalancerTlsCertificateRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy