
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.HostHeaderConditionConfig.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 a host header condition.
*/
public class HostHeaderConditionConfig private constructor(builder: Builder) {
/**
* The host names. The maximum size of each name is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
*
* If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.
*/
public val values: List? = builder.values
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.HostHeaderConditionConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HostHeaderConditionConfig(")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = values?.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 HostHeaderConditionConfig
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.HostHeaderConditionConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The host names. The maximum size of each name is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
*
* If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.HostHeaderConditionConfig) : this() {
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.HostHeaderConditionConfig = HostHeaderConditionConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy