All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iot.model.CreateCertificateFromCsrResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model



/**
 * The output from the CreateCertificateFromCsr operation.
 */
public class CreateCertificateFromCsrResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a principal for policy operations.
     */
    public val certificateArn: kotlin.String? = builder.certificateArn
    /**
     * The ID of the certificate. Certificate management operations only take a certificateId.
     */
    public val certificateId: kotlin.String? = builder.certificateId
    /**
     * The certificate data, in PEM format.
     */
    public val certificatePem: kotlin.String? = builder.certificatePem

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateCertificateFromCsrResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateCertificateFromCsrResponse(")
        append("certificateArn=$certificateArn,")
        append("certificateId=$certificateId,")
        append("certificatePem=$certificatePem")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = certificateArn?.hashCode() ?: 0
        result = 31 * result + (certificateId?.hashCode() ?: 0)
        result = 31 * result + (certificatePem?.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 CreateCertificateFromCsrResponse

        if (certificateArn != other.certificateArn) return false
        if (certificateId != other.certificateId) return false
        if (certificatePem != other.certificatePem) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreateCertificateFromCsrResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the certificate. You can use the ARN as a principal for policy operations.
         */
        public var certificateArn: kotlin.String? = null
        /**
         * The ID of the certificate. Certificate management operations only take a certificateId.
         */
        public var certificateId: kotlin.String? = null
        /**
         * The certificate data, in PEM format.
         */
        public var certificatePem: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateCertificateFromCsrResponse) : this() {
            this.certificateArn = x.certificateArn
            this.certificateId = x.certificateId
            this.certificatePem = x.certificatePem
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.CreateCertificateFromCsrResponse = CreateCertificateFromCsrResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy