
commonMain.aws.sdk.kotlin.services.cloudfront.model.KgKeyPairIds.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudfront.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A list of identifiers for the public keys that CloudFront can use to verify the signatures of signed URLs and signed cookies.
*/
public class KgKeyPairIds private constructor(builder: Builder) {
/**
* The identifier of the key group that contains the public keys.
*/
public val keyGroupId: kotlin.String? = builder.keyGroupId
/**
* A list of CloudFront key pair identifiers.
*/
public val keyPairIds: aws.sdk.kotlin.services.cloudfront.model.KeyPairIds? = builder.keyPairIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudfront.model.KgKeyPairIds = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KgKeyPairIds(")
append("keyGroupId=$keyGroupId,")
append("keyPairIds=$keyPairIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyGroupId?.hashCode() ?: 0
result = 31 * result + (keyPairIds?.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 KgKeyPairIds
if (keyGroupId != other.keyGroupId) return false
if (keyPairIds != other.keyPairIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudfront.model.KgKeyPairIds = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the key group that contains the public keys.
*/
public var keyGroupId: kotlin.String? = null
/**
* A list of CloudFront key pair identifiers.
*/
public var keyPairIds: aws.sdk.kotlin.services.cloudfront.model.KeyPairIds? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.KgKeyPairIds) : this() {
this.keyGroupId = x.keyGroupId
this.keyPairIds = x.keyPairIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudfront.model.KgKeyPairIds = KgKeyPairIds(this)
/**
* construct an [aws.sdk.kotlin.services.cloudfront.model.KeyPairIds] inside the given [block]
*/
public fun keyPairIds(block: aws.sdk.kotlin.services.cloudfront.model.KeyPairIds.Builder.() -> kotlin.Unit) {
this.keyPairIds = aws.sdk.kotlin.services.cloudfront.model.KeyPairIds.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy