
commonMain.aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContext.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appmesh.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that represents a Transport Layer Security (TLS) validation context.
*/
public class VirtualGatewayTlsValidationContext private constructor(builder: Builder) {
/**
* A reference to an object that represents the SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context.
*/
public val subjectAlternativeNames: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames? = builder.subjectAlternativeNames
/**
* A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
*/
public val trust: aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContextTrust? = builder.trust
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContext = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VirtualGatewayTlsValidationContext(")
append("subjectAlternativeNames=$subjectAlternativeNames,")
append("trust=$trust")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = subjectAlternativeNames?.hashCode() ?: 0
result = 31 * result + (trust?.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 VirtualGatewayTlsValidationContext
if (subjectAlternativeNames != other.subjectAlternativeNames) return false
if (trust != other.trust) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContext = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A reference to an object that represents the SANs for a virtual gateway's listener's Transport Layer Security (TLS) validation context.
*/
public var subjectAlternativeNames: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames? = null
/**
* A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
*/
public var trust: aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContextTrust? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContext) : this() {
this.subjectAlternativeNames = x.subjectAlternativeNames
this.trust = x.trust
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appmesh.model.VirtualGatewayTlsValidationContext = VirtualGatewayTlsValidationContext(this)
/**
* construct an [aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames] inside the given [block]
*/
public fun subjectAlternativeNames(block: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames.Builder.() -> kotlin.Unit) {
this.subjectAlternativeNames = aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy