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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.UpdatePrivacyBudgetTemplateRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cleanrooms.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdatePrivacyBudgetTemplateRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for one of your memberships for a collaboration. The privacy budget template is updated in the collaboration that this membership belongs to. Accepts a membership ID.
     */
    public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
    /**
     * Specifies the epsilon and noise parameters for the privacy budget template.
     */
    public val parameters: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetTemplateUpdateParameters? = builder.parameters
    /**
     * A unique identifier for your privacy budget template that you want to update.
     */
    public val privacyBudgetTemplateIdentifier: kotlin.String? = builder.privacyBudgetTemplateIdentifier
    /**
     * Specifies the type of the privacy budget template.
     */
    public val privacyBudgetType: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetType? = builder.privacyBudgetType

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePrivacyBudgetTemplateRequest(")
        append("membershipIdentifier=$membershipIdentifier,")
        append("parameters=$parameters,")
        append("privacyBudgetTemplateIdentifier=$privacyBudgetTemplateIdentifier,")
        append("privacyBudgetType=$privacyBudgetType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = membershipIdentifier?.hashCode() ?: 0
        result = 31 * result + (parameters?.hashCode() ?: 0)
        result = 31 * result + (privacyBudgetTemplateIdentifier?.hashCode() ?: 0)
        result = 31 * result + (privacyBudgetType?.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 UpdatePrivacyBudgetTemplateRequest

        if (membershipIdentifier != other.membershipIdentifier) return false
        if (parameters != other.parameters) return false
        if (privacyBudgetTemplateIdentifier != other.privacyBudgetTemplateIdentifier) return false
        if (privacyBudgetType != other.privacyBudgetType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique identifier for one of your memberships for a collaboration. The privacy budget template is updated in the collaboration that this membership belongs to. Accepts a membership ID.
         */
        public var membershipIdentifier: kotlin.String? = null
        /**
         * Specifies the epsilon and noise parameters for the privacy budget template.
         */
        public var parameters: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetTemplateUpdateParameters? = null
        /**
         * A unique identifier for your privacy budget template that you want to update.
         */
        public var privacyBudgetTemplateIdentifier: kotlin.String? = null
        /**
         * Specifies the type of the privacy budget template.
         */
        public var privacyBudgetType: aws.sdk.kotlin.services.cleanrooms.model.PrivacyBudgetType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.UpdatePrivacyBudgetTemplateRequest) : this() {
            this.membershipIdentifier = x.membershipIdentifier
            this.parameters = x.parameters
            this.privacyBudgetTemplateIdentifier = x.privacyBudgetTemplateIdentifier
            this.privacyBudgetType = x.privacyBudgetType
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy