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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class CreateConfigurationSetResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the newly created configuration set.
     */
    public val configurationSetArn: kotlin.String? = builder.configurationSetArn
    /**
     * The name of the new configuration set.
     */
    public val configurationSetName: kotlin.String? = builder.configurationSetName
    /**
     * The time when the configuration set was created, in [UNIX epoch time](https://www.epochconverter.com/) format.
     */
    public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
    /**
     * An array of key and value pair tags that's associated with the configuration set.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateConfigurationSetResponse(")
        append("configurationSetArn=$configurationSetArn,")
        append("configurationSetName=$configurationSetName,")
        append("createdTimestamp=$createdTimestamp,")
        append("tags=$tags")
        append(")")
    }

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

        if (configurationSetArn != other.configurationSetArn) return false
        if (configurationSetName != other.configurationSetName) return false
        if (createdTimestamp != other.createdTimestamp) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the newly created configuration set.
         */
        public var configurationSetArn: kotlin.String? = null
        /**
         * The name of the new configuration set.
         */
        public var configurationSetName: kotlin.String? = null
        /**
         * The time when the configuration set was created, in [UNIX epoch time](https://www.epochconverter.com/) format.
         */
        public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * An array of key and value pair tags that's associated with the configuration set.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.CreateConfigurationSetResponse) : this() {
            this.configurationSetArn = x.configurationSetArn
            this.configurationSetName = x.configurationSetName
            this.createdTimestamp = x.createdTimestamp
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy