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

commonMain.aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appconfig.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetHostedConfigurationVersionResponse private constructor(builder: Builder) {
    /**
     * The application ID.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * The configuration profile ID.
     */
    public val configurationProfileId: kotlin.String? = builder.configurationProfileId
    /**
     * The content of the configuration or the configuration data.
     */
    public val content: kotlin.ByteArray? = builder.content
    /**
     * A standard MIME type describing the format of the configuration content. For more information, see [Content-Type](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * A description of the configuration.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the configuration data in the AppConfig hosted configuration store.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * A user-defined label for an AppConfig hosted configuration version.
     */
    public val versionLabel: kotlin.String? = builder.versionLabel
    /**
     * The configuration version.
     */
    public val versionNumber: kotlin.Int = builder.versionNumber

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

    override fun toString(): kotlin.String = buildString {
        append("GetHostedConfigurationVersionResponse(")
        append("applicationId=$applicationId,")
        append("configurationProfileId=$configurationProfileId,")
        append("content=*** Sensitive Data Redacted ***,")
        append("contentType=$contentType,")
        append("description=$description,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("versionLabel=$versionLabel,")
        append("versionNumber=$versionNumber")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (configurationProfileId?.hashCode() ?: 0)
        result = 31 * result + (content?.contentHashCode() ?: 0)
        result = 31 * result + (contentType?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (versionLabel?.hashCode() ?: 0)
        result = 31 * result + (versionNumber)
        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 GetHostedConfigurationVersionResponse

        if (applicationId != other.applicationId) return false
        if (configurationProfileId != other.configurationProfileId) return false
        if (content != null) {
            if (other.content == null) return false
            if (!content.contentEquals(other.content)) return false
        } else if (other.content != null) return false
        if (contentType != other.contentType) return false
        if (description != other.description) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (versionLabel != other.versionLabel) return false
        if (versionNumber != other.versionNumber) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The application ID.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The configuration profile ID.
         */
        public var configurationProfileId: kotlin.String? = null
        /**
         * The content of the configuration or the configuration data.
         */
        public var content: kotlin.ByteArray? = null
        /**
         * A standard MIME type describing the format of the configuration content. For more information, see [Content-Type](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
         */
        public var contentType: kotlin.String? = null
        /**
         * A description of the configuration.
         */
        public var description: kotlin.String? = null
        /**
         * The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the configuration data in the AppConfig hosted configuration store.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * A user-defined label for an AppConfig hosted configuration version.
         */
        public var versionLabel: kotlin.String? = null
        /**
         * The configuration version.
         */
        public var versionNumber: kotlin.Int = 0

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appconfig.model.GetHostedConfigurationVersionResponse) : this() {
            this.applicationId = x.applicationId
            this.configurationProfileId = x.configurationProfileId
            this.content = x.content
            this.contentType = x.contentType
            this.description = x.description
            this.kmsKeyArn = x.kmsKeyArn
            this.versionLabel = x.versionLabel
            this.versionNumber = x.versionNumber
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy