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

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

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

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



/**
 * Information that identifies the noncompliant resource.
 */
public class ResourceIdentifier private constructor(builder: Builder) {
    /**
     * The account with which the resource is associated.
     */
    public val account: kotlin.String? = builder.account
    /**
     * The ID of the CA certificate used to authorize the certificate.
     */
    public val caCertificateId: kotlin.String? = builder.caCertificateId
    /**
     * The client ID.
     */
    public val clientId: kotlin.String? = builder.clientId
    /**
     * The ID of the Amazon Cognito identity pool.
     */
    public val cognitoIdentityPoolId: kotlin.String? = builder.cognitoIdentityPoolId
    /**
     * The ARN of the identified device certificate.
     */
    public val deviceCertificateArn: kotlin.String? = builder.deviceCertificateArn
    /**
     * The ID of the certificate attached to the resource.
     */
    public val deviceCertificateId: kotlin.String? = builder.deviceCertificateId
    /**
     * The ARN of the IAM role that has overly permissive actions.
     */
    public val iamRoleArn: kotlin.String? = builder.iamRoleArn
    /**
     * The issuer certificate identifier.
     */
    public val issuerCertificateIdentifier: aws.sdk.kotlin.services.iot.model.IssuerCertificateIdentifier? = builder.issuerCertificateIdentifier
    /**
     * The version of the policy associated with the resource.
     */
    public val policyVersionIdentifier: aws.sdk.kotlin.services.iot.model.PolicyVersionIdentifier? = builder.policyVersionIdentifier
    /**
     * The ARN of the role alias that has overly permissive actions.
     */
    public val roleAliasArn: kotlin.String? = builder.roleAliasArn

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

    override fun toString(): kotlin.String = buildString {
        append("ResourceIdentifier(")
        append("account=$account,")
        append("caCertificateId=$caCertificateId,")
        append("clientId=$clientId,")
        append("cognitoIdentityPoolId=$cognitoIdentityPoolId,")
        append("deviceCertificateArn=$deviceCertificateArn,")
        append("deviceCertificateId=$deviceCertificateId,")
        append("iamRoleArn=$iamRoleArn,")
        append("issuerCertificateIdentifier=$issuerCertificateIdentifier,")
        append("policyVersionIdentifier=$policyVersionIdentifier,")
        append("roleAliasArn=$roleAliasArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = account?.hashCode() ?: 0
        result = 31 * result + (caCertificateId?.hashCode() ?: 0)
        result = 31 * result + (clientId?.hashCode() ?: 0)
        result = 31 * result + (cognitoIdentityPoolId?.hashCode() ?: 0)
        result = 31 * result + (deviceCertificateArn?.hashCode() ?: 0)
        result = 31 * result + (deviceCertificateId?.hashCode() ?: 0)
        result = 31 * result + (iamRoleArn?.hashCode() ?: 0)
        result = 31 * result + (issuerCertificateIdentifier?.hashCode() ?: 0)
        result = 31 * result + (policyVersionIdentifier?.hashCode() ?: 0)
        result = 31 * result + (roleAliasArn?.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 ResourceIdentifier

        if (account != other.account) return false
        if (caCertificateId != other.caCertificateId) return false
        if (clientId != other.clientId) return false
        if (cognitoIdentityPoolId != other.cognitoIdentityPoolId) return false
        if (deviceCertificateArn != other.deviceCertificateArn) return false
        if (deviceCertificateId != other.deviceCertificateId) return false
        if (iamRoleArn != other.iamRoleArn) return false
        if (issuerCertificateIdentifier != other.issuerCertificateIdentifier) return false
        if (policyVersionIdentifier != other.policyVersionIdentifier) return false
        if (roleAliasArn != other.roleAliasArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The account with which the resource is associated.
         */
        public var account: kotlin.String? = null
        /**
         * The ID of the CA certificate used to authorize the certificate.
         */
        public var caCertificateId: kotlin.String? = null
        /**
         * The client ID.
         */
        public var clientId: kotlin.String? = null
        /**
         * The ID of the Amazon Cognito identity pool.
         */
        public var cognitoIdentityPoolId: kotlin.String? = null
        /**
         * The ARN of the identified device certificate.
         */
        public var deviceCertificateArn: kotlin.String? = null
        /**
         * The ID of the certificate attached to the resource.
         */
        public var deviceCertificateId: kotlin.String? = null
        /**
         * The ARN of the IAM role that has overly permissive actions.
         */
        public var iamRoleArn: kotlin.String? = null
        /**
         * The issuer certificate identifier.
         */
        public var issuerCertificateIdentifier: aws.sdk.kotlin.services.iot.model.IssuerCertificateIdentifier? = null
        /**
         * The version of the policy associated with the resource.
         */
        public var policyVersionIdentifier: aws.sdk.kotlin.services.iot.model.PolicyVersionIdentifier? = null
        /**
         * The ARN of the role alias that has overly permissive actions.
         */
        public var roleAliasArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.ResourceIdentifier) : this() {
            this.account = x.account
            this.caCertificateId = x.caCertificateId
            this.clientId = x.clientId
            this.cognitoIdentityPoolId = x.cognitoIdentityPoolId
            this.deviceCertificateArn = x.deviceCertificateArn
            this.deviceCertificateId = x.deviceCertificateId
            this.iamRoleArn = x.iamRoleArn
            this.issuerCertificateIdentifier = x.issuerCertificateIdentifier
            this.policyVersionIdentifier = x.policyVersionIdentifier
            this.roleAliasArn = x.roleAliasArn
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.IssuerCertificateIdentifier] inside the given [block]
         */
        public fun issuerCertificateIdentifier(block: aws.sdk.kotlin.services.iot.model.IssuerCertificateIdentifier.Builder.() -> kotlin.Unit) {
            this.issuerCertificateIdentifier = aws.sdk.kotlin.services.iot.model.IssuerCertificateIdentifier.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.iot.model.PolicyVersionIdentifier] inside the given [block]
         */
        public fun policyVersionIdentifier(block: aws.sdk.kotlin.services.iot.model.PolicyVersionIdentifier.Builder.() -> kotlin.Unit) {
            this.policyVersionIdentifier = aws.sdk.kotlin.services.iot.model.PolicyVersionIdentifier.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy