
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.SslPolicy.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 policy used for SSL negotiation.
*/
public class SslPolicy private constructor(builder: Builder) {
/**
* The ciphers.
*/
public val ciphers: List? = builder.ciphers
/**
* The name of the policy.
*/
public val name: kotlin.String? = builder.name
/**
* The protocols.
*/
public val sslProtocols: List? = builder.sslProtocols
/**
* The supported load balancers.
*/
public val supportedLoadBalancerTypes: List? = builder.supportedLoadBalancerTypes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SslPolicy = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SslPolicy(")
append("ciphers=$ciphers,")
append("name=$name,")
append("sslProtocols=$sslProtocols,")
append("supportedLoadBalancerTypes=$supportedLoadBalancerTypes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ciphers?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (sslProtocols?.hashCode() ?: 0)
result = 31 * result + (supportedLoadBalancerTypes?.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 SslPolicy
if (ciphers != other.ciphers) return false
if (name != other.name) return false
if (sslProtocols != other.sslProtocols) return false
if (supportedLoadBalancerTypes != other.supportedLoadBalancerTypes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SslPolicy = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ciphers.
*/
public var ciphers: List? = null
/**
* The name of the policy.
*/
public var name: kotlin.String? = null
/**
* The protocols.
*/
public var sslProtocols: List? = null
/**
* The supported load balancers.
*/
public var supportedLoadBalancerTypes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.SslPolicy) : this() {
this.ciphers = x.ciphers
this.name = x.name
this.sslProtocols = x.sslProtocols
this.supportedLoadBalancerTypes = x.supportedLoadBalancerTypes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elasticloadbalancingv2.model.SslPolicy = SslPolicy(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy