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

commonMain.aws.sdk.kotlin.services.iotwireless.model.SidewalkAccountInfoWithFingerprint.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Information about a Sidewalk account.
 */
public class SidewalkAccountInfoWithFingerprint private constructor(builder: Builder) {
    /**
     * The Sidewalk Amazon ID.
     */
    public val amazonId: kotlin.String? = builder.amazonId
    /**
     * The Amazon Resource Name of the resource.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The fingerprint of the Sidewalk application server private key.
     */
    public val fingerprint: kotlin.String? = builder.fingerprint

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

    override fun toString(): kotlin.String = buildString {
        append("SidewalkAccountInfoWithFingerprint(")
        append("amazonId=$amazonId,")
        append("arn=$arn,")
        append("fingerprint=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = amazonId?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (fingerprint?.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 SidewalkAccountInfoWithFingerprint

        if (amazonId != other.amazonId) return false
        if (arn != other.arn) return false
        if (fingerprint != other.fingerprint) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Sidewalk Amazon ID.
         */
        public var amazonId: kotlin.String? = null
        /**
         * The Amazon Resource Name of the resource.
         */
        public var arn: kotlin.String? = null
        /**
         * The fingerprint of the Sidewalk application server private key.
         */
        public var fingerprint: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SidewalkAccountInfoWithFingerprint) : this() {
            this.amazonId = x.amazonId
            this.arn = x.arn
            this.fingerprint = x.fingerprint
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy