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

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

There is a newer version: 1.3.34
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
import aws.smithy.kotlin.runtime.time.Instant

public class GetMulticastGroupResponse private constructor(builder: Builder) {
    /**
     * The arn of the multicast group.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * Created at timestamp for the resource.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The description of the new resource.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the multicast group.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The LoRaWAN information that is to be returned from getting multicast group information.
     */
    public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastGet? = builder.loRaWan
    /**
     * The name of the multicast group.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The status of the multicast group.
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GetMulticastGroupResponse(")
        append("arn=$arn,")
        append("createdAt=$createdAt,")
        append("description=$description,")
        append("id=$id,")
        append("loRaWan=$loRaWan,")
        append("name=$name,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (loRaWan?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (status?.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 GetMulticastGroupResponse

        if (arn != other.arn) return false
        if (createdAt != other.createdAt) return false
        if (description != other.description) return false
        if (id != other.id) return false
        if (loRaWan != other.loRaWan) return false
        if (name != other.name) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The arn of the multicast group.
         */
        public var arn: kotlin.String? = null
        /**
         * Created at timestamp for the resource.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the new resource.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the multicast group.
         */
        public var id: kotlin.String? = null
        /**
         * The LoRaWAN information that is to be returned from getting multicast group information.
         */
        public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastGet? = null
        /**
         * The name of the multicast group.
         */
        public var name: kotlin.String? = null
        /**
         * The status of the multicast group.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetMulticastGroupResponse) : this() {
            this.arn = x.arn
            this.createdAt = x.createdAt
            this.description = x.description
            this.id = x.id
            this.loRaWan = x.loRaWan
            this.name = x.name
            this.status = x.status
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy