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

commonMain.aws.sdk.kotlin.services.rolesanywhere.model.PutNotificationSettingsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rolesanywhere.model



public class PutNotificationSettingsRequest private constructor(builder: Builder) {
    /**
     * A list of notification settings to be associated to the trust anchor.
     */
    public val notificationSettings: List? = builder.notificationSettings
    /**
     * The unique identifier of the trust anchor.
     */
    public val trustAnchorId: kotlin.String? = builder.trustAnchorId

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

    override fun toString(): kotlin.String = buildString {
        append("PutNotificationSettingsRequest(")
        append("notificationSettings=$notificationSettings,")
        append("trustAnchorId=$trustAnchorId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = notificationSettings?.hashCode() ?: 0
        result = 31 * result + (trustAnchorId?.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 PutNotificationSettingsRequest

        if (notificationSettings != other.notificationSettings) return false
        if (trustAnchorId != other.trustAnchorId) return false

        return true
    }

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

    public class Builder {
        /**
         * A list of notification settings to be associated to the trust anchor.
         */
        public var notificationSettings: List? = null
        /**
         * The unique identifier of the trust anchor.
         */
        public var trustAnchorId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.PutNotificationSettingsRequest) : this() {
            this.notificationSettings = x.notificationSettings
            this.trustAnchorId = x.trustAnchorId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.PutNotificationSettingsRequest = PutNotificationSettingsRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy