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