commonMain.aws.sdk.kotlin.services.signer.model.HashAlgorithmOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.signer.model
/**
* The hash algorithms that are available to a code signing job.
*/
class HashAlgorithmOptions private constructor(builder: Builder) {
/**
* The set of accepted hash algorithms allowed in a code signing job.
*/
val allowedValues: List? = builder.allowedValues
/**
* The default hash algorithm that is used in a code signing job.
*/
val defaultValue: aws.sdk.kotlin.services.signer.model.HashAlgorithm? = builder.defaultValue
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.HashAlgorithmOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HashAlgorithmOptions(")
append("allowedValues=$allowedValues,")
append("defaultValue=$defaultValue)")
}
override fun hashCode(): kotlin.Int {
var result = allowedValues?.hashCode() ?: 0
result = 31 * result + (defaultValue?.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 HashAlgorithmOptions
if (allowedValues != other.allowedValues) return false
if (defaultValue != other.defaultValue) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.signer.model.HashAlgorithmOptions = Builder(this).apply(block).build()
class Builder {
/**
* The set of accepted hash algorithms allowed in a code signing job.
*/
var allowedValues: List? = null
/**
* The default hash algorithm that is used in a code signing job.
*/
var defaultValue: aws.sdk.kotlin.services.signer.model.HashAlgorithm? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.HashAlgorithmOptions) : this() {
this.allowedValues = x.allowedValues
this.defaultValue = x.defaultValue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.HashAlgorithmOptions = HashAlgorithmOptions(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy