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

commonMain.aws.sdk.kotlin.services.verifiedpermissions.model.UpdatePolicyStoreRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.verifiedpermissions.model



public class UpdatePolicyStoreRequest private constructor(builder: Builder) {
    /**
     * Descriptive text that you can provide to help with identification of the current policy store.
     */
    public val description: kotlin.String? = builder.description
    /**
     * Specifies the ID of the policy store that you want to update
     */
    public val policyStoreId: kotlin.String? = builder.policyStoreId
    /**
     * A structure that defines the validation settings that want to enable for the policy store.
     */
    public val validationSettings: aws.sdk.kotlin.services.verifiedpermissions.model.ValidationSettings? = builder.validationSettings

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePolicyStoreRequest(")
        append("description=*** Sensitive Data Redacted ***,")
        append("policyStoreId=$policyStoreId,")
        append("validationSettings=$validationSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (policyStoreId?.hashCode() ?: 0)
        result = 31 * result + (validationSettings?.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 UpdatePolicyStoreRequest

        if (description != other.description) return false
        if (policyStoreId != other.policyStoreId) return false
        if (validationSettings != other.validationSettings) return false

        return true
    }

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

    public class Builder {
        /**
         * Descriptive text that you can provide to help with identification of the current policy store.
         */
        public var description: kotlin.String? = null
        /**
         * Specifies the ID of the policy store that you want to update
         */
        public var policyStoreId: kotlin.String? = null
        /**
         * A structure that defines the validation settings that want to enable for the policy store.
         */
        public var validationSettings: aws.sdk.kotlin.services.verifiedpermissions.model.ValidationSettings? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.verifiedpermissions.model.UpdatePolicyStoreRequest) : this() {
            this.description = x.description
            this.policyStoreId = x.policyStoreId
            this.validationSettings = x.validationSettings
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy