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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.PutConfigurationSetSendingOptionsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointemail.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A request to enable or disable the ability of Amazon Pinpoint to send emails that use a specific configuration set.
 */
public class PutConfigurationSetSendingOptionsRequest private constructor(builder: Builder) {
    /**
     * The name of the configuration set that you want to enable or disable email sending for.
     */
    public val configurationSetName: kotlin.String? = builder.configurationSetName
    /**
     * If `true`, email sending is enabled for the configuration set. If `false`, email sending is disabled for the configuration set.
     */
    public val sendingEnabled: kotlin.Boolean? = builder.sendingEnabled

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

    override fun toString(): kotlin.String = buildString {
        append("PutConfigurationSetSendingOptionsRequest(")
        append("configurationSetName=$configurationSetName,")
        append("sendingEnabled=$sendingEnabled")
        append(")")
    }

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

        if (configurationSetName != other.configurationSetName) return false
        if (sendingEnabled != other.sendingEnabled) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the configuration set that you want to enable or disable email sending for.
         */
        public var configurationSetName: kotlin.String? = null
        /**
         * If `true`, email sending is enabled for the configuration set. If `false`, email sending is disabled for the configuration set.
         */
        public var sendingEnabled: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.PutConfigurationSetSendingOptionsRequest) : this() {
            this.configurationSetName = x.configurationSetName
            this.sendingEnabled = x.sendingEnabled
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy