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

commonMain.aws.sdk.kotlin.services.qbusiness.model.GetApplicationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.qbusiness.model

import aws.smithy.kotlin.runtime.time.Instant

public class GetApplicationResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the Amazon Q Business application.
     */
    public val applicationArn: kotlin.String? = builder.applicationArn
    /**
     * The identifier of the Amazon Q Business application.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * Settings for whether end users can upload files directly during chat.
     */
    public val attachmentsConfiguration: aws.sdk.kotlin.services.qbusiness.model.AppliedAttachmentsConfiguration? = builder.attachmentsConfiguration
    /**
     * The Unix timestamp when the Amazon Q Business application was last updated.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * A description for the Amazon Q Business application.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the Amazon Q Business application.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The identifier of the Amazon Web Services KMS key that is used to encrypt your data. Amazon Q Business doesn't support asymmetric keys.
     */
    public val encryptionConfiguration: aws.sdk.kotlin.services.qbusiness.model.EncryptionConfiguration? = builder.encryptionConfiguration
    /**
     * If the `Status` field is set to `ERROR`, the `ErrorMessage` field contains a description of the error that caused the synchronization to fail.
     */
    public val error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = builder.error
    /**
     * The Amazon Resource Name (ARN) of the AWS IAM Identity Center instance attached to your Amazon Q Business application.
     */
    public val identityCenterApplicationArn: kotlin.String? = builder.identityCenterApplicationArn
    /**
     * The Amazon Resource Name (ARN) of the IAM with permissions to access your CloudWatch logs and metrics.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The status of the Amazon Q Business application.
     */
    public val status: aws.sdk.kotlin.services.qbusiness.model.ApplicationStatus? = builder.status
    /**
     * The Unix timestamp when the Amazon Q Business application was last updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("GetApplicationResponse(")
        append("applicationArn=$applicationArn,")
        append("applicationId=$applicationId,")
        append("attachmentsConfiguration=$attachmentsConfiguration,")
        append("createdAt=$createdAt,")
        append("description=$description,")
        append("displayName=$displayName,")
        append("encryptionConfiguration=$encryptionConfiguration,")
        append("error=$error,")
        append("identityCenterApplicationArn=$identityCenterApplicationArn,")
        append("roleArn=$roleArn,")
        append("status=$status,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationArn?.hashCode() ?: 0
        result = 31 * result + (applicationId?.hashCode() ?: 0)
        result = 31 * result + (attachmentsConfiguration?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (encryptionConfiguration?.hashCode() ?: 0)
        result = 31 * result + (error?.hashCode() ?: 0)
        result = 31 * result + (identityCenterApplicationArn?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.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 GetApplicationResponse

        if (applicationArn != other.applicationArn) return false
        if (applicationId != other.applicationId) return false
        if (attachmentsConfiguration != other.attachmentsConfiguration) return false
        if (createdAt != other.createdAt) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (encryptionConfiguration != other.encryptionConfiguration) return false
        if (error != other.error) return false
        if (identityCenterApplicationArn != other.identityCenterApplicationArn) return false
        if (roleArn != other.roleArn) return false
        if (status != other.status) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the Amazon Q Business application.
         */
        public var applicationArn: kotlin.String? = null
        /**
         * The identifier of the Amazon Q Business application.
         */
        public var applicationId: kotlin.String? = null
        /**
         * Settings for whether end users can upload files directly during chat.
         */
        public var attachmentsConfiguration: aws.sdk.kotlin.services.qbusiness.model.AppliedAttachmentsConfiguration? = null
        /**
         * The Unix timestamp when the Amazon Q Business application was last updated.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A description for the Amazon Q Business application.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the Amazon Q Business application.
         */
        public var displayName: kotlin.String? = null
        /**
         * The identifier of the Amazon Web Services KMS key that is used to encrypt your data. Amazon Q Business doesn't support asymmetric keys.
         */
        public var encryptionConfiguration: aws.sdk.kotlin.services.qbusiness.model.EncryptionConfiguration? = null
        /**
         * If the `Status` field is set to `ERROR`, the `ErrorMessage` field contains a description of the error that caused the synchronization to fail.
         */
        public var error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = null
        /**
         * The Amazon Resource Name (ARN) of the AWS IAM Identity Center instance attached to your Amazon Q Business application.
         */
        public var identityCenterApplicationArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the IAM with permissions to access your CloudWatch logs and metrics.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The status of the Amazon Q Business application.
         */
        public var status: aws.sdk.kotlin.services.qbusiness.model.ApplicationStatus? = null
        /**
         * The Unix timestamp when the Amazon Q Business application was last updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.GetApplicationResponse) : this() {
            this.applicationArn = x.applicationArn
            this.applicationId = x.applicationId
            this.attachmentsConfiguration = x.attachmentsConfiguration
            this.createdAt = x.createdAt
            this.description = x.description
            this.displayName = x.displayName
            this.encryptionConfiguration = x.encryptionConfiguration
            this.error = x.error
            this.identityCenterApplicationArn = x.identityCenterApplicationArn
            this.roleArn = x.roleArn
            this.status = x.status
            this.updatedAt = x.updatedAt
        }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy