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

commonMain.aws.sdk.kotlin.services.appconfig.model.UpdateConfigurationProfileRequest.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 UpdateConfigurationProfileRequest private constructor(builder: Builder) {
    /**
     * The application ID.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * The ID of the configuration profile.
     */
    public val configurationProfileId: kotlin.String? = builder.configurationProfileId
    /**
     * A description of the configuration profile.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The identifier for a Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for `hosted` configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.
     */
    public val kmsKeyIdentifier: kotlin.String? = builder.kmsKeyIdentifier
    /**
     * The name of the configuration profile.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ARN of an IAM role with permission to access the configuration at the specified `LocationUri`.
     */
    public val retrievalRoleArn: kotlin.String? = builder.retrievalRoleArn
    /**
     * A list of methods for validating the configuration.
     */
    public val validators: List? = builder.validators

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateConfigurationProfileRequest(")
        append("applicationId=$applicationId,")
        append("configurationProfileId=$configurationProfileId,")
        append("description=$description,")
        append("kmsKeyIdentifier=$kmsKeyIdentifier,")
        append("name=$name,")
        append("retrievalRoleArn=$retrievalRoleArn,")
        append("validators=$validators")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (configurationProfileId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyIdentifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (retrievalRoleArn?.hashCode() ?: 0)
        result = 31 * result + (validators?.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 UpdateConfigurationProfileRequest

        if (applicationId != other.applicationId) return false
        if (configurationProfileId != other.configurationProfileId) return false
        if (description != other.description) return false
        if (kmsKeyIdentifier != other.kmsKeyIdentifier) return false
        if (name != other.name) return false
        if (retrievalRoleArn != other.retrievalRoleArn) return false
        if (validators != other.validators) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The application ID.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The ID of the configuration profile.
         */
        public var configurationProfileId: kotlin.String? = null
        /**
         * A description of the configuration profile.
         */
        public var description: kotlin.String? = null
        /**
         * The identifier for a Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for `hosted` configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.
         */
        public var kmsKeyIdentifier: kotlin.String? = null
        /**
         * The name of the configuration profile.
         */
        public var name: kotlin.String? = null
        /**
         * The ARN of an IAM role with permission to access the configuration at the specified `LocationUri`.
         */
        public var retrievalRoleArn: kotlin.String? = null
        /**
         * A list of methods for validating the configuration.
         */
        public var validators: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appconfig.model.UpdateConfigurationProfileRequest) : this() {
            this.applicationId = x.applicationId
            this.configurationProfileId = x.configurationProfileId
            this.description = x.description
            this.kmsKeyIdentifier = x.kmsKeyIdentifier
            this.name = x.name
            this.retrievalRoleArn = x.retrievalRoleArn
            this.validators = x.validators
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy