
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the mutual authentication attributes of a listener.
*/
public class MutualAuthenticationAttributes private constructor(builder: Builder) {
/**
* Indicates whether expired client certificates are ignored.
*/
public val ignoreClientCertificateExpiry: kotlin.Boolean? = builder.ignoreClientCertificateExpiry
/**
* The client certificate handling method. Options are `off`, `passthrough` or `verify`. The default value is `off`.
*/
public val mode: kotlin.String? = builder.mode
/**
* The Amazon Resource Name (ARN) of the trust store.
*/
public val trustStoreArn: kotlin.String? = builder.trustStoreArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MutualAuthenticationAttributes(")
append("ignoreClientCertificateExpiry=$ignoreClientCertificateExpiry,")
append("mode=$mode,")
append("trustStoreArn=$trustStoreArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ignoreClientCertificateExpiry?.hashCode() ?: 0
result = 31 * result + (mode?.hashCode() ?: 0)
result = 31 * result + (trustStoreArn?.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 MutualAuthenticationAttributes
if (ignoreClientCertificateExpiry != other.ignoreClientCertificateExpiry) return false
if (mode != other.mode) return false
if (trustStoreArn != other.trustStoreArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether expired client certificates are ignored.
*/
public var ignoreClientCertificateExpiry: kotlin.Boolean? = null
/**
* The client certificate handling method. Options are `off`, `passthrough` or `verify`. The default value is `off`.
*/
public var mode: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the trust store.
*/
public var trustStoreArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes) : this() {
this.ignoreClientCertificateExpiry = x.ignoreClientCertificateExpiry
this.mode = x.mode
this.trustStoreArn = x.trustStoreArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes = MutualAuthenticationAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy