
commonMain.aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames.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 the subject alternative names secured by the certificate.
*/
public class SubjectAlternativeNames private constructor(builder: Builder) {
/**
* An object that represents the criteria for determining a SANs match.
*/
public val match: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNameMatchers? = builder.match
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubjectAlternativeNames(")
append("match=$match")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = match?.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 SubjectAlternativeNames
if (match != other.match) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that represents the criteria for determining a SANs match.
*/
public var match: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNameMatchers? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames) : this() {
this.match = x.match
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNames = SubjectAlternativeNames(this)
/**
* construct an [aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNameMatchers] inside the given [block]
*/
public fun match(block: aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNameMatchers.Builder.() -> kotlin.Unit) {
this.match = aws.sdk.kotlin.services.appmesh.model.SubjectAlternativeNameMatchers.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy