
commonMain.aws.sdk.kotlin.services.rolesanywhere.model.UpdateCrlRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rolesanywhere.model
public class UpdateCrlRequest private constructor(builder: Builder) {
/**
* The x509 v3 specified certificate revocation list (CRL).
*/
public val crlData: kotlin.ByteArray? = builder.crlData
/**
* The unique identifier of the certificate revocation list (CRL).
*/
public val crlId: kotlin.String? = requireNotNull(builder.crlId) { "A non-null value must be provided for crlId" }
/**
* The name of the Crl.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rolesanywhere.model.UpdateCrlRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateCrlRequest(")
append("crlData=$crlData,")
append("crlId=$crlId,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crlData?.contentHashCode() ?: 0
result = 31 * result + (crlId?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateCrlRequest
if (crlData != null) {
if (other.crlData == null) return false
if (!crlData.contentEquals(other.crlData)) return false
} else if (other.crlData != null) return false
if (crlId != other.crlId) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rolesanywhere.model.UpdateCrlRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The x509 v3 specified certificate revocation list (CRL).
*/
public var crlData: kotlin.ByteArray? = null
/**
* The unique identifier of the certificate revocation list (CRL).
*/
public var crlId: kotlin.String? = null
/**
* The name of the Crl.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.UpdateCrlRequest) : this() {
this.crlData = x.crlData
this.crlId = x.crlId
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.UpdateCrlRequest = UpdateCrlRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy