
commonMain.aws.sdk.kotlin.services.acmpca.model.GetCertificateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.acmpca.model
public class GetCertificateResponse private constructor(builder: Builder) {
/**
* The base64 PEM-encoded certificate specified by the `CertificateArn` parameter.
*/
public val certificate: kotlin.String? = builder.certificate
/**
* The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your private CA certificate.
*/
public val certificateChain: kotlin.String? = builder.certificateChain
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.acmpca.model.GetCertificateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCertificateResponse(")
append("certificate=$certificate,")
append("certificateChain=$certificateChain")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificate?.hashCode() ?: 0
result = 31 * result + (certificateChain?.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 GetCertificateResponse
if (certificate != other.certificate) return false
if (certificateChain != other.certificateChain) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.acmpca.model.GetCertificateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The base64 PEM-encoded certificate specified by the `CertificateArn` parameter.
*/
public var certificate: kotlin.String? = null
/**
* The base64 PEM-encoded certificate chain that chains up to the root CA certificate that you used to sign your private CA certificate.
*/
public var certificateChain: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.acmpca.model.GetCertificateResponse) : this() {
this.certificate = x.certificate
this.certificateChain = x.certificateChain
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.acmpca.model.GetCertificateResponse = GetCertificateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy