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

commonMain.aws.sdk.kotlin.services.iotwireless.model.GetResourceEventConfigurationResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iotwireless.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetResourceEventConfigurationResponse private constructor(builder: Builder) {
    /**
     * Event configuration for the connection status event.
     */
    public val connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration? = builder.connectionStatus
    /**
     * Event configuration for the device registration state event.
     */
    public val deviceRegistrationState: aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration? = builder.deviceRegistrationState
    /**
     * Event configuration for the join event.
     */
    public val join: aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration? = builder.join
    /**
     * Event configuration for the message delivery status event.
     */
    public val messageDeliveryStatus: aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration? = builder.messageDeliveryStatus
    /**
     * Event configuration for the proximity event.
     */
    public val proximity: aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration? = builder.proximity

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

    override fun toString(): kotlin.String = buildString {
        append("GetResourceEventConfigurationResponse(")
        append("connectionStatus=$connectionStatus,")
        append("deviceRegistrationState=$deviceRegistrationState,")
        append("join=$join,")
        append("messageDeliveryStatus=$messageDeliveryStatus,")
        append("proximity=$proximity")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionStatus?.hashCode() ?: 0
        result = 31 * result + (deviceRegistrationState?.hashCode() ?: 0)
        result = 31 * result + (join?.hashCode() ?: 0)
        result = 31 * result + (messageDeliveryStatus?.hashCode() ?: 0)
        result = 31 * result + (proximity?.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 GetResourceEventConfigurationResponse

        if (connectionStatus != other.connectionStatus) return false
        if (deviceRegistrationState != other.deviceRegistrationState) return false
        if (join != other.join) return false
        if (messageDeliveryStatus != other.messageDeliveryStatus) return false
        if (proximity != other.proximity) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Event configuration for the connection status event.
         */
        public var connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration? = null
        /**
         * Event configuration for the device registration state event.
         */
        public var deviceRegistrationState: aws.sdk.kotlin.services.iotwireless.model.DeviceRegistrationStateEventConfiguration? = null
        /**
         * Event configuration for the join event.
         */
        public var join: aws.sdk.kotlin.services.iotwireless.model.JoinEventConfiguration? = null
        /**
         * Event configuration for the message delivery status event.
         */
        public var messageDeliveryStatus: aws.sdk.kotlin.services.iotwireless.model.MessageDeliveryStatusEventConfiguration? = null
        /**
         * Event configuration for the proximity event.
         */
        public var proximity: aws.sdk.kotlin.services.iotwireless.model.ProximityEventConfiguration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetResourceEventConfigurationResponse) : this() {
            this.connectionStatus = x.connectionStatus
            this.deviceRegistrationState = x.deviceRegistrationState
            this.join = x.join
            this.messageDeliveryStatus = x.messageDeliveryStatus
            this.proximity = x.proximity
        }

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy