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

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

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

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



public class DescribeAccountAuditConfigurationResponse private constructor(builder: Builder) {
    /**
     * Which audit checks are enabled and disabled for this account.
     */
    public val auditCheckConfigurations: Map? = builder.auditCheckConfigurations
    /**
     * Information about the targets to which audit notifications are sent for this account.
     */
    public val auditNotificationTargetConfigurations: Map? = builder.auditNotificationTargetConfigurations
    /**
     * The ARN of the role that grants permission to IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.
     *
     * On the first call to `UpdateAccountAuditConfiguration`, this parameter is required.
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeAccountAuditConfigurationResponse(")
        append("auditCheckConfigurations=$auditCheckConfigurations,")
        append("auditNotificationTargetConfigurations=$auditNotificationTargetConfigurations,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = auditCheckConfigurations?.hashCode() ?: 0
        result = 31 * result + (auditNotificationTargetConfigurations?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 DescribeAccountAuditConfigurationResponse

        if (auditCheckConfigurations != other.auditCheckConfigurations) return false
        if (auditNotificationTargetConfigurations != other.auditNotificationTargetConfigurations) return false
        if (roleArn != other.roleArn) return false

        return true
    }

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

    public class Builder {
        /**
         * Which audit checks are enabled and disabled for this account.
         */
        public var auditCheckConfigurations: Map? = null
        /**
         * Information about the targets to which audit notifications are sent for this account.
         */
        public var auditNotificationTargetConfigurations: Map? = null
        /**
         * The ARN of the role that grants permission to IoT to access information about your devices, policies, certificates, and other items as required when performing an audit.
         *
         * On the first call to `UpdateAccountAuditConfiguration`, this parameter is required.
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeAccountAuditConfigurationResponse) : this() {
            this.auditCheckConfigurations = x.auditCheckConfigurations
            this.auditNotificationTargetConfigurations = x.auditNotificationTargetConfigurations
            this.roleArn = x.roleArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy